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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
drohm002
Creator II
Creator II

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