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

Filtering gallery based on multiple selections from different screens

(0) ShareShare
ReportReport
Posted on by 4

I currently have 3 screens and My current navigation goes:  Risk Area > Risk Factors > Risks

 

I want to filter A gallery on my final screen (Risks) based on the selections made on two previous screens.

I can successfully filter based on one screen or the other but not both using a Switch function. I can't figure out how to merge the following:

 

Switch('Gallery risk areas'.Selected.ID,
1,Filter('Risk Assessment Master','Risk Area'="Money Laundering",
2,Filter('Risk Assessment Master','Risk Area'.Value ="Terrorist Financing"),
3,Filter('Risk Assessment Master','Risk Area'.Value ="Sanctions"),
4,Filter('Risk Assessment Master','Risk Area'.Value ="Compliance")
)

 

Switch('Gallery Risk Factor'.Selected.ID,
1,Filter('Risk Assessment Master','Risk Factor'.Value ="Customer"),
2,Filter('Risk Assessment Master','Risk Factor'.Value ="Transactions"),
3,Filter('Risk Assessment Master','Risk Factor'.Value ="Product"),
4,Filter('Risk Assessment Master','Risk Factor'.Value ="Channels"),
5,Filter('Risk Assessment Master','Risk Factor'.Value ="Geography")

 

Many Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Lach ,

     

    Please try this:

    Switch('Gallery Risk Factor'.Selected.ID,
    1,Filter(Switch('Gallery risk areas'.Selected.ID,
    1,Filter('Risk Assessment Master','Risk Area'="Money Laundering",
    2,Filter('Risk Assessment Master','Risk Area'.Value ="Terrorist Financing"),
    3,Filter('Risk Assessment Master','Risk Area'.Value ="Sanctions"),
    4,Filter('Risk Assessment Master','Risk Area'.Value ="Compliance")
    ),'Risk Factor'.Value ="Customer"),
    
    2,Filter(Switch('Gallery risk areas'.Selected.ID,
    1,Filter('Risk Assessment Master','Risk Area'="Money Laundering",
    2,Filter('Risk Assessment Master','Risk Area'.Value ="Terrorist Financing"),
    3,Filter('Risk Assessment Master','Risk Area'.Value ="Sanctions"),
    4,Filter('Risk Assessment Master','Risk Area'.Value ="Compliance")
    ),'Risk Factor'.Value ="Transactions"),
    
    3,Filter(Switch('Gallery risk areas'.Selected.ID,
    1,Filter('Risk Assessment Master','Risk Area'="Money Laundering",
    2,Filter('Risk Assessment Master','Risk Area'.Value ="Terrorist Financing"),
    3,Filter('Risk Assessment Master','Risk Area'.Value ="Sanctions"),
    4,Filter('Risk Assessment Master','Risk Area'.Value ="Compliance")
    ),'Risk Factor'.Value ="Product"),
    
    4,Filter(Switch('Gallery risk areas'.Selected.ID,
    1,Filter('Risk Assessment Master','Risk Area'="Money Laundering",
    2,Filter('Risk Assessment Master','Risk Area'.Value ="Terrorist Financing"),
    3,Filter('Risk Assessment Master','Risk Area'.Value ="Sanctions"),
    4,Filter('Risk Assessment Master','Risk Area'.Value ="Compliance")
    ),'Risk Factor'.Value ="Channels"),
    
    5,Filter(Switch('Gallery risk areas'.Selected.ID,
    1,Filter('Risk Assessment Master','Risk Area'="Money Laundering",
    2,Filter('Risk Assessment Master','Risk Area'.Value ="Terrorist Financing"),
    3,Filter('Risk Assessment Master','Risk Area'.Value ="Sanctions"),
    4,Filter('Risk Assessment Master','Risk Area'.Value ="Compliance")
    ),'Risk Factor'.Value ="Geography")
    )

     

    Best Regards,

    Wearsky

  • Lach Profile Picture
    4 on at

    Hi Wearsky,

     

    I actually managed to achieve what I wanted with an alternate method which seems more flexible:

     

    Filter('Risk Assessment Master',

    ('Risk Factor'.Value = Text('Gallery Risk Factor'.Selected.'Title- risk Factor'))

    &&

    ('Risk Area'.Value =Text('Gallery risk areas'.Selected.Title))

     

     

    Thank you for showing how the Switch variation would have worked however

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 294 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 169

Last 30 days Overall leaderboard