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

Sort YYYY-MM in graph

Hi!

I have create Month as 'Year(event_start_time)&'-'& Month (event_start_time)as Month'.

The result will be like '2018-sep'

When i used it as x-axes dimension in a graph the order is not correct.

How can I solve this?

Graph date.PNG

4 Replies
nsetty
Partner - Creator II
Partner - Creator II

Try below

Sorting -> Sort by Expression

Include -> [event_start_time.autoCalendar.MonthRelNo]

sunny_talwar

May be create the dimension like this

Date(MonthStart(event_start_time), 'YYYY-MMM') as Month

stekol61
Creator
Creator
Author

Hi!

When using this expression the dateformat is like this: '2018-09-01', not '2018--sep''

Date(MonthStart(event_start_time), 'YYYY-MMM') as Month



stekol61
Creator
Creator
Author

I found the solution.

Use 'Max(event_start_time)' as sort expression