Forum Discussion
Measure should stay fixed
- Anonymous8 years ago
I am assuming you have separate columns for numerator and denominator.
If so, you can use the following -
Original % Measure = IF(HASONEVALUE(Table5[bad]),
CALCULATE(SUM(Table5[Count1]), ALLEXCEPT(Table5, Table5[bad])) / CALCULATE(SUM(Table5[Count2]), ALLEXCEPT(Table5, Table5[bad])),
CALCULATE(SUM(Table5[Count1]), ALLEXCEPT(Table5, Table5[bad])) / CALCULATE(SUM(Table5[Count2]), ALL(Table5))
)Mainly, HASONEVALUE will treat your individual rows v/s. Total row differently. Hope it helps.
Regards
I am assuming you have separate columns for numerator and denominator.
If so, you can use the following -
Original % Measure = IF(HASONEVALUE(Table5[bad]),
CALCULATE(SUM(Table5[Count1]), ALLEXCEPT(Table5, Table5[bad])) / CALCULATE(SUM(Table5[Count2]), ALLEXCEPT(Table5, Table5[bad])),
CALCULATE(SUM(Table5[Count1]), ALLEXCEPT(Table5, Table5[bad])) / CALCULATE(SUM(Table5[Count2]), ALL(Table5))
)
Mainly, HASONEVALUE will treat your individual rows v/s. Total row differently. Hope it helps.
Regards
A million thanks Anonymous! Your solution did exactly what I wanted! I can't thank you enough! :smileyvery-happy::smileyvery-happy: