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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
frankhuning
Contributor III
Contributor III

Set analysis OR instead of AND

Hi all,

Maybe a simple question for you developers but for me it's quit difficult as a newby.

My pivottable has an expression like:

Sum



( {$< PROJGROUPID = {"GENERAL"}, CATEGORYID = {"ZZGEN"} >} QTY)

What I try to achieve is the sum of all records where RPOJGROUPID = "GENERAL" OR CATEGORYID ="ZZGEN".

Thanks in advance for your help.

Regards,

Frank

1 Solution

Accepted Solutions
Not applicable

Hi,

You can try this,



Sum( {$< PROJGROUPID = {'GENERAL'}>} QTY) +
Sum( {$<CATEGORYID = {'ZZGEN'} >} QTY)


View solution in original post

2 Replies
Not applicable

Hi,

You can try this,



Sum( {$< PROJGROUPID = {'GENERAL'}>} QTY) +
Sum( {$<CATEGORYID = {'ZZGEN'} >} QTY)


kuba_michalik
Partner - Specialist
Partner - Specialist

Or you could use sum of sets:

Sum( {$< PROJGROUPID = {"GENERAL"}>+$<CATEGORYID = {"ZZGEN"} >} QTY)

I have no idea whether this is an aesthetic choice, or if it has some performance implications.