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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
JonathanKelly
Contributor III
Contributor III

Group Dates

I am trying to group dates in a bar chart to compare Month by month against last year so they order in; Jan 21, Jan 22 Feb 21 Feb 22 etc. My date field that I'm using is formatted in dd/mm/yyy so i've formatted it using Monthsname to get the format change. How am I able to group my dates like this, additionally how can colour opposing years? All 2021 blue and all 2022 brown.

JonathanKelly_0-1652276017448.png

 

Labels (3)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Either Use Two dimensions 

1st Month 

2nd Year 

And one measure

 

Or 

Use one Dimension 

Month 

And two measures 

Measure for 2021

Measure for 2022

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
Or
MVP
MVP

You could sort it via custom sort - Month(Date) - and also enable numeric sort to take care of the years (or you could do something like Month(Date) * 10000 + Year(Date))

vinieme12
Champion III
Champion III

Either Use Two dimensions 

1st Month 

2nd Year 

And one measure

 

Or 

Use one Dimension 

Month 

And two measures 

Measure for 2021

Measure for 2022

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.