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

Calculate percent of row in a table

$
0
0

Hello,

 

I have a large matrix set up and would like to set up a measure that calculates the total row percentage. ie:

 

Item   Qtr1   Qtr2   Qtr3   Qtr4   Total

A        100    300     200    400     1000

 

The measure would calculate as 

 

Item   Qtr1   Qtr2   Qtr3   Qtr4   Total

A        10%    30%   20%   40%    100%

 

I also have a handful of page level filters that I have to account for. I tried 

%ofTotal = DIVIDE(SUM(Table[Sales]),CALCULATE(SUM(Table[Sales]), ALLEXCEPT(Table,Table[Sales]

This returns a percentage of total sales for the entire table. Please help.


Viewing all articles
Browse latest Browse all 213819

Trending Articles



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