Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217177

Calculate percentage of total for matrix column

$
0
0

Hi,

 

I have data displayed in a matrix:

 

Percentage of column.PNG

 

(I removed sensitive first column, but there is a first column with product names)

 

Here is the  definition of the matrix:

Definición de matriz.PNG

 

What I want to do is that every column percentage sums 100% at the bottom, My tries always gives as the percentage of the whole data.

 

My variable definition is as follows:

 

% Bat Presencia = var paso1= CALCULATE(SUM('BATERÍAS'[Veces]),ALLSELECTED()) return sum('BATERÍAS'[Veces])/paso1

 

This works nice when there is one column.

 

Help is greatly appreciated.


Viewing all articles
Browse latest Browse all 217177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>