

Partner - Creator III
2017-10-06
10:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Date to year quarter
Hello Qlik developers,
I have a date field in which i have the values like 20170630 , 20170930, 20171231. I want to convert this as 2017Q2, 2017Q3 and 2017Q4 . Any idea's ?
6,191 Views
1 Solution
Accepted Solutions

MVP
2017-10-06
10:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this
Year(Date#(DateField, 'YYYYMMDD')) & 'Q' & Ceil(Month(Date#(DateField, 'YYYYMMDD'))/3) as Quarter
2 Replies

MVP
2017-10-06
10:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this
Year(Date#(DateField, 'YYYYMMDD')) & 'Q' & Ceil(Month(Date#(DateField, 'YYYYMMDD'))/3) as Quarter


Partner - Creator III
2017-10-06
10:15 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks bro.
5,761 Views
