Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
TIGERMG
Contributor II
Contributor II

Set analysis - ignore ALL the selection

Hi ALL,

Is it possible to ignore all the selection in set analysis?

Set Expression :        sum({<ACTUALS={'$(vTest1)'}>}VALUE)

                                        sum({<ACTUALS={'$(vTest2)'}>}VALUE)

variable

vTest1  = date(AddMonths(Max({<CATEGORY={'A'}>}DATE),0),'MMM-YY') = MAY 23

vTest2  = date(AddMonths(Max({<CATEGORY={'A'}>}DATE),-1),'MMM-YY') = APR 23

I have one field CATEGORY with A and B so i created filter like  = if(CATEGORY='A',DATE) as ACTUALS so in this i have only the date which is belongs to CATEGORY='A'. 

I want if i select anything in ACTUALS  filters it will not affect on my above Set Expression :

Labels (1)
1 Solution

Accepted Solutions
TIGERMG
Contributor II
Contributor II
Author

Hi ALL<

 

vTest1  = date(AddMonths(Max({1< CATEGORY={'A'}>}DATE),0),'MMM-YY') 

vTest2  = date(AddMonths(Max({1< CATEGORY={'A'}>}DATE),-1),'MMM-YY') 

 

and also need to apply in set expression 

 

sum({1<ACTUALS={'$(vTest1)'}>}VALUE)

View solution in original post

8 Replies
Chanty4u
MVP
MVP

Try this 

vIgnoreSelections = 'ACTUALS'

sum({$<ACTUALS -= {'$(vIgnoreSelections)'}>} VALUE)

 

Chanty4u
MVP
MVP

Or may be

sum({<$ACTUALS={'$(vTest1)'}>} VALUE)

sum({<$ACTUALS={'$(vTest2)'}>} VALUE

)

BrunPierre
Master
Master

Have you tried?

sum({1<ACTUALS={'$(vTest1)'}>}VALUE)
sum({1<ACTUALS={'$(vTest2)'}>}VALUE)

TIGERMG
Contributor II
Contributor II
Author

HI BrunPierre,

 

I tried this but not working.

 

TIGERMG
Contributor II
Contributor II
Author

HI Chanty4u,

 

I tried both this but not working.

Chanty4u
MVP
MVP

May be try this 

sum({<ACTUALS={'*'}>} VALUE)

Or

sum({<ACTUALS = {'1'}>} VALUE)

Or 

sum({1<ACTUALS = {'$(=ACTUALS)'}>} VALUE)

Or 

sum({<ACTUALS=>} VALUE)

Or 

sum({<ACTUALS = {'=1'}>} VALUE)

 

tresesco
MVP
MVP

Since you are using an aggregation function in variable definition, you have to use the set analysis there too for selection ignorance. Try like:

vTest1  = date(AddMonths(Max({<ACTUALS, CATEGORY={'A'}>}DATE),0),'MMM-YY') 

vTest2  = date(AddMonths(Max({<ACTUALS, CATEGORY={'A'}>}DATE),-1),'MMM-YY') 

TIGERMG
Contributor II
Contributor II
Author

Hi ALL<

 

vTest1  = date(AddMonths(Max({1< CATEGORY={'A'}>}DATE),0),'MMM-YY') 

vTest2  = date(AddMonths(Max({1< CATEGORY={'A'}>}DATE),-1),'MMM-YY') 

 

and also need to apply in set expression 

 

sum({1<ACTUALS={'$(vTest1)'}>}VALUE)