Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jim_chan
Specialist
Specialist

How to create a Quarter Selection?

Hi guys,

Normal standard, when i create a quarter selection it, goes Q1-Q4.

thats what i want. but, due to diff financial year. i need to have a Q1 (Jul-Sep), Q2(Oct-Dec), Q3(Jan-Mar), Q4(Apr-Jun).

How can i do that???

Rite now. without doing anything. i got my quarter arrangement as such Q3,q4,q2,q1

Rgds,

Jim

1 Solution

Accepted Solutions
Kushal_Chawda

try this also

'Q'&Ceil(num(Month(Addmonths(Date,-6)))/3)

View solution in original post

6 Replies
Kushal_Chawda

see this

Fiscal and Standard Calendar generation

In your case SET vFiscalYearStartMonth = 7;

jim_chan
Specialist
Specialist
Author

i got this.. but is this the only solution?

Gysbert_Wassenaar

No, there are hundreds of ways to do this. Here's another: 'Q' & Ceil(Month(MonthStart(MyDate,-6)) /3) as Quarter.


talk is cheap, supply exceeds demand
jim_chan
Specialist
Specialist
Author

thanks Gysbert, i will try it out.

Kushal_Chawda

No, there are many ways. see this simple

if(match(month(Date),'Jul','Aug','Sep'),'Q1',

if(match(month(Date),'Oct','Nov','Dec'),'Q2',

if(match(month(Date),'Jan','Feb','Mar'),'Q3',

if(match(month(Date),'Apr','May','Jun'),'Q4'))))  as Quarter,

Kushal_Chawda

try this also

'Q'&Ceil(num(Month(Addmonths(Date,-6)))/3)