Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
fosterma
Contributor III
Contributor III

Autocalendar | Previous YTD

Hello all,
I'm tying to achieve a Previous YTD measure using autocalendar. Is this possible?

I'm using the below, but the incorrect result is returned (0).

SUM({<[Date.autoCalendar.InYTD]={1},[Date.autoCalendar.YearsAgo]={1} [Sales])

Thanks
1 Reply
sunny_talwar

What does your derived calendar script look like? Is it assigning 1 for true or -1?

Capture.PNG

If it is -1, then try this

Sum({<[Date.autoCalendar.InYTD]={'-1'},[Date.autoCalendar.YearsAgo]={'-1'} [Sales])