Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

grouping fields 'date'

hi! how it work to grouping fields 'date' to months, quarters, years? Or if it possible to use sql functions month(), year()?

4 Replies
Not applicable
Author

In Qlik:

Month([YourDate])             AS Month,

Ceil(Month([YourDate])/3)  AS Quarter,

Year([YourDate])               AS Year

in SQL:

Month([YourDate])                        AS Month,

CEILING(Month([YourDate])/3)     AS Quarter,

Year([YourDate])                          AS Year

jonathandienst
Partner - Champion III
Partner - Champion III

Any Qlikview calendar load scripts will work equally well in QS. There is plenty of material on this site for calendars. Search for Master Calendar and also read these:

How to use - Master-Calendar and Date-Values

Canonical Date

Although these were written for QV, they apply equally to QS with little or no modification

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

OK, thanks!

Not applicable
Author

OK, thanks!