Hi everyone
Need some help with the following.
I have a booking system and to make users life easy, I'd like the option for a user to click on a today button, for them to view only bookings for today, how do I do this please?
What is the best way to achieve this, I will want button for tomorrow too if this works nicely
Solved! Go to Solution.
I am assuming your data is in a gallery? If not please specify
Set the button On Select to: Set(viewtoday,true)
Set the gallery Items to: If(viewtoday=true,Filter(yourdatasource,Date=Now(),Filter(yourdatasource))
Let me know if you need any more help
Date Reference
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-date-time
Filter Reference
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup
I am assuming your data is in a gallery? If not please specify
Set the button On Select to: Set(viewtoday,true)
Set the gallery Items to: If(viewtoday=true,Filter(yourdatasource,Date=Now(),Filter(yourdatasource))
Let me know if you need any more help
Date Reference
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-date-time
Filter Reference
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup
hi @Maxwell123
I was on the right track based on your suggestion but couldn't get it to work Thanks for your help
If(vToday = true, Filter(List, ArrivalDate = Today()), List)
No problem! If you need anymore help with your app write a new post and tag me!
User | Count |
---|---|
184 | |
122 | |
91 | |
47 | |
42 |
User | Count |
---|---|
271 | |
159 | |
130 | |
85 | |
78 |