cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
cchan000
Level: Powered On

conditional visibility dependent on both an Or and an AND

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)

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: conditional visibility dependent on both an Or and an AND

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

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: conditional visibility dependent on both an Or and an AND

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

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (4,354)