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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Trouble with YTD

Hello,

I'm having an issue with calculating a YTD sum of a value.  Is there something I'm missing in my expression?

Sum({<CALENDAR.YEAR_DASH_MONTH= {">=$(=Date(max([CALENDAR.YEAR_START]),'YYYY-MM'))<=$(=date(Today(),'YYYY-MM'))"}>}ACTUALS)

The YEAR_DASH_MONTH field is in a YYYY-MM format by default, the other date fields are not in that format.

Thank you in advance

Labels (1)
1 Reply
sunny_talwar

May be this:

Sum({<CALENDAR.YEAR_DASH_MONTH= {">=$(=Date(YearStart(Today()),'YYYY-MM'))<=$(=date(Today(),'YYYY-MM'))"}>}ACTUALS)