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: 
Not applicable

Creating Quarters, why do i get a single Q?

Hi,
I'm using next formula to compute quarters based on a dataset from an xls:
This way I end op with
Q1, Q2, ,Q3, Q4 and a Q in my selection boxes. How can i get rid of it?
Thanx!
1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Hi,

It is due to the null values you just need to exclude null values try the below code

If(isnull(DateColumn) = 0, 'Q' & Ceil(Month(Date(DateColumn))/3)) as Quarter by this you exclude null values.

Regards,

Anand

View solution in original post

2 Replies
its_anandrjs
Champion III
Champion III

Hi,

It is due to the null values you just need to exclude null values try the below code

If(isnull(DateColumn) = 0, 'Q' & Ceil(Month(Date(DateColumn))/3)) as Quarter by this you exclude null values.

Regards,

Anand

Not applicable
Author

Thankx!