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 across ...
Power Apps
Answered

Filtering data across tables

(1) ShareShare
ReportReport
Posted on by 166
Hello everyone,
i have two tables that i want to filter:
 
In table1 i put a filter like this:
Items-Property: Filter(BVW_Einreicher;'Office365-Benutzer'.MyProfile().Mail='E-Mailadresse')
Table1 contains a column called "Key", so i get a result like this:
Key
149
228
238
240
and so on
 
 
In table2 i would like to see all entries, where table2.ID matches one of the keys found in table 1, such like this:
 
Filter(BVW_Vorschlag;ID in Table1.Key)
 
Can you help me how to write the command for this table?
 
Thanks in advance!
Jürgen
I have the same question (0)
  • Verified answer
    AdnanDev Profile Picture
    30 on at
    You can do something like that.
     
    Filter Table1 and Get Keys:
     
    ClearCollect(FilteredKeys, Distinct(Filter(BVW_Einreicher; 'Office365-Benutzer'.MyProfile().Mail = 'E-Mailadresse'), Key))
     
    Filter Table2 Based on Keys:
     
    Filter(BVW_Vorschlag; ID in FilteredKeys.Result)
  • Verified answer
    AmínAA Profile Picture
    1,228 Moderator on at
    Greetings JürgenD!
     
    Well, first off, if you have said filter in a gallery (I'm assuming you're not using modern controls since they're not yet fit for production). And that returns you whatever data that includes your 'Key' column, then you would want to make the second filter using the selected values from the gallery. Now there are a lot of ways to do this, but the faster one without setting any variables (Which is not the most recommended method as far as I'm concerned), would be something like this:
     
    Items property of SecondGallery (Assuming the first gallery is called First_Gallery)
    Filter(BVW_Vorschlag; ID = First_Gallery.Selected.'NAME OF YOUR COLUMN')
    
     
    This way, when you select whatever entry on the first gallery (Pointing to the first table), the second one would be filtered by the selected column value which should correspond to the ID in the second gallery (Pointing to the second table).
     
    Now, that is how it would work if you are looking to filter with a single ID. If you wanted to do it using various IDs, it would be a little bit more complex. However I'd like to know if this does indeed solve your problem. If so, feel free to mark this reply as an answer, otherwise feel free to reply as well for further help and/or clarification!
  • JürgenD Profile Picture
    166 on at
    Hi AminAA,
    thanks for your detailed answer.
     
    In fact i work with multiple IDs. But not in the way to select them but to look for all existing IDs in the table.
    AdnanDev already answered this.
     
    Your suggestion for a single id is nevertheless helpful for me. Always learning a little bit more...
     
    Kind regards
    Jürgen

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard