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
thrillho32
New Member

If one item in hierarchy is zero, mark all incomplete

Hello,

 

I am looking for a little help on what seems like an easy task.

 

I have a table that looks like this:

Order#Item#ItemComplete
12311
12321
12330
12341

 

I am looking to add a column that marks this order as "incomplete" on every record as item# 3 has not been completed.  I'd like the column to show as below:

 

Order#Item#ItemCompleteOrderStatus
12311Incomplete
12321Incomplete
12330Incomplete
12341Incomplete

 

Greatly appreciate any help!

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

This calculated column formula works

Status = if(CALCULATE(COUNTROWS(Data),FILTER(Data,Data[Order#]=EARLIER(Data[Order#])&&Data[ItemComplete]=0))=1,"Incomplete","Complete")

Hope this helps.

Ashish_Mathur_0-1692230264011.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
vicky_
Super User
Super User

Try something like:
OrderStatus = IF(CALCULATE(MIN([ItemComplete]), ALLEXCEPT(TableName, [Order])) = 0, "Incomplete")

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.