Forum Discussion
Adding an average column to a matrix
- 5 years ago
Anonymous , isinscope can help, Make sure you have measure and Avg Measure then
a measure like
if(isinscope(Table[group]) && not(isinscope(Table[Company])), [Avg Measure], [measure])
Add column subtotal in matrix, this should give avg in column sub total
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
Anonymous , isinscope can help, Make sure you have measure and Avg Measure then
a measure like
if(isinscope(Table[group]) && not(isinscope(Table[Company])), [Avg Measure], [measure])
Add column subtotal in matrix, this should give avg in column sub total
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
- Anonymous5 years agoNot applicable
What would the measure and av measure be?
- amitchandak5 years ago
Super User
Anonymous ,
measure = sum(Table[Value])
Avg Measure = Average(Table[Value])
or
Avg Measure = Divide(sum(Table[Value]), distinctcount(Table[Company]))
- Anonymous5 years agoNot applicable
Hi Amit. this is working now however the sub-total is s
howing the sum and not the average