Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date to Quarter

Hi All

Anybody help me for date conversion. Any useful document?

In my case I am unable to create quarter.

Sample attached..

10 Replies
marcus_sommer

Try it with ceil(month(date) / 3) as quarter.

- Marcus

buzzy996
Master II
Master II

Ceil(Month([ur field])/3) As Quarterly,

Anonymous
Not applicable
Author

I get null value, somehow

Thanks Marcus

Anonymous
Not applicable
Author

Hi Shiva again null value for attached QV

Thanks

marcus_sommer

Replace date with your date-fieldname and make sure that it is really a numeric date:

ceil(month(YourDateField) / 3) as quarter

- Marcus

Anonymous
Not applicable
Author

Marcus

I needed to change formula as

ceil

(month(Date(Date#(vDate,'DD-MMM-YY'), 'MM/DD/YY')) / 3)

its_anandrjs

Hi,

Check the attached file

For quarter conversion write like

'Q'&Ceil(Num(Month(Date(Date#(vDate,'DD-MMM-YY'), 'MM/DD/YY')))/3)

Regards

Anand

Anonymous
Not applicable
Author

Hi Shiva

I needed to change formula as

ceil

(month(Date(Date#(vDate,'DD-MMM-YY'), 'MM/DD/YY')) / 3)

Thanks for your suggestion and time



Anonymous
Not applicable
Author

Marcus; Thanks for your suggestion and time