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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
bensimpsy
Frequent Visitor

Sorting Column Dates in a Matrix Table

Hi All,

 

I am hoping to get some assistance using the Power BI Service.  I would like to create a matrix table that shows sales figures by month for a list of subsidiaries.  I can create the matrix fine, but it sorts the dates in alphabetical order instead of the expected month order:

bensimpsy_0-1712625494158.png

If instead of using the month names, I use the month numbers this works fine. However I want to use the month names as the column headers not the month number.  I also do not want to have to use a combination of month number and name (ie. 01 January, 02 February).

 

I have tried the advice in this article, however there is no tooltip available for a matrix, so I could not follow these instructions beyond step 3: https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-servic...

 

The current configuration looks like:

bensimpsy_1-1712625783724.png

I have a Date table setup with a relationship to my sales table, and the date table looks like the following:

bensimpsy_2-1712625867456.png

Any help appreciated.

 

Regards,

Ben

1 ACCEPTED SOLUTION
bensimpsy
Frequent Visitor

I've managed to solve this by editing the Semantic Model, selecting my Date table -> Month_Name field and then in the Advanced Settings there was an option to select a sort by column.

bensimpsy_0-1712651446185.png

This then sorted the columns in the Chronological order.

bensimpsy_2-1712651651608.png

Hopefully this helps someone in future.

View solution in original post

3 REPLIES 3
bensimpsy
Frequent Visitor

I've managed to solve this by editing the Semantic Model, selecting my Date table -> Month_Name field and then in the Advanced Settings there was an option to select a sort by column.

bensimpsy_0-1712651446185.png

This then sorted the columns in the Chronological order.

bensimpsy_2-1712651651608.png

Hopefully this helps someone in future.

Idrissshatila
Super User
Super User

Hello @bensimpsy ,

 

yes, you can sort the month name by the month number in the data view.

 

check this out https://youtu.be/NlX7Cp2P0d4?si=7lyMiYXCuiSVDnZc

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Thanks for the reply, however I am using the Power BI Service (app.powerbi.com) not the Desktop App and this same approach doesn't seem to apply.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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