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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.