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: 
Not applicable

Round dates down

Hi,

I have set of dates,

1/3/14

3/3/14

5/3/14

20/3/14

I want to round all the dates down to 1st of the month.

Can someone help me how can i do it?

Thanks

1 Solution

Accepted Solutions
julian_rodriguez
Partner - Specialist
Partner - Specialist

hello

If your field is called MyDate, use MonthStart(MyDate)

Regards,

View solution in original post

5 Replies
julian_rodriguez
Partner - Specialist
Partner - Specialist

hello

If your field is called MyDate, use MonthStart(MyDate)

Regards,

Qrishna
Master
Master

if you date format is 'dd/mm/yyyy' then convert the format to 'yyyy-mm-dd' and the use Monthstart(Date).

Captur1e.PNG

see attached file.

julian_rodriguez
Partner - Specialist
Partner - Specialist

If the field is numeric and Qlikview can interpretate it as a date,  functions like monthstart will work, no matter the date format.

Not applicable
Author

Thanks Julian. It worked perfectly without changing formats. My dates were DD/MMM/YYYY.

Thanks for helping out.

julian_rodriguez
Partner - Specialist
Partner - Specialist

You are welcome Sarb.

Regards