Forum Discussion

mattcha's avatar
mattcha
Regular Visitor
2 years ago
Solved

Change default sorting of a visual

Hi everyone,

I have created a calendar table (see screenshot) linked to a paramater to change the way data is displayed. 

 

With this formula, my columns "MonthYear" and "Year" are date format and "WeekYear" and "QuarterYear" text format because of the letters. 
I alredy customized a bit the formula so that my weeks can be sorted ascending without having 2005 W1, 2005 W10 and so on. 

The only problem I have now is that when I use "WeekYear" or "QuarterYear", the default sorting will be set on the Y axis resulting in not viewing the data in a chronological order:
(using "YearQuarter")

VS using "YearMonth"

Is there a way to set or change the default sorting order of a visual? 

 

 



  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi mattcha 

     

    Are you sorting your visual in ascending and descending order than for date table maybe it won't work. 

    So instead of that try sorting the column "YearQuarter" and "YearMonth" using Year or Month column in the data view. 

     

    For example,

     

    Like I was able to see Month Name in order in Data view but when i plot month name in any visual it will show in random way for that i have sorted month name column using month. 

     

    Best Regards.

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi mattcha 

     

    Are you sorting your visual in ascending and descending order than for date table maybe it won't work. 

    So instead of that try sorting the column "YearQuarter" and "YearMonth" using Year or Month column in the data view. 

     

    For example,

     

    Like I was able to see Month Name in order in Data view but when i plot month name in any visual it will show in random way for that i have sorted month name column using month. 

     

    Best Regards.

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi mattcha ,

     

    If sort by column doesn't work. You can try using rankx, to sort your values.

     

    Hope it helps!

     

    Best regards,
    Community Support Team_ Scott Chang

     

    If this post helps then please consider Accept it as the solution to help the other members find it more quickly.