Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Percentage in Dimension

Hello,

Using this expression i get this table:

sum(SALES)/ sum(total(SALES))

DateActual 2016Prev YearTarget 2016
DistributionSALESSALESSALES
A30,3%10,9%7,7%
B-0,9%15,7%22,0%
C3,2%4,1%6,9%
100,0%

What i need is to separate the percentage by dimensión DATE

 

DateActual 2016Prev YearTarget 2016
DistributionSALESSALESSALES
A30,0%20,0%13,0%
B20,0%20,0%10,0%
C50,0%60,0%77,0%
total100,0%100,0%100,0%

Could you help me please?

Thanks

1 Solution

Accepted Solutions
ChiragPradhan
Creator II
Creator II

Hi Belen,

Use this expression Sum(Sales)/Sum(TOTAL<Company> Sales).

Regards

Chirag.

View solution in original post

7 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Could you send an example

saurabh5
Creator II
Creator II

hi Belen,

I am little confused with your requirement is your ask to change the label of distribution dimension to date?

Not applicable
Author

In the first chart the sum of the percentages is 100%.

What i need is the weights in the dimensión "date": in each column.  Is this posible?

I do not know if i explain myself well......

Not applicable
Author

DateActual 2016Prev YearTarget 2016
DistributionSALESSALESSALES
A                  10                     18                     32  
B                  20                     15                     40  
C                    5                       3                     10  
what i have
DateActual 2016Prev YearTarget 2016
DistributionSALESSALESSALES
A7%12%21%
B13%10%26%
C3%2%7%
TOTAL23%24%54%100%
what i NEED
DateActual 2016Prev YearTarget 2016
DistributionSALESSALESSALES
A29%50%39%
B57%42%49%
C14%8%12%
TOTAL100%100%100%300%
alexandros17
Partner - Champion III
Partner - Champion III

Try with this expression:

Sum(Sales)/Sum(Aggr(Sales, Distribution,Date))

let me know

ChiragPradhan
Creator II
Creator II

Hi Belen,

Use this expression Sum(Sales)/Sum(TOTAL<Company> Sales).

Regards

Chirag.

Not applicable
Author

Thanks