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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Quarter format for Q1- 2011-12

Hi,

I need a quarter function format like "Q1 2011-12 " like this i need.

Help needed.

Regards,

Madhukumara

1 Solution

Accepted Solutions
jagannalla
Partner - Specialist III
Partner - Specialist III

Hello,

Try this code i think your looking for this solution only.

LOAD 'Q' & Ceil(Month(DateField)/3) & '-' & Year(DateField)& '-' & Year(YearEnd(DateField,1)) AS QCYrNyr

Hope it helps you.

Cheers !

View solution in original post

8 Replies
Anonymous
Not applicable
Author

dateuse  (exp for quarter) &'-'& year(date )&'-'& day(date)

jagannalla
Partner - Specialist III
Partner - Specialist III

Hello,

try this

'Q' & Ceil(Month(DateField)/3) & '-' & Year(DateField)& '-' & Day(DateField) AS CalendarQuarterAndYear

Hope it helps you.

Cheers!

kaushalview
Partner - Creator II
Partner - Creator II

Hi

Try this expression.

='Q'&ceil(month('2012-02-12')/3)&'-'&Yearname('2012-02-12',0,4)

='Q'&ceil(month('2012-02-12')/3)&'-'&Year('2012-02-12')&'-'&Day('2012-02-12')

Regards

Kaushal Mehta

Not applicable
Author

need quarter format like  Q1-2011-12 (Q1-yyyy-yy)

                                      Q1-2012-13(Q1-yyyy-yy)

rajni_batra
Specialist
Specialist

'Q' & Ceil(Month(DateField)/3) & '-' & Yearname(DateField) AS Quarter_Year

Not applicable
Author

for ur expression i am getting Q1-2011...

i need as Q1-2011-2012, Q2-2012-2013 (Q1-yyyy-yyyy)

jagannalla
Partner - Specialist III
Partner - Specialist III

Hello,

Try this code i think your looking for this solution only.

LOAD 'Q' & Ceil(Month(DateField)/3) & '-' & Year(DateField)& '-' & Year(YearEnd(DateField,1)) AS QCYrNyr

Hope it helps you.

Cheers !

Not applicable
Author

Thanks Jagan