Forum Discussion
Anonymous
4 years agoNot applicable
Divide every row with a total
Hi guys, need help to divide every row with a total. Is SUMX the rifht function to do it? Tried it with calculate Sumx divided by calculate sum and it did not work. Anyone an idea? Thank You
amitchandak
Super User
4 years agoAnonymous , a new column
Percent = divide([value], sum(Table[Value]))
a measure
Percent = divide(sum(Table[value]), calculate(sum(Table[Value]), allselected(Table)))
Anonymous
4 years agoNot applicable
Can i apply a filter to the first value?
- amitchandak4 years ago
Super User
Anonymous , No, if you want to pass slicer value. you need use measure for that, second one
- v-jingzhang4 years ago
Community Support
Hi Anonymous
If you want to apply a filter, you need to use a measure. See the difference between the following two measures.
Percent = DIVIDE(SUM('Table'[Value]), CALCULATE(SUM('Table'[Value]), ALLSELECTED('Table'))) Percent 2 = DIVIDE(SUM('Table'[Value]), CALCULATE(SUM('Table'[Value]), ALL('Table')))Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.