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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Is it possible to make the values of my row as the name of a column?

ciganorose_0-1698683091784.png

i would like to make the date as the name of the column header

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Like this?

vcgaomsft_0-1699005783481.png

Advance editor:

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSkxU0lEyNAQSRgZGxrqGuoZKsTrRSklJIBEjdOHkZKCIsTGKcCwA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t]),
    #"Renamed Columns" = Table.RenameColumns(Source,{{"Column3", Text.From(List.Max(Source[Column3]))}})
in
    #"Renamed Columns"

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

Like this?

vcgaomsft_0-1699005783481.png

Advance editor:

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSkxU0lEyNAQSRgZGxrqGuoZKsTrRSklJIBEjdOHkZKCIsTGKcCwA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t]),
    #"Renamed Columns" = Table.RenameColumns(Source,{{"Column3", Text.From(List.Max(Source[Column3]))}})
in
    #"Renamed Columns"

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Anonymous
Not applicable

Can't you just select Table.PomoteHeaders?

 

--Nate

Anonymous
Not applicable

I could, but it will promote just the first row, I would like to promote only specific columns not all the columns

PijushRoy
Super User
Super User

Hi @Anonymous 

Please manually change the column header
or you are looking for dynamic name




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Anonymous
Not applicable

Yes! See this particular report it used to be in Excel, so with c# we defined the date as header of the excel then we would umpivot. Now we are getting it with SP in sql server and then we cannot define the name of the fields dynamically. I want to set the value in the row as the header name in power bi

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors