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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How do I group dates together?

I have defined the data so that it is YYYY/MM format however it is showing in a table as every row.  I want to group so that the value 2017/01 appears once instead of each row containing that information.

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

The formatting pattern changes only the display, it does not change the internal value.  Grouping, such as a dimension values, is done using the internal values.  So if you want a month only date for example, you will need to use a function that makes a single value for the month and then apply the date format.  For example,

Date(MonthStart(OrderDate), 'YYYY/MM') as OrderMonth

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

http://www.easyqlik.com

Anonymous
Not applicable
Author

Fantastic thanks for your help Rob!