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

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

Reply
Anonymous
Not applicable

Transpose table column values

Hello All,

I have a table which is having three columns as below.

1.PNG

 

Now i would like to conver this table as2.PNG

 Is it possible with powerbi.

Any suggestions.

 

Thanks you

Mohan V.

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Based on my test about @Greg_Deckler's Power Query code, it can achieve your requirement, see:

 

e3.PNG

 

Also you can select "Current Status" and "Next Action" columns then click Unpivot Columns, then use matrix visual to display data. 

 

e4.PNGe5.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi All,

 

If you go to Format / Values turn on "Show on rows". and you'll have it.

 

Best regards,

 

 

Hi @Anonymous 

 

Thank you so much. 

This is exactly i was looking for

Greg_Deckler
Community Champion
Community Champion

How about this one?

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCkkszjZU0lEKSM1LycxLVyjPLMlQqAAKJGekJmfDuLE6EJVG6CorUVVWwlUao6usQlVZpRQbCwA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Task = _t, #"Current Status" = _t, #"Next Action" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Task", type text}, {"Current Status", type text}, {"Next Action", type text}}),
    #"Transposed Table" = Table.Transpose(#"Changed Type"),
    #"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]),
    #"Added Index" = Table.AddIndexColumn(#"Promoted Headers", "Index", 0, 1),
    #"Added Conditional Column" = Table.AddColumn(#"Added Index", "Custom", each if [Index] = 0 then "Current Status" else "Next Action" ),
    #"Removed Columns" = Table.RemoveColumns(#"Added Conditional Column",{"Index"})
in
    #"Removed Columns"


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

thanks for the reply @Greg_Deckler.

I did tried this already.

But it dosent matches with my requirement.

Can you suggest any other way please.

 

thank you.

Mohan V

Hi @Anonymous,

 

Based on my test about @Greg_Deckler's Power Query code, it can achieve your requirement, see:

 

e3.PNG

 

Also you can select "Current Status" and "Next Action" columns then click Unpivot Columns, then use matrix visual to display data. 

 

e4.PNGe5.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi v-qiuyu-msft,Greg_Deckler

 

I have the same issue but in my scenario am having more than 10 attributes,

 

If we have have 2 attributes the code is working.

How to show in a matrix if we have more than 10 attributes?

 

Please help me ASAP.

 

 

Regards,

Suresh Pantra.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.