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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Issue with Quarter!

Hi All,

I am using the below function to retrieve the quarter but my clients financial year starts from april but where us here when i click on Q1 it selects jan - mar. I want that to select apr-jun and so on. Let me know how it can be done!

I know the solution may be to load the quarter using the inline function. I want know some other solution which can solve this problem.


'Q' & Ceil(Month(DATE)/3) as Quarter


Thanks and Regards,

Rikab

1 Solution

Accepted Solutions
Not applicable
Author

Hi Rikab

If you subtract 3 months from the given date it should work:

'Q' & Ceil(Month(addmonths(DATE,-3))/3) as Quarter

regards
/Fredrik

View solution in original post

1 Reply
Not applicable
Author

Hi Rikab

If you subtract 3 months from the given date it should work:

'Q' & Ceil(Month(addmonths(DATE,-3))/3) as Quarter

regards
/Fredrik