Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help with expression

Hi All,

I am trying to show percentage(marked in yellow) of indivdual values to sum of total values

Here i need to achieve ration (individulas to total) in an expression ...

Year

Vendor

Units

Ratio

2012

A

30000000

42.85%

2012

B

26000000

37.14%

2012

C

14000000

20.00%

5 Replies
Not applicable
Author

can  u explain more ?

Not applicable
Author

i guess the expression for caliculating ratio will be  ...

=num

(

sum(Units)

/

Sum(TOTAL <Year> Units),'#.##%')

Not applicable
Author

Please correct me if i am wrong

Not applicable
Author

yes,it shud work...

haven't u tried it yet ?

SunilChauhan
Champion II
Champion II

sum(Units)

/

Sum(TOTAL <Year,Vendor> Units),'#.##%')

hope this helps

Sunil Chauhan