web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to setup the defau...
Power Apps
Unanswered

How to setup the default filter when the app is start

(0) ShareShare
ReportReport
Posted on by 42

1. Already setup the filtergallerry default with {Filter:"Pending"}

Rewin_Guo_GZ_1-1690609561197.png

Rewin_Guo_GZ_2-1690609672066.png

 

2. but there was no default filer was selected when the app is started. Please help this issue. Thanks 🙂

 

Rewin_Guo_GZ_0-1690609524468.png

 

Categories:
  • Sanshubh Profile Picture
    512 on at

    Hello @Rewin_Guo_GZ 

    First of all you have to use variable for filtering galley.
    Then you have to set variable on visible property of this page OR on start of app.

     

    Set(varDefault,"Pending")

     

     And use variable to set Default value and on select of Other Buttons you can modify Variable.

  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Rewin_Guo_GZ 

     

    It's a good practice to use variables as mentioned by @SanshubhLubal, what you have done setting the Default is also correct and will have "Pending" as the default "Filter".

     

    I assume the choice is a gallery (yourChoiceGallery) with the Text = ThisItem.Filter ? if so the default will be the changing Pending to selected e.g.

    rubin_boer_0-1690611355924.png

    If this is not the case i suggest you do so.

     

    No the data. I assume you wish to filter the data based on the choice when the button is clicked. Set the Item of the Item Layout;  Items = Filter(yourDataSource, Status = yourChoiceGallery.Selected.Filter), If so this will be the case:

     

    rubin_boer_2-1690611590147.png

     

    rubin_boer_3-1690611612076.png

     

     

  • Rewin_Guo_GZ Profile Picture
    42 on at

    1. setup Set(_requestTypeFilter,"Pending") when the windows is visible. 

    Rewin_Guo_GZ_0-1690613676222.png

    2. filter the items no issue. 

    Rewin_Guo_GZ_1-1690613790426.png

    3. Seems the below formular is incorrect. Thanks a lot!

    Rewin_Guo_GZ_2-1690613888211.png

     

    3. I setup 

     

     

     

  • Rewin_Guo_GZ Profile Picture
    42 on at

    May I check how to setup the default? My formular is not working. Thanks a lot! 

    Rewin_Guo_GZ_0-1690614127588.png

     

  • timl Profile Picture
    37,418 Super User 2026 Season 2 on at

    @Rewin_Guo_GZ - you've used a 'round' closing bracket in your formula. This should be a 'curly' closing bracket -(ie, } )  

  • Sanshubh Profile Picture
    512 on at

    Check Bracket... "{"

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard