cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Responsive Resident
Responsive Resident

filter by selected date value not working

HI all, 

 

i m trying to update the SPlist in my gallery items, and update items by using the selected date picker filter. however the filter seems to be working fine for me, but i can not sot see the data as expected, issue is when the date is selected the gallery items are updated, but it shows all the items rather then only records for the date selected. Also I'm trying to add the search option where user can search by ID and Name. using textbox. and when i try to do that i get errors. 

 

 

Please find the code below for selected date filter.

 

Filter('PPE Database', Created >= SelectDate.SelectedDate)

 

Anyhelp is really appreciated . Thanks Experts

 

Can any please let me what I'm i doing wrong

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Hi @Tapesh ,

 

Could you describe your issue more clearly?

Which column do you want to filter by? Created or Submit on?

Created is a Date and Time column by systems I guess, but the Submit on column is Single line of Text column, right?

 

You said that you want to add the filter by id if a person types in by ID or Name in Text box  as well as the date picker and sort defending on date. To achieve this, please try this code.

Filter(Filter('PPE Database',DateValue(Text(Created))=SelectDate.SelectedDate) ,ID= Value(TextSearchBox1.Text) Or StartsWith(Title,TextSearchBox1.Text))

Hope this helps.

Sik

View solution in original post

4 REPLIES 4
Highlighted
Community Support
Community Support

Hi @Tapesh ,


Could you please share some details about your issue?

What is the DateTimeZone property of date picker?

I just made a test on my side, If the time zone of date picker is set to Local, the Filter works properly. However, if the time zone is set to UTC, there is a time difference between the output date and the selection date, it could be the reason for your issue.

Please ensure the DateTimeZone property is Local.

Snipaste_2020-05-19_11-49-44.png

Hope this helps.

Sik

Highlighted
Responsive Resident
Responsive Resident

Screenshot (1).png

Hi please find the screenshot of the details above , the date filed in my form i text and on the gallery as well, also when i try to use the filter in my gallery with = sign this shows an error, stating this can not be ecualated. 

 

 

can you please let me know? @v-siky-msft  also i want to add the filter by id if a person types in by ID or Name in Text box  as well as the date picker and sort defending on date

 

Screen shot of Gallery Items Screenshot (1).png

 

if you could give a glance of will be helpful. 

 

also i tried something like this but the gallery shows no records. 

Filter('PPE Database', Created exactin Text( SelectDate.SelectedDate))

 

Thanks for the help. 

Highlighted

Hi @Tapesh ,

 

Could you describe your issue more clearly?

Which column do you want to filter by? Created or Submit on?

Created is a Date and Time column by systems I guess, but the Submit on column is Single line of Text column, right?

 

You said that you want to add the filter by id if a person types in by ID or Name in Text box  as well as the date picker and sort defending on date. To achieve this, please try this code.

Filter(Filter('PPE Database',DateValue(Text(Created))=SelectDate.SelectedDate) ,ID= Value(TextSearchBox1.Text) Or StartsWith(Title,TextSearchBox1.Text))

Hope this helps.

Sik

View solution in original post

Responsive Resident
Responsive Resident

Thank you so much for the help you have provided sir, I'm really very glad for this one. This really had worked for me just that i ad to do some changes based on my List and new data.  

But this did worked. 😎@v-siky-msft 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,650)