Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
EZimmet
Resolver I
Resolver I

Nested If

Trying to do a nested if have issue if someone can please assist - TY 

 

Capture.JPGAny of conditions to the left need to populate a 3rd column tagged to be reviewed

 

 

 

 

 

 

 

 

 

= Table.AddColumn(#"Expanded EZ Nodes", "Tab_Review_Live", each

 

if (OR
[DeviceStatus] = "Disposed", "Inventory", "Missing", "Return to Client"
and
[DisplayLabel] = "Live",
"Review Live",


if (OR [DeviceStatus] = "Active", "Inventory", "No Power"
and
[DisplayLabel] = "Disposed Devices",
"Review Disposed",


if ([DeviceStatus] = "Disposed"
and
[DisplayLabel] = "Old Devices",
"Review Old", null)))))

 

 

0d79b8e0-8a29-4ab5-b61a-7ec290f05674.jpg

 

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

The syntax is a bit off. Try adjusting it like this:

if List.Contains({"Disposed", "Inventory", "Missing", "Return to Client"}, [DeviceStatus]) and [DisplayLabel] = "Live"
then "Review Live"
else if List.Contains({"Active", "Inventory", "No Power"}, [DeviceStatus]) and [DisplayLabel] = "Disposed Devices"
then "Review Disposed"
else if [DeviceStatus] = "Disposed" and [DisplayLabel] = "Old Devices"
then "Review Old"
else null

View solution in original post

2 REPLIES 2
AlexisOlson
Super User
Super User

The syntax is a bit off. Try adjusting it like this:

if List.Contains({"Disposed", "Inventory", "Missing", "Return to Client"}, [DeviceStatus]) and [DisplayLabel] = "Live"
then "Review Live"
else if List.Contains({"Active", "Inventory", "No Power"}, [DeviceStatus]) and [DisplayLabel] = "Disposed Devices"
then "Review Disposed"
else if [DeviceStatus] = "Disposed" and [DisplayLabel] = "Old Devices"
then "Review Old"
else null

Thank you Sir 

This worked all i needed to do is add last   ) 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.