Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
hkg_qlik
Creator III
Creator III

Create Q1 - 2013 and Q1 - JAN from Date field

Hi all,

I have a date field in my Fact table. Now using the DATE I need to create Quarter - Year and Quarter - Month.

Can someone help me with the script?

Thanks,

H

1 Solution

Accepted Solutions
Anonymous
Not applicable

Quarter Year:

='Q' & ceil(month(Date)/3) & ' - ' & year(Date)

Quarter Month:

='Q' & ceil(month(Date)/3) & ' - ' & date(Date, 'MMM')

View solution in original post

3 Replies
Anonymous
Not applicable

Quarter Year:

='Q' & ceil(month(Date)/3) & ' - ' & year(Date)

Quarter Month:

='Q' & ceil(month(Date)/3) & ' - ' & date(Date, 'MMM')

jonasheisterkam
Partner - Creator III
Partner - Creator III

='Q'&ceil(Month('11.3.2014')/3)&'-'&year('11.3.2014') ='Q'&ceil(Month('11.3.2014')/3)&'-'&month('11.3.2014')

Anonymous
Not applicable

Hi

Looks like you may well need to be introduced to the concept of a Master Calendar.

Search this QlikCommunity for Master Calendar and you'll get plenty of hits.

Best Regards,     Bill