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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis to Script level

Hi all,

Can you please help me in converting a set analysis expression to a script level expression?

Expression:

 

Sum

({$<YEAR = {$(=Max(YEAR))}>} VOLUME)

Any help would be appreciated.

Thanks in advance.

Regards,

Susvith

3 Replies
jonasheisterkam
Partner - Creator III
Partner - Creator III

In script you can group and order by year, sum Volume and peek the last. In textbox you can use some expression like sum(if(Year=Max({1}Year),Volume,0))

Sokkorn
Master
Master

Hi Susvith,

We cannot use Set Analysis in script level. Set Analysis is use for QlikView object level only. In your case, we can use max in load script; something like:

[Data]:

LOAD

     Max(YEAR)     AS [YEAR],

     VOLUME

Resident...

Again, load max year above is very limit for us to do further analysis. I'm highly recommend use Set Analysis in object level.

Regards,

Sokkorn

Not applicable
Author

Thanks for your reply..

Actualy i was struck with different case here. Please go through to the following link.

My problem was explained here.

http://community.qlik.com/thread/98541

Regards,

Susvith