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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Nested Date functions

What does the following script will do if the MonthYear values are like '8-2014' , '11-2013' , '2-2015'.

MonthStart(Date(Date(Date#(MonthYear,'MM-YYYY'),'MM-YYYY'),'YYYYMM')) as P

-James

5 Replies
sunny_talwar

Not sure if you need all that, this should be fine and give the same result

MonthStart(Date#(MonthYear,'MM-YYYY')) as P

Not applicable
Author

what date# does here ? Examples in the help are not clear. Please clarify.

sunny_talwar

It is an interpretation function. When QlikView is unable to understand a particular date format, we can use Date#() to help it understand the format the date is in.

Does that make sense?

sunny_talwar

I encourage you to read these blogs:

Why don’t my dates work?

Get the Dates Right