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
skv17
Helper II
Helper II

Calculated column Circular Dependency issue

Hi Guys, I am trying to get the result based of certain conditions to get PASS, FAIL AND MISSING for the DIFOT Status column is a Calculated Column and DOT Status is also a calculated column which gives the correct results

So the DOT Status calc column checks if each rows arrival date time less than arrival cut off, if less than PASS else FAIL , if null then MISSING

for DIFOT Status how do i get a faill for all itemID of a conID as it has failed one? 

 

So the issue im facing is when i do a count of DIFOT PASS and DIFOT FAIL and MISSING based on conID it gives 1 count to each as DIFOT status has three different values (PASS , FAIL and MISSING)

 

So if there are 3 conID with 3 items each , all item id of 2 conID has passed all but if last conID has 1 pass 1 fail and 1 missing it gives each of the count to DIFOT PASS and DIFOT FAIL and MISSING , but as the last conID has 1 fail it should fail all it should count as 1 DIFOT FAIL

 

Please do let me know if you guys have any questions, thanks.

conIDitemIDarrival date time arrival cut offDOT StatusDIFOT StatusRequired DIFOT Status   
ABCABC#105/06/2024 8:30am

05/06/2024

7:00am

FAILFAILFAIL   
ABCABC#205/06/2024 6:30am05/06/2024 7:00amPASSPASSFAIL   
ABCABC#3null05/06/2024 7:00amMISSINGMISSINGFAIL   
1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@skv17 

maybe you can try this

Column =
VAR _DOTCHECK=maxx(FILTER('Table','Table'[conID]=EARLIER('Table'[conID])&&'Table'[DOT Status]="FAIL"),'Table'[conID])
VAR _DIFOTCHECK=maxx(FILTER('Table','Table'[conID]=EARLIER('Table'[conID])&&'Table'[DIFOT Status]="FAIL"),'Table'[conID])
return if(ISBLANK(_DIFOTCHECK)&&ISBLANK(_DOTCHECK),"Pass","FAIL")
 
11.PNG
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
ryan_mayu
Super User
Super User

@skv17 

maybe you can try this

Column =
VAR _DOTCHECK=maxx(FILTER('Table','Table'[conID]=EARLIER('Table'[conID])&&'Table'[DOT Status]="FAIL"),'Table'[conID])
VAR _DIFOTCHECK=maxx(FILTER('Table','Table'[conID]=EARLIER('Table'[conID])&&'Table'[DIFOT Status]="FAIL"),'Table'[conID])
return if(ISBLANK(_DIFOTCHECK)&&ISBLANK(_DOTCHECK),"Pass","FAIL")
 
11.PNG
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




this works , thanks you are a legend !!

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks for the reply, will get back to after I have tried this out. 

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.