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
Just small change in formula
Try this
Measure 2=
var Total= CALCULATE(COUNT(Table[Reason code]),ALLEXCEPT(Table, Table[Reason code])
RETURN
Divide(Measure1,Total)
It would give you expected output!
I hope i answered your question!
LickNewin
2 years agoRegular Visitor
Hey Uzi,
It's coming up with an error that says the Syntax for RETURN is incorrect