Forum Discussion
Issue with count measure using multiple variables.
Anonymous , if Gender is category value. then it should pass using drill through. But it is measure like 2 measures male and female then it will not pass using drill through
- Anonymous2 years agoNot applicable
amitchandak Thanks for your reply,
But in this case i am using 2 measures first one is count measure which works fine in drill through another one is variable measure which is used to get percentage%- amitchandak2 years ago
Super User
Anonymous , Is you % measure is like
divide(count(Table[Column]), calculate(count(Table[Column]), removefilters(Table[Gender]) ))
or
divide(count(Table[Column]), calculate(count(Table[Column]), allselected(Table[Gender]) ))
or
divide(count(Table[Column]), calculate(count(Table[Column]), allselected() ))
- Anonymous2 years agoNot applicable
Hi amitchandak
VAR 1 = CALCULATE(COUNT(column 1) , ALL(Table[Gender]))
VAR 2 = CALCULATE(COUNT(column 1) , condition[column 2 ] = 1)
VAR 3 = DIVIDE(VAR 2,VAR 1)
RETURN
VAR 3