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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors