cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
primolee Frequent Visitor
Frequent Visitor

Using row data as column names

Hello everyone,

 

Following is my assumption, I have 4 columns in my raw data - Column Name, Channel, Placement and Content.

 

I want to use data in "Column Name" as column names and use data in that column cell accordingly to generate "Custom Column".

 

Is there a way of doing so in Power Query?

 

I understand a column is expressed in square brackets, but what expression should I use to achieve the above?

 

Thank you so much for your time and help.

 

Temp.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Using row data as column names

@primolee 

 

Try this custom column from Query Editor

 

=Record.Field(_,[ColumnName])

 

Try my new Power BI game Cross the River

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Using row data as column names

@primolee 

 

Try this custom column from Query Editor

 

=Record.Field(_,[ColumnName])

 

Try my new Power BI game Cross the River

View solution in original post

primolee Frequent Visitor
Frequent Visitor

Re: Using row data as column names

Didn't know this expression!  Work like charm!  Thank you!

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (1,784)