Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
tchambers
Contributor II
Contributor II

Auto-generated calendar months sort wrong

I have a table with a date field. I used the Data manager to create a MasterCalendar. It found my date columns correctly (both Created and Updated). But in this chart the months are sorted wrong (Feb, Apr, May, Mar, Jun, Aug, Jul). Order should be Feb, Mar, Apr, May, Jun, Jul, Aug.

I'm using qliksensedesktop 11.11.1 (June 2017).

What am I missing?

auto-generated-months-sort-wrong-e1009b.png

1 Solution

Accepted Solutions
rubenmarin

Hi Tim, If you sort by expression "Min(DateField)" ir should keep December first (at least if december of last year has the min date).

View solution in original post

12 Replies
shraddha_g
Partner - Master III
Partner - Master III

In Sorting Option,

Try Sorting Numerically,

and Deselect Sorting Alphabetically.

tchambers
Contributor II
Contributor II
Author

Thank you, sureshqv. That post was helpful, but I forgot to mention that my data spans across a year boundary. I want to see December from the previous year before the data from the current year. I'm going to try scripting a solution.

tchambers
Contributor II
Contributor II
Author

Thank you, shraddha.g‌. That screenshot is not sorted alphabetically. Sorting numerically helped, but see my response above‌.

antoniotiman
Master III
Master III

Try to sort by Date

tchambers
Contributor II
Contributor II
Author

Thank you for responding, antoniotiman‌. I'm using a bar chart with a list of alternative dimensions. When I display Created.Date it sorts correctly. As my screenshot shows, I'm having trouble with Created.Month. See my response above for my current plan to solve my problem.

cazztfplease
Creator
Creator

Have you tried generating a composite field comprised of Year and Month data and sort numerically?

MK9885
Master II
Master II

Add sort script and use that sorting field in front end

Load * Inline [

Created.Months,     SortingOrder

Jan                               1

Feb                               2

Mar                               3

Apr                               4

May                              5

Jun                               6

Jul                                7

Aug                              8

Sep                              9

Oct                              10

Nov                             11

Dec                             12

];

Probably use SortingOrder in your settings? Guess that should work.

rubenmarin

Hi Tim, If you sort by expression "Min(DateField)" ir should keep December first (at least if december of last year has the min date).