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

Relative value does'nt work in stacked bar chart

My stacked bar chart doesnt work when Im trying make the values into percent. My expression looks like this

Sum(if(Period=$(vMaxMonth),Freq))/Sum(if(Period=$(vMaxMonth), TOTAL <Dimension> Freq))

It works perfectly when using only the first part (Sum(if(Period=$(vMaxMonth),Freq))).

Any ideas what Im doing wrong?

Kind regards,

Sofia


1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi Sofia,

try

Sum(if(Period=$(vMaxMonth),Freq))/Sum(TOTAL <Dim> if(Period=$(vMaxMonth),Freq))

Regards,

Antonio

View solution in original post

2 Replies
antoniotiman
Master III
Master III

Hi Sofia,

try

Sum(if(Period=$(vMaxMonth),Freq))/Sum(TOTAL <Dim> if(Period=$(vMaxMonth),Freq))

Regards,

Antonio

Not applicable
Author

It works! Thank you so much!!

Kind regards,

Sofia