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 / Filter gallery based o...
Power Apps
Answered

Filter gallery based on in-app value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey everyone,

 

I am a Powershell beginner and have kind of a complicated issue that I am struggling to find anything about. 

 

I have created status bubbles for my app that change from green -> yellow -> red based on certain specifications. I have now been asked to add filter by status color buttons in my app. I have easily created filters based on data from the sharepoint list but creating a filter based on something that is natively only in the app is a different issue.

 

I was helped by this forum to create my status bubbles and for reference, that can be referenced here.

 

My browse gallery is within a container on the browse screen and I am trying to create the filter buttons in a separate container along the top of the browse screen. 

 

I truly have no idea how I would begin to solve this. If any more information is needed, I can surely provide it. 

 

Thanks!

Categories:
  • Verified answer
    DavidZoon Profile Picture
    738 Most Valuable Professional on at

    Hello @Anonymous ,

     

    At this point, you should consider to add a calculated column to your source, it will be easier to have the matching score for all your records

    IF function - Microsoft Support

    You'll have to set the calculation like : (in sharepoint)

    IF([DaysUp] < 10, 1) + IF([Off], 1) + IF([Rebooted], 1)

    Not sure for the syntax, a sharepoint Expert can correct if needed 🙂

     

    Then you'll have a column with values from 0 to 3

     

    Back in Power Apps, you can add a ComboBox with in it's .Items : 

    [{Name : "Green", Score:1 },
    {Name : "Yellow", Score:2 },
    {Name : "Red", Score:3 }]

    Then you can filter on the comboBox selected value :

    Filter('Your Source',
     'Calculated Column Name' = ComboBox.Selected.Score || IsBlank(ComboBox.Selected.Score)
     )

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey @DavidZoon,

     

    Thanks for your response. I will ask the sharepoint list owners if we are able to add another column, that will make everything so much easier.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard