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
IainPowerBI
New Member

Move Column Headings In Matrix - Power Bi Desktop

Hi,

 

I am really struggling to move my headings in the matrix below.  As you can see this needs to be sorted in the correct format but I am unable to find a way to do this.  Any help would be greatly appreciated.

Capture.JPG

 

1 REPLY 1
TheoC
Super User
Super User

Hi @IainPowerBI 

 

Did you create your "groups" in Power Query, Calculated Columns or via the Group tool?

 

The end result you need is to create a rank for each of the group's you have created.   Below is a Calculated Column you can use for this. Just add the Group Names, followed by the rank order (i.e. 1, 2, 3, 4, 5.... ) and on the last one, ensure you end it with " , 0 ) "

 

Rank = 

SWITCH (
TRUE () ,
'Table'[Group] = "0" , 1 ,
'Table'[Group] = "1" , 2 ,
'Table'[Group] = "2" , 3 ,
'Table'[Group =
"3-5" , 4 ,
'Table'[Group = .... ,
0
)

Once you do this, you can then click on your Group button in the Field pane and go to the Sort By Column button in the ribbon.  Sort by the new Rank column, and you're done 🙂

TheoC_0-1643932198080.png

All the best!

Theo

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

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.