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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out 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

Labels (1)
3 Replies
swuehl
Champion III
Champion III

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)