Forum Discussion
Anonymous
8 years agoNot applicable
DAX Countif equivalent without explicit compare
I've seen a number of "DAX Countif" Q&A, but they all seem to have an explicit comparison, which I don't want. Here's my scenario: Customer Option OptionChoice ABC Flavor Banan...
- 8 years ago
Try following 3 measures (I break it down for easy reading)
Number of Options = COUNT(Options[Option]) Total Options = CALCULATE(COUNT(Options[Option]), ALLSELECTED(Options[OptionChoice])) % Choice = DIVIDE([Number of Options], [Total Options],0)
parry2k
8 years agoSuper User
Try following 3 measures (I break it down for easy reading)
Number of Options = COUNT(Options[Option]) Total Options = CALCULATE(COUNT(Options[Option]), ALLSELECTED(Options[OptionChoice])) % Choice = DIVIDE([Number of Options], [Total Options],0)
- Anonymous8 years agoNot applicable
This is perfect, thanks so much parry2k!