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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Dixy
Frequent Visitor

How to change Columns & Values hierarchy in Matrix Visual ?

In my Matrix Visual I am getting the data like following - is it possible to change it as shown in my table below where 1st level classification  is Section and then Group? 

Current State : 

Dixy_1-1732226532360.png

 

Desired Result : 

Dixy_2-1732226655787.png

 

Data :

 

AttributeDarkLiveSection 1Section 2Section 3Group
B 2761Group1
B_DarkDark2761Group1
B_LiveLive000Group1
B 2212526Group2
B_DarkDark2212526Group2
B_LiveLive000Group2
A 14010425Group1
A_DarkDark14010225Group1
A_LiveLive020Group1
A 9313118Group2
A_DarkDark9313118Group2
A_LiveLive000Group2
1 ACCEPTED SOLUTION
Dixy
Frequent Visitor

I was able to change the data model and that got the data in required format. 

View solution in original post

2 REPLIES 2
Vallirajap
Resolver III
Resolver III

Hii @Dixy

Using a power query editor to achieve this one 
Select Transform Date -> In the power query editor, select the section 1, section 2, and section 3 columns, and select the unpivot columns in the Transform pane. Now the data is like below. 

Vallirajap_1-1732251440232.png

Select close and apply to upload the data.

 

Then choose the matrix table visual.

1. Row field: choose Attributes column

2. Column field: first select the section column; next select the group column.

3. Values filed: select the value column. 

 

Now the matrix table is displayed below as per your need.

Vallirajap_0-1732251413157.png

 

I hope it is helpful, Accept it as Solution to help other members find it. Appreciate your Kudos!

 

Dixy
Frequent Visitor

I was able to change the data model and that got the data in required format. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.