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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
terry_kim1
Contributor II
Contributor II

Sum two different Set Analysis Expressions

Hi all,

I'm a Qlikview newbie and have been struggling with below.

I want to create a table that has the following:

//For Jan and Feb

Sum({<Year={$(=Max(Year))}, Month={'Jan','Feb'}, [Selling Wholesaler]={'Company A', 'Company B'}, [Customer Stream]-={'Samples'}>} [Total Quantity]*[Construction_ASP])

//For Mar - Dec

sum({<Year={$(=Max(Year))}, Month-={'Jan','Feb'} >} [ADS_NET_UNIT] * [Construction_ASP])

The expressions above work fine individually but cannot seem to put them together to display in one table.

Please help.

1 Reply
sunny_talwar

May be this

RangeSum(

Sum({<Year={$(=Max(Year))}, Month={'Jan','Feb'}, [Selling Wholesaler]={'Company A', 'Company B'}, [Customer Stream]-={'Samples'}>} [Total Quantity]*[Construction_ASP]),

Sum({<Year={$(=Max(Year))}, Month-={'Jan','Feb'} >} [ADS_NET_UNIT] * [Construction_ASP]))