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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors