cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
atray13
Helper III
Helper III

Dynamic filter default

Hi,

 

I am using a dynamic filter to filter a gallery i have, by using buttons to set it's value, which then updates my gallery.

 

I've noticed that when i first open the screen, my gallery is blank, as until one of the buttons is clicked on, the filter's value hasn't been set. Is there a way to set the default value of the filter so that when the screen opens there are items in the gallery?

 

My buttons set the value with the formula:

Button 1: Set(AllStaffGalleryFilter, "All")

Button 2: Set(AllStaffGalleryFilter, "Ward 1")
etc...

 

And in my gallery it is filtered by:

Filter(Shifts, 'Ward' = AllStaffGalleryFilter)

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User II
Super User II

@atray13 

Put one of the OnSelect formulas in the OnVisible property of the screen.  That will act as a default for your gallery.

View solution in original post

2 REPLIES 2
Drrickryp
Super User II
Super User II

@atray13 

Put one of the OnSelect formulas in the OnVisible property of the screen.  That will act as a default for your gallery.

View solution in original post

Great thank you!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,317)