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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
bharatkishore
Creator III
Creator III

Get only Month

Hi All,

I have a date field with date and time and based on the following expression i removed the time stamp:

     (Date(Floor(TecoProxy), 'MM/DD/YYYY')) as Date

Now i need to get only one day and 12 months and the years like

1/1/2015

2/1/2015

3/1/2015

.and so on.

Can you please tell me how can i do it.

Thanks,

Bharat

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

Date(MonthStart(Floor(TecoProxy)), 'M/D/YYYY')


If you need to sum up the individual dates for a month you would need to use a GROUP BY clause at the end of your LOAD statement and do a Sum() or other aggregation function on the measures/metrics fields.

View solution in original post

3 Replies
kristof_j
Creator III
Creator III

change your date format into 'D/M/YYYY'

The number of Ds, Ms and Ys defines the length of what you'll see.

D1
DD01
M1
MM01
MMMjan
MMMMjanuary
YY18
YYYY2018
petter
Partner - Champion III
Partner - Champion III

Date(MonthStart(Floor(TecoProxy)), 'M/D/YYYY')


If you need to sum up the individual dates for a month you would need to use a GROUP BY clause at the end of your LOAD statement and do a Sum() or other aggregation function on the measures/metrics fields.

bharatkishore
Creator III
Creator III
Author

Thanks a lot