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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
agni_gold
Specialist III
Specialist III

Generate expression for calculated values

Hi All ,

I have two table

 

AccountValue
A10
B

20

 

Account
A
B

C

Now I have loaded these tables , And Created one pivot table ,

Here value of C=A+B

For this i have written expression ,

if(Account='C',Sum({<Account={'A'}>}Value)+Sum({<Account={'B'}>}Value),Sum(Value))

But it is not showing value for C

Please help , attaching my sample application

1 Solution

Accepted Solutions
maxgro
MVP
MVP

maybe with a total

if(Account='C',Sum({<Account={'A'}>}total Value)+Sum({<Account={'B'}>}total Value),Sum(Value))

View solution in original post

5 Replies
maxgro
MVP
MVP

maybe with a total

if(Account='C',Sum({<Account={'A'}>}total Value)+Sum({<Account={'B'}>}total Value),Sum(Value))

petter
Partner - Champion III
Partner - Champion III

You could change the expression to this:

if(Account='C',Sum(TOTAL {<Account={'A'}>} Value) + Sum(TOTAL {<Account={'B'}>} Value),Sum(Value))

agni_gold
Specialist III
Specialist III
Author

Here is my situation ,

In attached excel , i have data ,

and attached qvw has my situation ,

Calculated account C , is not distributing as per my cyclic group.

please help

agni_gold
Specialist III
Specialist III
Author

Please see my below response and help

agni_gold
Specialist III
Specialist III
Author

Please see my below response and help