Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
pgalvezt
Specialist
Specialist

5 Quarters?

Hi everyone,

I have a query where I call some date and I' ve created the normal calendar, but when I put 'Q' & Ceil(Month(Date_S)/3) AS Quarter.

The result is:

Example1.JPG

I don´t know why appear the Q in the dashboard. it would be Q1 to Q4 right?

Thanks.

3 Replies
swuehl
MVP
MVP

I would assume, that ceil(month(Date_S)/3) returns no result (NULL) for some record. Are you sure you have data for all records? If you are not sure, you might want to check the record with isnull before building your Quarter string.

edited:

like

if(isnull(Date_S)=0, YOUREXPRESSION ) as Quarter,

edited by swuehl

SunilChauhan
Champion II
Champion II

if(Ceil(Month(Date_S)/3)<>'Q',Ceil(Month(Date_S)/3))

Sunil Chauhan
pgalvezt
Specialist
Specialist
Author

Gave me the same result. But I eliminated the 'Q' and my final table was 1,2,3,4.

Thanks Guys.