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
Unanswered

Filter gallery based on icon

(0) ShareShare
ReportReport
Posted on by 46

Hello,

 

I am building a power app that collects orders and reports. Orders and reports are recorded in separate sharepoint lists (Report list and Order list). I am tracking the status of the order through an order ID, so if the Report list contains a record with an identical order ID as the Orders list, then I know that specific order status is Complete, otherwise it's Pending.

 

I am tracking the orders through a gallery, and I added an icon for each item, the icon is setup this way:

If(!IsBlank(LookUp('Report Records', 'repOrderID' = ThisItem.OrderID)), Icon.Check, Icon.Clock)

 

so the function will check the report list for an order ID that is identical to the one in the current item in the gallery from the order list, if it finds it then the icon displays as a check, if not, it'll display as a clock to show that it's pending.

 

I want to filter the gallery based on the icon, so the drop down would include "Pending" = Icon.Clock and "Complete" = Icon.Check, and I'd like to add an All option to view all records regardless of the status.

 

If it's not possible to filter the gallery this way, do I have to set a new column for this value? and if so, how do I populate it automatically like I did for the icon?

Categories:
I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    @EdK99 

    In the dropdown you can have 3 entries - All, Pending, Complete

    In my opinion you can only filter against the records of the data source and then use the gallery to just display it.

    So have a filter condition as below

     

    This is a Pseudo code and not actual code.

     

    Filter(
    Tablesource,
    If(
    drpdownList.SelectedText.Value = "All",
    true, //to show all records

     

    ElseIf drpdownList.SelectedText.Value = "Complete",

    Logic to show records that satisfy as "Complete"


    ElseIf drpdownList.SelectedText.Value = "Pending"

    Logic to show records that satisfy as "Pending" 
    )

  • EdK99 Profile Picture
    46 on at

    so what logic could I use to return the pending records or the complete records?

     

    is there a statement that compares two tables and only return the values from the first table if they have a match in the other table?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard