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 / conditional visibility...
Power Apps
Answered

conditional visibility dependent on both an Or and an AND

(0) ShareShare
ReportReport
Posted on by 359

hi. i am using PowerApps from Sharepoint. i have an on/off switch and a drop down menu that has 1 through 4 as options.

 

i want the visibility of something to appear ONLY if this happens.

 

The toggle is switched to on AND if either the datacard9 is either 1 or 2.

 

the below doesn't work.

 

If(DataCardValue9.Selected.Value = "1" || DataCardValue9.Selected.Value = "2" && DataCardValue17.Value = true,true,false)

Categories:
  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @cchan000 ,

     

    Please use below formula instead and have a test:

    If(And(Or(DataCardValue9.Selected.Value = "1",DataCardValue9.Selected.Value = "2"),DataCardValue17.Value = true),true,false)

    Regards,

    Mona

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 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard