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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
shaunb94
Helper I
Helper I

Sorting in a Matrix using another column.

Hi, 

I have the below matrix but I am having issues sorting it the way that the user has required. 

I want the matrix to show the 6 months of revenue first then the 6 months of billing rather than side by side so I know I need to sort on something other than month.

 

The solution should look similar the pivot table below, but instead of having 'HRS weighted' & 'HRS', I would have Revenue & Billing. Does anyone know how to do this in Power BI? I have briefly tried calculation groups already but can't seem to work it out yet.

MATRIX:

shaunb94_0-1687009984577.png

 

PIVOT TABLE:

shaunb94_1-1687010041238.png

 

Any help would be greatly appreciated. 

 

Thanks,

Shaun

1 ACCEPTED SOLUTION
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

you'll need to create a new table with the sorting order for you columns and then use sort by in the column tools to adjust it to that order. I wrote a blog which includes how to do this, check out: https://github.com/DOLEARY85/Power-BI-Replicate-Excel-Table

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

View solution in original post

2 REPLIES 2
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

you'll need to create a new table with the sorting order for you columns and then use sort by in the column tools to adjust it to that order. I wrote a blog which includes how to do this, check out: https://github.com/DOLEARY85/Power-BI-Replicate-Excel-Table

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Thanks so much, I didn't actually need to do anything with the sorting. Duplicating & Unpivoting did the trick by itself. 

shaunb94_0-1687030287218.png

 

Great Blog Post 🙂

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.