Forum Discussion
Anonymous
2 years agoNot applicable
Custom Column Showing When All Complete
My data set has packages that have components (there can be any number of components) where each component is a separate row. I'm looking to make a custom column that identifies when all of the c...
- Anonymous2 years ago
In the end, this is what worked:
Ready for Comp =var result =CALCULATE(MIN('Table'[Component Complete]),ALLEXCEPT('Table','Table'[Package]))returnIF(result="False","Not Ready","Ready")
shravanreddy133
2 years agoHelper I
Hi,
Go to the "Modeling" tab in Power BI.
Click on "New Column" from the toolbar.
In the formula bar that appears, enter the following DAX formula:
AllComponentsComplete =
CALCULATE(
AND(
COUNTROWS(FILTER('YourTable', 'YourTable'[PackageID] = EARLIER('YourTable'[PackageID]))),
COUNTROWS(FILTER('YourTable', 'YourTable'[PackageID] = EARLIER('YourTable'[PackageID]) && 'YourTable'[Complete] = TRUE))
),
ALLEXCEPT('YourTable', 'YourTable'[PackageID])
)
CALCULATE(
AND(
COUNTROWS(FILTER('YourTable', 'YourTable'[PackageID] = EARLIER('YourTable'[PackageID]))),
COUNTROWS(FILTER('YourTable', 'YourTable'[PackageID] = EARLIER('YourTable'[PackageID]) && 'YourTable'[Complete] = TRUE))
),
ALLEXCEPT('YourTable', 'YourTable'[PackageID])
)
Anonymous
2 years agoNot applicable
I'm getting an error: