Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
drohm002
Contributor III
Contributor III

Date field to Month Year field

Hello, I am trying to get a Month-Year field from SCHEDULEDDTM, see below.  An example of the format for SCHEDULEDDTTM is   2022-01-01 00:00:00.000000

drohm002_0-1715028984747.png

 

I am only able to get the first row to display correctly:

 

drohm002_0-1715031214688.png

My code to get this is:

date(monthstart(SCHEDULEDDTTM), 'MMM-YYYY') as SCHEDULED_YEAR_MONTH

How do I achieve this?  Please help, thank you!

Labels (5)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

It looks quite ok to me, i would expect it to work.

Try beeing more explicit,  maybe  do this adjustment. 

Monthname(timestamp#(SCHEDULEDDTTM,'YYYY-MM-DD hh:mm:ss.fff') as SCHEDULED_YEAR_MONTH

View solution in original post

1 Reply
Vegar
MVP
MVP

It looks quite ok to me, i would expect it to work.

Try beeing more explicit,  maybe  do this adjustment. 

Monthname(timestamp#(SCHEDULEDDTTM,'YYYY-MM-DD hh:mm:ss.fff') as SCHEDULED_YEAR_MONTH