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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.