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 data in a ga...
Power Apps
Answered

Filtering data in a gallery using a dropdown

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone,

 

I need to filter data in a gallery using a dropdown. The problem is I need to use data from one excel sheet(table that has only some records) to filter data in the other excell sheet(table that contains all records). In gallery I need to show data from table that has all the records but filtered based on other table. For example, in main table i have all of the E-numbers (food additives) and in other table I have only E-numbers that are allowed. I need to somehow compare table that contains allowed E-numbers to main table that has all E-numbers and based on that populate the gallery upon selecting "Allowed" in dropdown. Anyone has an idea please?

Thank you

Categories:
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Anonymous ,

     

    Assuming you have some dropdown in your gallery that has something like ["Allowed","Not allowed"] for the items property, you can set the Default property to:

    If(IsBlank(LookUp('Allowed List', Title = ThisItem.Title)),"Not allowed", "Allowed")

     

    Basically it checks if the item has a match in the list of allowed E-numbers and if there's no match, it will set de dropdown value to "Not allowed", etc.

     

  • Verified answer
    Abhilash_Swain Profile Picture
    901 on at

    Hi @Anonymous ,
    let's say, in Gallery you are connecting to Excel1 and in the dropdown, you are connecting to Excel2.
    1st Method:- 

    In DropDown-> Go to Items -> Excel2.ColumnName (It will list all the items from that column.

    In Gallery-> Go to Items -> Filter(Excel1,  If(isblank(Dropdown.Selected.Value),true,excel1.column = Dropdown.Selected.Value))

     

    2nd Method:- 
    In gallery-> Goto Items - > Filter(Excel1 as Tgt, Tgt.E-numbers In Distinct(Excel2.E-numbers))

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you, that did it!

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
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard