Forum Discussion
Meme123
3 years agoNew Member
Adding in a calculated column - percentage
Hello, I'm fairly new to PowerBi and struggling with adding in calculated columns. I need to add a column (in the value field in this matrix table) that claculates the percentage of '#classes cha...
- 3 years ago
Hi Meme123 ,
You could create a measure as below and format it as percentage:-
Percentage_classes = DIVIDE(sum('table1'[# Classes Changed]),Sum('table2'[# ALL classes]),0)
TomasAndersson
Solution Sage
3 years agoAnother easy way, if you don't need it to be a calculated column and are ok with a measure (that can be shown as a column in a matrix) could just be to calculate the sum for each and then divide them:
Percentage :=
DIVIDE(
SUM([# Classes Changed]),
SUM([# All Classes])
)It might depend on how your data is structured, but a possiblity.