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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SET Analysis and Alternate States

Hi,

I have a problem to use alternate states together with Set analysis.

I want to display the SUM of Sales for the previous year in a straight table. The straight table has the alternate state "Group 3", thus I formulated the expression as follows:

Sum( {[Group 3]} {  $<Year = {  $(=max(Year)-1)}>} Sales )

Now the above expression does return the sum of last years sales, however it doesn't "respond" to selections made in list boxes given the alternate state "Group 3", rather it responds to selections made in list boxes with an inherited state (default state).

What am I doing wrong?

Thanks,

David

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try: Sum( {[Group 3]<Year = {  $(=max(Year)-1)}>} Sales )


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try: Sum( {[Group 3]<Year = {  $(=max(Year)-1)}>} Sales )


talk is cheap, supply exceeds demand
Not applicable
Author

It works!!

Thank you very much Gysbert!!

BR

David