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: 
paul_ripley
Creator III
Creator III

Convert date to period (March Year End)

Hello

I have a date and I need to convert it to a period

For example the below coverts 31/12/2017 to 201712

=Date(floor(close_date),'YYYYMM')

However we have a march year end and 31/12/2017 for us is 201709.  So I kind of have to deduct 3 months to get from 201712 to 201709.

Can anyone suggest how to do this?

Many thanks

Paul

1 Solution

Accepted Solutions
sunny_talwar

May be this

=Date(MonthStart('12/31/2017', -3), 'YYYYMM')

View solution in original post

2 Replies
sunny_talwar

May be this

=Date(MonthStart('12/31/2017', -3), 'YYYYMM')

paul_ripley
Creator III
Creator III
Author

Hi Sunny

Many thanks for your help

Paul