Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How i divide single rows under total

Hello everybody.

I have a next situation:

Dimension = if(left(cuenta,1) ='1','ventas a','ventas b')

expresion 1 = sum({$<mes={201011}>})

expresion 2 = sum({$<mes={201012}>})

The report show for example

    

                    expresion1         expresion2    

ventas a                    100                 120

ventas b                      80                   71

total                           180                191

How i generate a new expresion 3 in order to show the percentage of 100 under 180 y 80 under 180 for each row ??

Thanks in advance

                   

expresion 3

ventas a 100/180

ventas b 80/180

Labels (1)
1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Check with TOTAL keyword

   Expression as  sum({$<mes={201011}>})/sum(TOTAL {$<mes={201011}>})

Celambarasan

View solution in original post

1 Reply
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Check with TOTAL keyword

   Expression as  sum({$<mes={201011}>})/sum(TOTAL {$<mes={201011}>})

Celambarasan