Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all,
I have column Project, Section, Result (yellow) as below. How can I get calculated column of " Current Status" (green) in DAX.
The condition example is, If any of the project in section A is Fail, then all current status is fail, else pass.
Thank you
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Current status CC =
IF (
COUNTROWS (
FILTER (
Data,
Data[Project] = EARLIER ( Data[Project] )
&& Data[Result] = "Fail"
)
) > 0,
"Fail",
"Pass"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@qhpowerbi
Hi,
Try This Formula
Calculated Column=If(
And(Project="A",Result="Fail"),"Fail","Pass")
Thanks,
Thennarasu
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Current status CC =
IF (
COUNTROWS (
FILTER (
Data,
Data[Project] = EARLIER ( Data[Project] )
&& Data[Result] = "Fail"
)
) > 0,
"Fail",
"Pass"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.