web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter Gallery from ot...
Power Apps
Unanswered

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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard