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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Rejaul84
Frequent Visitor

Turn column headers into rows in a table visual

Is there a way where I can have the data headers to be a row and then the values to be in another column with out unpoviting?

1 ACCEPTED SOLUTION

Hi @Rejaul84  today i have tried once again.

Anuja_Chaudhari_0-1707391205634.png

this is my sample dataa..

as you said you want header in row  without transpose and unpivot 

first I have created this data and you would need to create a calculated table or use DAX measures to generate the desired result.

Anuja_Chaudhari_1-1707391375034.png

 Hope this is work for you  what you are expecting. 

Thank you 

 

 

View solution in original post

5 REPLIES 5

This can be achieved using the "Transpose" feature in Power Query Editor.

Import your dataset into Power BI.

 open the Power Query Editor.

In Power Query Editor, select the columns that you want to transform into rows (the headers).

Right-click on the selected columns and choose "Transpose" 

After transposing the data, you'll see a new row containing the original column headers.

Right-click on the first row and choose "Use First Row as Headers" to promote the row to headers.

 

Anuja_Chaudhari_0-1707225398603.png

 

@Anuja_Chaudhari  Can you do this in the visual rather than transposing the data?

I have tried with table matrix but it is not acchiving proper output

I tried that but could not get to what I wanted. Thanks for trying.

Hi @Rejaul84  today i have tried once again.

Anuja_Chaudhari_0-1707391205634.png

this is my sample dataa..

as you said you want header in row  without transpose and unpivot 

first I have created this data and you would need to create a calculated table or use DAX measures to generate the desired result.

Anuja_Chaudhari_1-1707391375034.png

 Hope this is work for you  what you are expecting. 

Thank you 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.