Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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