cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GenericoName
Helper II
Helper II

Prioritising If Statements

Hi everybody,

 

Is it possible to prioritise certain variables/if statements, or would I need to make another kind of statement?

For example, I have a button that is disabled if variable 1 is false. If variable 1 is true, the button is enabled. However, I also want a second variable to disable the button regardless of whether or not variable 1 is true. How would I achieve this?

1 ACCEPTED SOLUTION

Accepted Solutions
GenericoName
Helper II
Helper II

Nevermind, I figured it out. Only reason it wasn't working for me was a typo. For those who are having a similar issue:

If(V1, Result1, V2, Result2, Result3)


Variable 1, if true, will force result 1 to happen and will not query variable 2. If variable 1 is false, variable 2 will be queried and the subsequent result will be chosen based on that.

View solution in original post

2 REPLIES 2
GenericoName
Helper II
Helper II

Nevermind, I figured it out. Only reason it wasn't working for me was a typo. For those who are having a similar issue:

If(V1, Result1, V2, Result2, Result3)


Variable 1, if true, will force result 1 to happen and will not query variable 2. If variable 1 is false, variable 2 will be queried and the subsequent result will be chosen based on that.

View solution in original post

Mari
Community Support
Community Support

Thanks for updating this thread!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,681)