Trying to display the reports based on the date filter.
Current Setup :
Datasource is selected in Datatable Items : Dailyinventory.
How to display the filter based table results in the Datatable
Solved! Go to Solution.
Missed a bracket, sorry:
If(DatePicker2.SelectedDate = DatePicker3.SelectedDate,
Filter(Dailyinventory, 'Created On' = DatePicker2.SelectedDate),
Filter(Dailyinventory, 'Created On' >= DatePicker2.SelectedDate && 'Created On' <= DatePicker3.SelectedDate ))
What wrong in this code ? i see most of the users are referring the same whereas its not picking as per given date. instead i have to give additional one more day to get previous day data...
Filter('Dailyinventory', 'Created On' >= (DatePicker2.SelectedDate) && ('Created On') <= (DatePicker3.SelectedDate))
Need your view on this ..
Show sample data. Indicate the result you expect and the result you are actually getting.
That would help deal with it.
This is the first code i gave which is same as you are quoting:
Filter (Dailyinventory, DateColumn >= StartDate.SelectedDate && DateColumn <= EndDate.SelectedDate)
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Ok, I found it. Although not shown in DatePicker, there seems to be a time included, I guess at midnight. So you have to change it to:
Filter (Dailyinventory, DateColumn >= StartDate.SelectedDate && DateColumn <= DateAdd(DateAdd(EndDate.SelectedDate,1,Days),-1,Milliseconds))
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Join us on June 28 for our monthly User Group leader call!
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.