cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Rules with Exceptions in PowerApps

I have 3 dropdown fields in my form. Here is my rule below:

 

IF

Or(Dropdown3.Selected.Value = Dropdown3_1.Selected.Value, Dropdown3.Selected.Value = Dropdown3_2.Selected.Value, Dropdown3_1.Selected.Value = Dropdown3_2.Selected.Value)

 

Then

Each dropdown turns red

 

 

But I need to add an exception that if any two dropdowns = "None", the rule doesnt apply.

 

Any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @Anonymous,

 

Then the formula should be:

And(Not(Or(And(Dropdown3.Selected.Value ="None", Dropdown3_1.Selected.Value ="None",Dropdown3_2.Selected.Value ="None"),And(Dropdown3.Selected.Value <>"None", Dropdown3_1.Selected.Value ="None",Dropdown3_2.Selected.Value ="None"),And(Dropdown3.Selected.Value ="None", Dropdown3_1.Selected.Value <>"None",Dropdown3_2.Selected.Value ="None"),And(Dropdown3.Selected.Value ="None", Dropdown3_1.Selected.Value ="None",Dropdown3_2.Selected.Value <>"None"))),Or(Dropdown3.Selected.Value = Dropdown3_1.Selected.Value, Dropdown3.Selected.Value = Dropdown3_2.Selected.Value, Dropdown3_1.Selected.Value = Dropdown3_2.Selected.Value))

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

2 REPLIES 2
Community Support
Community Support

Hi @Anonymous,

 

Then the formula should be:

And(Not(Or(And(Dropdown3.Selected.Value ="None", Dropdown3_1.Selected.Value ="None",Dropdown3_2.Selected.Value ="None"),And(Dropdown3.Selected.Value <>"None", Dropdown3_1.Selected.Value ="None",Dropdown3_2.Selected.Value ="None"),And(Dropdown3.Selected.Value ="None", Dropdown3_1.Selected.Value <>"None",Dropdown3_2.Selected.Value ="None"),And(Dropdown3.Selected.Value ="None", Dropdown3_1.Selected.Value ="None",Dropdown3_2.Selected.Value <>"None"))),Or(Dropdown3.Selected.Value = Dropdown3_1.Selected.Value, Dropdown3.Selected.Value = Dropdown3_2.Selected.Value, Dropdown3_1.Selected.Value = Dropdown3_2.Selected.Value))

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

Anonymous
Not applicable

@v-monli-msft Thank you for your help with this! However, the requirement just changed. How can I apply this when all 3 dropdowns equal NONE instead of two?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,833)