Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mattcha
Regular Visitor

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. 

mattcha_0-1715161383264.png

 

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")

mattcha_2-1715159964078.png

VS using "YearMonth"

mattcha_3-1715160052067.png

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

 

 



1 ACCEPTED SOLUTION
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,

Screenshot 2024-05-08 160557.png

 

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!

View solution in original post

2 REPLIES 2
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.

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,

Screenshot 2024-05-08 160557.png

 

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!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.