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

Usage of SetAnalysis

I am trying to make this statement work

=Max({$<[Calendar Year/Week]=Max(TOTAL [Calendar Year/Week])>}  Aggr( if($(vDE%LAG4BIBA)>1,1,$(vDE%LAG4BIBA)),[Calendar Year/Week],[Commercial Product]))

and it doesn't.

Can somebody check this statement and tell mme if I am making a typo mistake with >}...

The statement work when I am writting

=Max({$<[Calendar Year/Week]={201306}>}  Aggr( if($(vDE%LAG4BIBA)>1,1,$(vDE%LAG4BIBA)),[Calendar Year/Week],[Commercial Product]))

and it works when I remove the set analysis from the statement

Thanks in advance for your help

gilles

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Thanks a lot for your answer

In fact I ended up with the following

Max({$<[Calendar Year/Week]={">=$(=Max(TOTAL [Calendar Year/Week],22))"}>}

Aggr( if($(vDE%LAG4BIBA)>1,1,$(vDE%LAG4BIBA)),[Calendar Year/Week],[Commercial Product]))

I found a nice SetAnalysis Generator at URL:

http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx?sa=

Thanks Again

Gilles

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try:

Max({$<[Calendar Year/Week]={$(=Max(TOTAL [Calendar Year/Week]))} >}


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks a lot for your answer

In fact I ended up with the following

Max({$<[Calendar Year/Week]={">=$(=Max(TOTAL [Calendar Year/Week],22))"}>}

Aggr( if($(vDE%LAG4BIBA)>1,1,$(vDE%LAG4BIBA)),[Calendar Year/Week],[Commercial Product]))

I found a nice SetAnalysis Generator at URL:

http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx?sa=

Thanks Again

Gilles