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

Switch and Filter

(0) ShareShare
ReportReport
Posted on by 8

I have this formula for my Gallery item.

 

Switch(
User().Email,
"bienvenidoiii.tumamao@emerson.com", Filter('MSOL Analytics Tracker', ThisRecord.Name.Value = "Bien"),
"jun.menoza@emerson.com",Filter('MSOL Analytics Tracker',ThisRecord.Name.Value = "Jun"),
"zionemanuel.cruz@emerson.com",Filter('MSOL Analytics Tracker',ThisRecord.Name.Value = "Zion"),
"ghiafrancia.ballener@emerson.com",Filter('MSOL Analytics Tracker',ThisRecord.Name.Value = "Ghia"),
"airamejoy.bernardo@emerson.com",Filter('MSOL Analytics Tracker',ThisRecord.Name.Value = "Airame"),
"mayennnera.carpio@emerson.com",Filter('MSOL Analytics Tracker',ThisRecord.Name.Value = "Mayenn"),
"nolan.caprecho@emerson.com",Filter('MSOL Analytics Tracker',ThisRecord.Name.Value = "Nolan"),
"marialourdes.calma@emerson.com",'MSOL Analytics Tracker',

 

 

 

Filter('MSOL Analytics Tracker',
Or(IsBlank(Dropdown4.Selected), Name.Value = Dropdown4.Selected.Value),
Or( IsBlank(Dropdown4_1.Selected), PD.Value = Dropdown4_1.Selected.Value),
Or(IsBlank(Dropdown4_2.Selected), FY.Value = Dropdown4_2.Selected.Value)
)
)

 

The switch part is not working in OnVisible (dont know why) so i put them together

Initially it was just those dropdowns

How do I make these two formulas work together?
First part is working in Item gallery but the dropdowns, no after combining with the switch formula

Categories:
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @Nolan0716 

     

    Maybe try it with a nested if statement:

    If(
     User().Email = "bienvenidoiii.tumamao@emerson.com", 
     Filter('MSOL Analytics Tracker', ThisRecord.Name.Value = "Bien"),
     User().Email = "jun.menoza@emerson.com",
     Filter('MSOL Analytics Tracker',ThisRecord.Name.Value = "Jun"),
     ... // finish the code 
     Filter('MSOL Analytics Tracker', // default condition if none of the above match
     Or(IsBlank(Dropdown4.Selected), Name.Value = Dropdown4.Selected.Value),
     Or(IsBlank(Dropdown4_1.Selected), PD.Value = Dropdown4_1.Selected.Value),
     Or(IsBlank(Dropdown4_2.Selected), FY.Value = Dropdown4_2.Selected.Value)
     )
    )

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard