Forum Discussion

4rmfunction's avatar
4rmfunction
Frequent Visitor
2 years ago

Visuals not sorting months chronologically by year

Hi all,

 

I am having an issue with my visuals displaying the slicer filters correctly. Instead of the months being displayed in chronological order, they are being displayed in chronological order by month name. Please see below:


All of the visuals on this page are experiencing the same issue. Has anyone come across this and if so, were you able to fix it? Does anyone know what may be affecting the visuals in this way? Thanks so much!

5 Replies

  • Your calendar table must have a Month Number column in addition to the Month Name column.  Then use "Sort a column by another column"  to sort the month name by the month number.

     

    Your display seems accurate. What would you expect instead?

  • 4rmfunction's avatar
    4rmfunction
    Frequent Visitor

    Thanks lbendlin,

     

    Unfortunately, it looks like a formatting issue. Your solution gave me the same result as my original message.

     

    When I use a custom column with the input =Date.ToText([Date], "yyyy-MM"), I wind up with the visuals looking like this:

    Which is great because they're in chronological order. I was hoping to format the code so it would give me a JAN or FEB, but when I do, it also reverts back to the original issue. If you have any other insight that'd be great though.

    • lbendlin's avatar
      lbendlin
      Super User

      You have to include the year to make it work.  Don't use any hierarchies, instead use the date and format it as "mmm yyyy"