cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

Click button only show me todays boookings

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper II
Helper II

Re: Click button only show me todays boookings

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

View solution in original post

3 REPLIES 3
Highlighted
Helper II
Helper II

Re: Click button only show me todays boookings

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

View solution in original post

Highlighted
Post Prodigy
Post Prodigy

Re: Click button only show me todays boookings

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)

 

Highlighted
Helper II
Helper II

Re: Click button only show me todays boookings

No problem! If you need anymore help with your app write a new post and tag me!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,771)