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: 
sherryxuelee
Contributor
Contributor

Convert year and month to Quarters

Hi All, I'm new to Qlik! How do i convert the below format to Quarters? I know how to do so if it is a date format... but the below isnt. Appreciate any help, thanks in advance!

Time_Year&Month

2017-01

2017-02

2017-03

Labels (1)
2 Replies
Frank_Hartmann
Master II
Master II

try this:

='Q' & Ceil(Month(date#(Time_Year&Month,'YYYY-MM'))/3) 
Brett_Bleess
Former Employee
Former Employee

Sherry, just giving you one other thing along the lines of what Frank has already stated, but it might help fill in some gaps potentially...

https://community.qlik.com/t5/Qlik-Design-Blog/The-Date-Function/ba-p/1463157

If Frank's post worked, please consider using the Accept as Solution button on his post to give him credit for helping out as well.  If you did something different, consider posting that and you can then mark that as the solution as well...

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.