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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
JimB-GA
Helper III
Helper III

Unable to sort by date rather than value

The community is a life saver to me as I teach myself Power BI.  Thanks for all the support.

 

I have created a date table that includes date, date as integer, and YearMonthName.  I have a clustered column visual tbat shows the count of records each month.  Unfortunately it sorts by the value field and not by the Axis (yearMonthName)

 

2019-01-22_14-31-37.gif

 

I have tried to use 'sort by column ' and select date but receive a 'sort by another column' message saying there can't be more than one value in the 'Date' field for the same value in "YearMonth".

 

 

 

1 ACCEPTED SOLUTION

Can't you just switch the Sort by column for YearMonthShort to the YearMonthNumber column?

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi

When you click on the Top right corner of visual ->sort by -> select the date , what happens?

 

Sort by.PNG

Changing Sort to YearMonth, and then sort ascending gives me following.    I still cannot get the months to sort in ascending order

 

2019-01-22_16-22-56.gif

Anonymous
Not applicable

Please refer this post and you can  follow the same steps.

 

https://community.powerbi.com/t5/Desktop/Month-Name-in-sorting-order-in-Direct-Query/td-p/204269

 

Thanks
Raj

@JimB-GA yo also need to change the sort order, you just selected which field to use for sorting

 

Sort.PNG



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I changed sort order.  The previous graph illustrates setting for ascending order.  Here is what descending order looks like:

 

2019-01-22_18-52-13.gif

 

 

Can't you just switch the Sort by column for YearMonthShort to the YearMonthNumber column?

That worked.  Would like to use other date option but this works.

 

Thanks!

 

2019-01-23_8-52-10.gif

parry2k
Super User
Super User

@JimB-GA you have to change the sortorder in the visual, click on ... (eclipse) on your visual and select sort field.

 

VisualSort.PNG



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.