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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date time conversion function not working as expected

Hi folks,

One of my qvd having 32 bit integer field with date in the format YYYYMM . I have loaded that column by converting it into date like Date#(Date_field) as NewDate

When i am trying to display it in chart dimension as Jan 2015 , Feb 2015 , etc., using expression MonthName(NewDate) it is throwing error. Is there any problem with my conversion Date# in the load script ? Please help.

TIA

James

1 Solution

Accepted Solutions
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Try convert the date like this:

Date(Date#(Date_field, 'YYYYMM'), 'YYYY-MM-DD') as NewDate

Then date functions start working.

View solution in original post

2 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Try convert the date like this:

Date(Date#(Date_field, 'YYYYMM'), 'YYYY-MM-DD') as NewDate

Then date functions start working.

Not applicable
Author

Thanks mindaugasbacius‌ ! Works Well !!

-James