Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dividide column by Total

Hello ,

     I am using Qv 11 .

I have 4 column in dimension side .& i want expression to divide  each value of 

column  [ total in sale]  in experrsion side by total of 1st dimension.

Dimension                   Exp

Segment                     Total in Sales                   % total

i tried it like this

     num([total in sale]  /  sum (total <segment> [total in sale] ),'#,##0')

but it dident work

pls help

4 Replies
Gysbert_Wassenaar

You can try this: num(sum([Total in Sales])/sum(total <Segment> [Total in Sales]),'#.0%')

Or you can copy the Total in Sales expression and enable the Relative option.

comm83230.png


talk is cheap, supply exceeds demand
Not applicable
Author

sum([Total in Sales]) / sum(total [Total in Sales])

Not applicable
Author

Thank u Sir

I tried u r 1st option but it didn't work . sa per u r 2 option what is mean by "relative option" can u pls explain 

er_mohit
Master II
Master II

  Try this

sum(aggr(sum([ total in sale])/ sum (total [total in sale] ),segment))

and in Number tab on that expression fixed to 2 and check on %

hope it helps