Forum Discussion

Dixy's avatar
Dixy
Frequent Visitor
1 year ago
Solved

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 : 

 

Desired Result : 

 

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
  • I was able to change the data model and that got the data in required format. 

2 Replies

  • Dixy's avatar
    Dixy
    Frequent Visitor

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

  • 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. 

    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.

     

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