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: 
rahulsingh12
Contributor III
Contributor III

Set Analysis

Hi,

I have the following table structure.

State          desc          volume

AP               STW          10

MH               STW          20

AP               STR          30

MH               STR          30

RJ               STR          40

I have to write an expression such that in Numerator I have  the following condition:

when state ='MH' Then take desc as STW And sum of volume + when other states take STR as desc and then sum of volume.

so the value will be : 30+20+40

and if some one selects just MH the value is 30 alone no calculation for other states.

Regards

Labels (1)
1 Reply
sunny_talwar
MVP
MVP

May be this

Sum({<State *= {'MH'}, desc *= {'STW'}>+<State -= {'MH'}, desc = {'STR'}>} volume)


Capture.PNG