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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.