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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am having trouble figuring out the best way to do this task.
I have 18 duplicate pm_id for a task and if any of those 18 fail in the value column then the whole thing fails. Would it be best to create a new column or a measure? Any help would be appreciated.
Solved! Go to Solution.
@Anonymous,
How you intend to use this field will help you determine which approach to use. If you need to slice on this field in a visual (or use it in a slicer), a calculated column will enable you to do so. Here's the DAX for a calculated column:
result =
IF (
CALCULATE (
COUNT ( Table1[pm_template_task_id] ),
ALLEXCEPT ( Table1, Table1[pm_id] ),
Table1[value] = "Fail"
) > 0,
"Fail",
"Pass"
)
Proud to be a Super User!
@Anonymous,
How you intend to use this field will help you determine which approach to use. If you need to slice on this field in a visual (or use it in a slicer), a calculated column will enable you to do so. Here's the DAX for a calculated column:
result =
IF (
CALCULATE (
COUNT ( Table1[pm_template_task_id] ),
ALLEXCEPT ( Table1, Table1[pm_id] ),
Table1[value] = "Fail"
) > 0,
"Fail",
"Pass"
)
Proud to be a Super User!
How would i go about only counting the results for only one PM_ID instead of getting a count of say 4 fails for pm_id 7e54?
@Anonymous,
Would you provide an example of the desired result?
Proud to be a Super User!
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!