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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
elbartje
Frequent Visitor

Reorder Axis

I got this graph:

elbartje_0-1640593517044.png

It shows me all data of 2019,2020 en then for 2021 I see the data for each month.
I want the data in this order in my X-Axis:
2019, 2020, 2021, Jan, Feb, Mar, Apr, May, June, July, Aug,Sept, Oct, Nov, Dec
If I change my month format to 1,2,3 then my graph looks like this:

elbartje_1-1640593691719.png

 

Can I sort on a column that is not in the visual, or can I add a dummy column to sort on in the graph ?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@elbartje , You need to create a sort order column and mark that sort column

 

Example

Axis column 1 = [Axis Column]

 

Axis column sort =  Switch(true(),

[Axis Column] = "2019", 1,

[Axis Column] = "2010", 2,

//Add others )

 

Mark Axis column sort as sort column for Axis column 1 and use Axis column 1 in visual

 

Sort Month.png

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
elbartje
Frequent Visitor

Thank you that did the trick !!

amitchandak
Super User
Super User

@elbartje , You need to create a sort order column and mark that sort column

 

Example

Axis column 1 = [Axis Column]

 

Axis column sort =  Switch(true(),

[Axis Column] = "2019", 1,

[Axis Column] = "2010", 2,

//Add others )

 

Mark Axis column sort as sort column for Axis column 1 and use Axis column 1 in visual

 

Sort Month.png

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.