Forum Discussion
Anonymous
8 years agoNot applicable
Count 1 column with filter
Hi all, So ive got the folowing challenge as a newbie: Asset Damage Car1 YES Car1 YES Car2 NO Car2 NO Car2 Yes Etc. Etc. this is a simplified version of the da...
- 8 years ago
Hi Anonymous
This measure would do the job hopefully
DistinctCars = COUNTROWS ( FILTER ( SUMMARIZE ( Cars, Cars[Asset], "Count", COUNT ( Cars[Damage] ) - CALCULATE ( COUNT ( Cars[Damage] ), Cars[Damage] = "Yes" ) ), [Count] = 0 ) )
Anonymous
8 years agoNot applicable
Hi Greg_Deckler,
Thank you but this also counts the YES value with car2. I only want to distinct count if there arent any "no" values with a car.
Is there a solution for that?
Zubair_Muhammad
8 years agoCommunity Champion
Hi Anonymous
This measure would do the job hopefully
DistinctCars =
COUNTROWS (
FILTER (
SUMMARIZE (
Cars,
Cars[Asset],
"Count", COUNT ( Cars[Damage] )
- CALCULATE ( COUNT ( Cars[Damage] ), Cars[Damage] = "Yes" )
),
[Count] = 0
)
)