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
mhoffmann
New Member

Can't change sort

I am brand new to Power BI and running into what seems like should be an simple issue but I cannot find the answer. I have the chart below with MONTH and YEAR on the axis. I have created a YEARMONTH column I would like to use for the sort to so the dates below appear in order. Problem is, I can't for the life of me figure out how to change the current sort. The sort button is greyed out and I appear to be missing the 'data' icon on the far left that others seem to have.

 

Any ideas how I can regain use of the 'Sort By Column'? Thanks.

 

Untitled.jpg

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @mhoffmann ,

  1. If you want to use Sort by Column in the Modeling ribbon, you should first select the column (field) to sort from the Fieldspane, and then select Modeling > Sort by Column to sort your visual. If you don't select a column, the Sort by Column button is inactive.
  2. There is another way to use sort by function that you can try:

If the data type of the field that you have put in X-axis is not a sigma (∑)  value like Whole number, Decimal number or Fixed decimal number, you can click three dots in the visual and use sort by function directly.sort by.png

You can refer the following Microsoft document and similar case for further information that could also help you:

  1. https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
  2. https://community.powerbi.com/t5/Desktop/Sorting-on-Stocked-column-chart/m-p/986457#M470256

 

Best Regards,

Yingjie Li

 

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-yingjl
Community Support
Community Support

Hi @mhoffmann ,

  1. If you want to use Sort by Column in the Modeling ribbon, you should first select the column (field) to sort from the Fieldspane, and then select Modeling > Sort by Column to sort your visual. If you don't select a column, the Sort by Column button is inactive.
  2. There is another way to use sort by function that you can try:

If the data type of the field that you have put in X-axis is not a sigma (∑)  value like Whole number, Decimal number or Fixed decimal number, you can click three dots in the visual and use sort by function directly.sort by.png

You can refer the following Microsoft document and similar case for further information that could also help you:

  1. https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
  2. https://community.powerbi.com/t5/Desktop/Sorting-on-Stocked-column-chart/m-p/986457#M470256

 

Best Regards,

Yingjie Li

 

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

Thank you both for your answers. Using both of them I was able to get everything sorted as needed. Much appreciated!

amitchandak
Super User
Super User

Create a Month year and month year sort column in your Date table

 

Month year = format([Date],"MMM-YYYY")

Month year Sort = format([Date],"YYYYMM")

Use Month year Sort one as sort column

Sort_by_column.pngSortnewribbion.png

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.