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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

YTD2date

Dear Community

I have the following formula for YTD :

sum(if(year2date(TIME,0,7,MONTH),Payment))

TIME defined as Date#(MONTH)AS TIME in script load

MONTH defined as mm-yyyy(e.g Jul 2016)

Getting no return on formula

I have an Idea that it might be my TIME formatting creating a problem

Not sure. Please advise

Tx

Labels (1)
1 Reply
sunny_talwar
MVP
MVP

Try this:

Date#(MONTH, 'MM YYYY') as TIME -> if MONTH is Jul 2016


or


Date#(MONTH, 'MM-YYYY') as TIME -> if MONTH is Jul-2016

Not the difference in - between MM and YYYY between the two above scripts.