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

Filter Gallery from other Gallery selected

(0) ShareShare
ReportReport
Posted on by 44

Hi,

 

I have a Gallery 1 and 2 where Gallery 1 is supposed to show results based on Gallery 2.

 

Gallery 2 filters to show only the post connected to the active user. This works fine.

 

Gallery 1 is supposed to filter based on the shown posts in Gallery 2 where there is a multiple choice column as a Lookup field.

 

In the image below you can in the top see what "instruktion" is linked to the post (this is Gallery 2), and below that gallery is Gallery1 which I want to display only the linked values, the lookup values that are for the shown posts. So in the below screenshot in the bottom gallery what I want to be shown is "Instruktion Johan, Instruktion 2 and Instruktion 3", but for some reason it shows all of the "Instruktion" that currently is available in the List.

 

Code used in item of Gallery 1 is

Filter(Instruktioner;Concat(ForAll(Gallery2.Selected.KoppladeInstruktioner;Value = Title);Value))

 

DennisJarnstal_0-1675323351227.png

 

Thanks for any help

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @DennisJarnstal ,

     

    If you just need to show Instruktions in Gallery2 selected item, please try below formula:

     

    Gallery2.Selected.KoppladeInstruktioner

     

    then set Text of Label to ThisItem.Value

     

    Best regards,

  • DennisJarnstal Profile Picture
    44 on at

    Hi @v-jefferni ,

     

    If i use this it only shows the "instruktion" that is connected to the very first item in Gallery1. See below screenshot:

     

    DennisJarnstal_0-1675412053429.png

     

    The items in the one called "QCR medarbetare" is not showing.

     

    Best regards

    Dennis

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @DennisJarnstal ,

     

    Sorry, I was thinking you just need instruktion belongs to Gallerys selected item. If you need all instruktions in Gallery2, please try below:

    Distinct(UnGroup(ForAll(Gallery2.AllItems, KoppladeInstruktioner),"Value"),Value)

    and Label Text property in Gallery1 set to:

    ThisItem.Result

     

    Best regards,

  • DennisJarnstal Profile Picture
    44 on at

    Hi @v-jefferni ,

     

    Thank you so much, that did the trick. Works perfectly.

     

    Have a nice weekend.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard