Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
varma8998
Contributor III
Contributor III

How to get the max quarter

Hi All,

I have a date field which has few dates like 06/30/2019, 03/31/2019....

I want to have the label name as Quarter for example Q1 or Q2....

How to write the label name as per the max Quarter name

1 Solution

Accepted Solutions
Frank_Hartmann
Master II
Master II

try like this:

 

'Q' & Ceil(Month(Date#('06/30/2019'))/3)  

 

or in script:

'Q' & Ceil(Month(YOURDATEFIELD)/3) as Quarters



View solution in original post

1 Reply
Frank_Hartmann
Master II
Master II

try like this:

 

'Q' & Ceil(Month(Date#('06/30/2019'))/3)  

 

or in script:

'Q' & Ceil(Month(YOURDATEFIELD)/3) as Quarters