Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
So, what I need to figure out is a way to do the following:
Assumptions:
Expected Outcome: Table 1 - Current Status column
Relationships:
Table 1 - High Level:
Table 2 - Low Level
Sample Data PBIX: https://drive.google.com/file/d/1LGcNerK8VxwDqf5pb7VzF5IabDo3pVaQ/view?usp=sharing
Thanks for your support!
Regards,
Solved! Go to Solution.
Hi @Anonymous ,
Sorry for late back, you don't need to add other condition, because the if it don't meet all the below three conditions:
It must be in the condition: If any DONE, but not all.
So just add a result in the if function will work, modify to:
Column =
VAR _T =
FILTER (
'Table 2 - Low Level',
'Table 2 - Low Level'[Lvl 1 ID Parent]
= EARLIER ( 'Table 1 - High Level'[Lvl 1 ID] )
)
VAR _InProgress =
COUNTROWS ( FILTER ( _T, [Current Status] = "In Progress" ) )
VAR _NotStarted =
COUNTROWS ( FILTER ( _T, [Current Status] = "Not Started" ) )
VAR _Done =
COUNTROWS ( FILTER ( _T, [Current Status] = "Done" ) )
VAR _All =
COUNTROWS ( _T )
RETURN
IF (
_InProgress > 0,
"In Progress",
IF (
_NotStarted = _All,
"Not Started",
IF ( _Done = _All, "Done", "In Progress" )
)
)
Result:
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to your description, here's my solution.
Create a calculated column.
Column =
VAR _T =
FILTER (
'Table 2 - Low Level',
'Table 2 - Low Level'[Lvl 1 ID Parent]
= EARLIER ( 'Table 1 - High Level'[Lvl 1 ID] )
)
VAR _InProgress =
COUNTROWS ( FILTER ( _T, [Current Status] = "In Progress" ) )
VAR _NotStarted =
COUNTROWS ( FILTER ( _T, [Current Status] = "Not Started" ) )
VAR _Done =
COUNTROWS ( FILTER ( _T, [Current Status] = "Done" ) )
VAR _All =
COUNTROWS ( _T )
RETURN
IF (
_InProgress > 0,
"In Progress",
IF ( _NotStarted = _All, "Not Started", IF ( _Done = _All, "Done" ) )
)
Get the correct result:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I am trying this IF but it's not working, I am not fully understanding where I'm failing 😞
IF (_InProgress > 0,
"In Progress",
IF(AND( _Done > 0, _Done <> _All),
"In Progress",
IF ( _NotStarted = _All, "Not Started", IF ( _Done = _All, "Done" ) )))
Hi @Anonymous ,
Sorry for late back, you don't need to add other condition, because the if it don't meet all the below three conditions:
It must be in the condition: If any DONE, but not all.
So just add a result in the if function will work, modify to:
Column =
VAR _T =
FILTER (
'Table 2 - Low Level',
'Table 2 - Low Level'[Lvl 1 ID Parent]
= EARLIER ( 'Table 1 - High Level'[Lvl 1 ID] )
)
VAR _InProgress =
COUNTROWS ( FILTER ( _T, [Current Status] = "In Progress" ) )
VAR _NotStarted =
COUNTROWS ( FILTER ( _T, [Current Status] = "Not Started" ) )
VAR _Done =
COUNTROWS ( FILTER ( _T, [Current Status] = "Done" ) )
VAR _All =
COUNTROWS ( _T )
RETURN
IF (
_InProgress > 0,
"In Progress",
IF (
_NotStarted = _All,
"Not Started",
IF ( _Done = _All, "Done", "In Progress" )
)
)
Result:
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This has been REALLY helpful and it pretty much covers all scenarios! I do note that I missed one condition:
Condition Missing: If any DONE, but not all, then "In Progress"
If I understand correctly the column you have created, this would be something like:
IF ( _Done = > 1 & <> _All, "In Progress" )
Meaning, If the variable "Done Count" is more than 1, but different to the variable "all results", then it's In Progress.
But I just can't understand where to place it in the DAX 😞
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!