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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to combine set analysis with an if function

Hi

I have the following expression

sum(aggr(sum(if(Door1 + Door2 = 1 , Door3)), Outlet))

I want to incorporate the set analysis , {< [FA Group], SKU, Year = {$(vMaxYear)} >}  into the expression, 

How i do i this?

Thanking you in advance.

Kind regards

Nayan

1 Solution

Accepted Solutions
sunilkumarqv
Specialist II
Specialist II

hi Nayan,


Please try this

sum({< [FA Group], SKU, Year = {$(vMaxYear)} >} aggr(sum({< [FA Group], SKU, Year = {$(vMaxYear)} >} if(Door1

+ Door2 = 1 , Door3)), Outlet))

View solution in original post

2 Replies
sunilkumarqv
Specialist II
Specialist II

hi Nayan,


Please try this

sum({< [FA Group], SKU, Year = {$(vMaxYear)} >} aggr(sum({< [FA Group], SKU, Year = {$(vMaxYear)} >} if(Door1

+ Door2 = 1 , Door3)), Outlet))

Anonymous
Not applicable
Author

Thank you Sunil.  It worked.

Kind regards

Nayan