cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cnorris135
Helper IV
Helper IV

Nested If statement struggle...

ive been struggling with what i think will be a nested formula.  I am trying to disable a button until all the conditions are met.  

1.) Field 101 must = Lab Equipment

2.) Field 127 must = true

THEN the nested IF will check to make sure that all three fields MUST = true or the button will be enabled.

3.) Field 128 = true

4.) Field 129 = true

5.) Field 130 = true

 

my code is this...... how can i rewrite this to work?

 

If(

    DataCardValue101.Selected.Value = "Lab Equipment" && DataCardValue127.Value = true,

    If(

        DataCardValue128.Value = false || DataCardValue129.Value = false || DataCardValue130.Value = false,

        DisplayMode.Disabled,

        DisplayMode.Edit

    )

)

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @cnorris135 ,

You did not say what mode the button was to be in if the first two conditions were not met, but you will get the idea

If(
   DataCardValue101.Selected.Value = "Lab Equipment" && 
   DataCardValue127.Value = true,
   If(
      DataCardValue128.Value = false || DataCardValue129.Value = false || DataCardValue130.Value = false,
      DisplayMode.Disabled,
      DisplayMode.Edit
   ),
   DisplayMode.Edit
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User III
Super User III

Hi @cnorris135 ,

You did not say what mode the button was to be in if the first two conditions were not met, but you will get the idea

If(
   DataCardValue101.Selected.Value = "Lab Equipment" && 
   DataCardValue127.Value = true,
   If(
      DataCardValue128.Value = false || DataCardValue129.Value = false || DataCardValue130.Value = false,
      DisplayMode.Disabled,
      DisplayMode.Edit
   ),
   DisplayMode.Edit
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Wonderful and Thank You!!!!

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,404)