Forum Discussion
LickNewin
2 years agoRegular Visitor
Subtotal Divided by Row Value
I'm trying to create a measure which takes the value from each Row, and divides it by the Subtotal to give the Percentage of the Subtotal per row. I'm currently using this measure, but it just g...
Uzi2019
2 years agoCommunity Champion
hi LickNewin
Try below dax for measure
Measure 1= Count ( Table[Reason code])
Measure 2=
var Total= CALCULATE(COUNT(Table[Reason code]),ALL(Table))
RETURN
Divide(Measure1,Total)
you can see my output
I hope I answered your question!
LickNewin
2 years agoRegular Visitor
Hey Uzi,
Unfortunately that doesn't work how I wanted.
It works fine when I have all the Reason codes selected in the Filter, but as soon as I filter it, the values are wrong.