Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
kevbrown
Creator II
Creator II

Quarters

To change a date to month i can use the function

date(monthstart(ukmpsmr_risk.INCEPTION_DATE),'MMM-YY')

But how to I change a date to a Quarter?  I've got

date(QuarterName(ukmpsmr_risk.INCEPTION_DATE),'MMM-YY')

But that returns the quarter start month so Jan-14, I want Qtr 1

1 Solution

Accepted Solutions
rubenmarin

My bad english, if quarter is a 3-month period then it will be:

='Qtr ' & Ceil(Month(ukmpsmr_risk.INCEPTION_DATE)/3)

View solution in original post

4 Replies
rubenmarin

you can use:

='Qtr ' & Ceil(Month(ukmpsmr_risk.INCEPTION_DATE)/4)

tresesco
MVP
MVP

rubenmarin

My bad english, if quarter is a 3-month period then it will be:

='Qtr ' & Ceil(Month(ukmpsmr_risk.INCEPTION_DATE)/3)

kevbrown
Creator II
Creator II
Author

superb, thanks.