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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis, inverse selection over dimensions

Hi,

I'm currently experimenting with set analysis. I have a Select Field year=1998. In a pivot table I'm showing sum( turnover ) over the EMPLOYEE_lastname and DATE_MONTH-nr fields. I tried showing the turnover for other years with the expression:

sum( {1-$} turnover )

Surprisingly, this adds a new row with a null value for EMPLOYEE_lastname. I believe wothout the TOTAL qualifier, this is supposed to work within the given dimensions though. Am I overlooking something here?

regards Jeroen

Labels (1)
1 Reply
erichshiino
Partner - Master
Partner - Master

I'm not sure if this can answer your question completely, but {1-$} will give you the set excluded by the selection (considering all the selecitons in the .QVW). If you want to get the exclusion only in a field, your set analysis would be more like:

sum( { <year= e(year)>} turnover )

Total will only make sense inside an object (or in a Aggr() function) because it will ignore the dimensions (not selections)

Hope this helps,

Erich