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
Spireite4
Regular Visitor

Get x axis data in order

I have the below data and it is displaying the line charts as latest season (Left) to earliest (Right) but i want it the other way round and can see how to do it. Can anyone help please?

 
SeasonVariable 1Variable 2
 
Season 15/1680.0%74.0%
Season 16/1781.5%74.3%
Season 17/1882.6%75.4%
Season 18/1983.7%74.4%
Season 19/2084.0%79.6%
 
 
 
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

create a desc rank and mark it as sort column

Rank season = rankx(all(Table),Table[season ],,desc,dense)

 

Mark this as sort column for the season

Refer : https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

Sort_by_column.pngSortnewribbion.png

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
fhill
Resident Rockstar
Resident Rockstar

Quick Try:  Click the ... Icon ont he Graph and Change the Sort Ascending / Descenging order.

 

Long Option:  You can add a 'Sort Order' data column, and while 'Variable 1' is highlighted on the Fields Secion, under 'Modeling' choose 'Sort by Column' and pick Sort Order.

 

image.png




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




amitchandak
Super User
Super User

create a desc rank and mark it as sort column

Rank season = rankx(all(Table),Table[season ],,desc,dense)

 

Mark this as sort column for the season

Refer : https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

Sort_by_column.pngSortnewribbion.png

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

Not sure I 100% follow. Use the ellipses in the visual to switch sorting order descending or ascending as well as the column being sorted on. Can use a Sort By column if all else fails.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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