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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Users online (7,388)