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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Yosinator
Frequent Visitor

How can I change the order of my x-axis in this graph?

It seems to be in a random order at the moment. 

Yosinator_0-1668798401765.png

 

1 ACCEPTED SOLUTION
v-yinliw-msft
Community Support
Community Support

Hi @Yosinator ,

 

You can try to create a measure,

New a measure:

 

Sort Measure =
VAR _a =
    FIND ( " ", MAX ( 'Table'[BOOTCAMP] ) )
VAR _date =
    RIGHT ( MAX ( 'Table'[BOOTCAMP] ), LEN ( MAX ( 'Table'[BOOTCAMP] ) ) - _a )
RETURN
    CONVERT ( _date, DATETIME )

 

And apply it as Tooltip ,then sort the visual by it,  like this:

vyinliwmsft_0-1669364834973.png

 

Hope this helps you.

Here is my PBIX file.

 

Best Regards,

Community Support Team _Yinliw

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

View solution in original post

3 REPLIES 3
v-yinliw-msft
Community Support
Community Support

Hi @Yosinator ,

 

You can try to create a measure,

New a measure:

 

Sort Measure =
VAR _a =
    FIND ( " ", MAX ( 'Table'[BOOTCAMP] ) )
VAR _date =
    RIGHT ( MAX ( 'Table'[BOOTCAMP] ), LEN ( MAX ( 'Table'[BOOTCAMP] ) ) - _a )
RETURN
    CONVERT ( _date, DATETIME )

 

And apply it as Tooltip ,then sort the visual by it,  like this:

vyinliwmsft_0-1669364834973.png

 

Hope this helps you.

Here is my PBIX file.

 

Best Regards,

Community Support Team _Yinliw

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

Great idea! I'll give this a shot. 

Thank you. 

Syk
Super User
Super User

Top right there should be a menu you can change the order of the axis and legend

Syk_0-1668800996964.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors