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 / Filtering and sorting ...
Power Apps
Answered

Filtering and sorting issue

(0) ShareShare
ReportReport
Posted on by 59

Hello great people, 

 

I have solved half of the issue with help of some amazing people here.. but im still stuck with this:

 

How can i make the gallery show all items? this is the formula i have : 

 

If(varStatus="All",'Doc request', //Display all items (without any filter)
Filter('Doc request',Status.Value=varStatus)) // Display items fitered by Selected Status 

 

How can I make all data visible even when i do not click on anything.. ?

 

Thank you for your help!

 

 

Screen Shot 2022-10-03 at 10.08.30.png

Categories:
  • Verified answer
    fuzzy_fuzz Profile Picture
    229 on at

    Hi,

     

    You can achieve this by placing an OR statement when you set AllItems. When you start the app I can imagine varStatus doesn´t have a value (it is set to "Blank"). So, when you start the app and no button is selected, by default it would display all the items.

    If((varStatus="All" || IsBlank(varStatus)),'Doc request', //Display all items (without any filter)
    Filter('Doc request',Status.Value=varStatus)) // Display items fitered by Selected Status 

     

    When you unselect all the buttons, to display again all items you have to Set the variable to blank again.

    Set(vasStatus, Blank())

     

    Hope this helped.

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @redaelaouane ,

     

    Can you check what the value of varStatus is when you haven't clicked on anything? Just add one more condition to the if formula. For example:

     

    If(

    varStatus="All",

    'Doc request', 

    IsEmpty(varStatus),

    'Doc request', 
    Filter('Doc request',Status.Value=varStatus)

    ) 

     

    Best Regards,

    Bof

  • redaelaouane Profile Picture
    59 on at

    Thank you for your help! it worked indeed.. but items are not sorted as i want to, how can i make new items show up on top?

     

    Thank you once again. 

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard