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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

 

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

 

Greg_Deckler
Super User
Super User

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.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors