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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
realpixel
Creator
Creator

Sum all value

Hello,

I create a dimenssion TRANS and an expression which can do the sum of EPV but I cannot arrive to do this operation sum EPV\total EPV

For example for A value I need to do (161\1428) x 100

For B value (15\1428) x 100

etc.

Someone have I idea how to do?

TRANSEPV
A161
B15
C53
D17
E2
F22
G28
H15
I23
J11
K59
L170
M275
N59
O118
P6
Q144
R250
1428
1 Solution

Accepted Solutions
swuehl
MVP
MVP

I am not fully understanding your sample, but you can disregard your selections for the Total like this:

= Sum( EPV ) / Sum({1} Total EPV )  *100

or disregarding only selection in TRANS:

= Sum( EPV ) / Sum({<TRANS= >} Total EPV )  *100

View solution in original post

6 Replies
swuehl
MVP
MVP

Have you tried

= Sum( EPV ) / Sum( Total EPV )  *100

as expression?

narender123
Specialist
Specialist

Hi ,

I have attached the file.please find it.

Thanks.

calvindk
Creator III
Creator III

Sum(EPV) / SUM(TOTAL EPV)

realpixel
Creator
Creator
Author

Thank everybody for your answer, it's works but if I put a selection/filter in column TRANS to see only the value A the result is always 100, it's the same problem with other value.

Same problem on document "New Qlikview document" posted by Narender123

Column1Sum
100
A100

If I use a seclection on column1 to see only the A value, the sum is 100 and not 20.

Column1Sum
100
A20
B40
C20
D20
Not applicable

When you select A - formula is 20/20*100 = 100, so I think it`s correct.

EDIT: If you want to see select field/ sum all fields *100 then formula will be Sum(Column2)/ Sum({<Column1=>}Total Column2)*100 -  (20/100)*100

swuehl
MVP
MVP

I am not fully understanding your sample, but you can disregard your selections for the Total like this:

= Sum( EPV ) / Sum({1} Total EPV )  *100

or disregarding only selection in TRANS:

= Sum( EPV ) / Sum({<TRANS= >} Total EPV )  *100