This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi there,
Please see the sample table below
When Status is "Failed" for any Contract No or Contract the outcome on New Column Should be "Failed"
Please advise a measure
Thanks,
Solved! Go to Solution.
Hi @PBInewuser ,
You are using a few terms interchangably that are not the same thing.
A conditional column is a column in Power Query. I would generally recommend this is the way to go as you are changing the model with a new column, but if I am undersanding your question, you want it for any single contract number that has any status as failed, so Power Query isn't the way to go.
You are then asking for a new column, but then ask for a measure. I think you want a new column in a visual, not the model, and a measure is the way to go.
Final Status =
VAR varFailedStatusCount =
CALCULATE(
COUNTROWS('Table'),
REMOVEFILTERS('Table'[Date],'Table'[Status]),
'Table'[Status] = "Failed"
)
var Result =
IF(
varFailedStatusCount > 0,
"Failed",
"Success"
)
RETURN
Result
That returns this:
Contract 1 is failed, but contract 2 has no falures, so the final status is Success.
My PBIX is here if you want to look at it.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHi @PBInewuser ,
You are using a few terms interchangably that are not the same thing.
A conditional column is a column in Power Query. I would generally recommend this is the way to go as you are changing the model with a new column, but if I am undersanding your question, you want it for any single contract number that has any status as failed, so Power Query isn't the way to go.
You are then asking for a new column, but then ask for a measure. I think you want a new column in a visual, not the model, and a measure is the way to go.
Final Status =
VAR varFailedStatusCount =
CALCULATE(
COUNTROWS('Table'),
REMOVEFILTERS('Table'[Date],'Table'[Status]),
'Table'[Status] = "Failed"
)
var Result =
IF(
varFailedStatusCount > 0,
"Failed",
"Success"
)
RETURN
Result
That returns this:
Contract 1 is failed, but contract 2 has no falures, so the final status is Success.
My PBIX is here if you want to look at it.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCheck out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 25 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |