Forum Discussion
NJ81858
3 years agoHelper IV
Custom Total Column
Hello, I am trying to create a custom calculation for my total column in a matrix and I'm not sure how to configure that best. My matrix looks like this currently, with the Groups being my rows a...
Anonymous
3 years agoNot applicable
Hi NJ81858 ,
According to your description, here are my steps you can follow as a solution.
(1) We can create a measure or calculated column.
Measure =
var _a=CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[Group]),'Table'[Value]))
var _b=CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Category]="Category 3"))
var _c=DIVIDE(_b,_a,0)
return _cColumn = var _a = IF('Table'[Category]="Category 3",'Table'[value])
var _b = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Group]=EARLIER('Table'[Group])))
return DIVIDE(_a,_b,0)
(2) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.