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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis doubt

Hi All,

I came across this expression for calculating  YTD where MonthID =AutoNumber(Year & NUM(Month), 'MonthID')

{$<MonthID = {"<=$(=Max(MonthID))"},

Date = {"<=$(=Max(Date))"},

Year = {$(=Max(Year))},

Quarter = ,

Period = ,

PeriodNo = ,

Month = >}

Can someone please explain this expression?

Thanks,

Anju

3 Replies
swuehl
MVP
MVP

I think this blog post should explain the syntax quite nicely:

The Magic of Set Analysis – Point In Time Reporting | iQlik - Everything QlikView.

MK_QSL
MVP
MVP

Looks like your syntax is missing.

Not applicable
Author

Hi,

A variable is assigned the value....

vSetYTD={$<MonthID = {"<=$(=Max(MonthID))"},

Date = {"<=$(=Max(Date))"},

Year = {$(=Max(Year))},

Quarter = ,

Period = ,

PeriodNo = ,

Month = >}

and an expression is written:

=Sum($(vSetYTD) Win_Flag)