cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Can't change sort

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
Highlighted
Super User IV
Super User IV

Re: Can't change sort

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Microsoft
Microsoft

Re: Can't change sort

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

Highlighted
New Member

Re: Can't change sort

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

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors