Forum Discussion
Hoho1
8 years agoFrequent Visitor
Measure should stay fixed
Hello, Is there any way to create a measure that holds two values that stay fixed when you select other filters? I have the following table: Bads Count 0 1200 1 100 Total 1300 ...
- 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
anandav
Skilled Sharer
8 years agoCan you try:
Original % Measure = CALCULATE(SUM(Table5[Count]), ALLEXCEPT(Table5, Table5[bad])) / CALCULATE(SUM(Table5[Count]), ALL(Table5))