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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
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

Labels (1)
1 Solution

Accepted Solutions
rubenmarin
MVP
MVP

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
MVP
MVP

you can use:

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

tresB
Champion III
Champion III

rubenmarin
MVP
MVP

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.