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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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