cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: Rules with Exceptions in PowerApps

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
Highlighted
Community Support
Community Support

Re: Rules with Exceptions in PowerApps

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

Highlighted
Anonymous
Not applicable

Re: Rules with Exceptions in PowerApps

@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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (6,430)