Forum Discussion

Rameshu's avatar
Rameshu
New Member
2 years ago

Need help to get column and Row values in Matrix

Hi,

Could you some please help with below query.

Sample data:

CategLableGap2Gap1pur
Lable10.1240.25130.19
Gap20.12410.2490.46
Gap10.250.4910.56
pur0.190.460.491

 

Expected Output:

CatGAP1GAP2lablePur
GAP110.240.640.49
GAP20.2410.750.46
lable0.210.1010.16
Pur0.490.460.161

 

 

 

1 Reply

  • Rameshu , for Categ column you need sort column to change the order. The other are columns, you can chnage the position

    new column

    Categ 1= [Categ]

     

    Categ Sort =  Switch([Categ],

    "GAP1",1,

    "GAP2",2,

    "lable",3,

    "Pur",4,5)

     

    Select Categ 1 column and from column, tools mark Categ Sort as a sort column and use Categ 1 in visual

     

    PowerBI Abstract Thesis Episode 6: How to Create Sort Column and Solve Related Errors:
    https://www.youtube.com/watch?v=KK1zu4MBb-c