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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
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!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.