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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Uday02
Frequent Visitor

Extract Headers from the first column

Hi All,

 

I have a scenario in which i am attempting to load a text file into Power Query. The first cell of the first column contains the column names that I need to use as headers. 

 

How can I split the cell value by delimiter and use the resulting values as column names in Power Query?

 

Please assist.

 

Thank you!

 

Uday02_0-1681744185074.png

 

Uday02_2-1681744229817.png

 

 

2 REPLIES 2
archuleta28
Resolver I
Resolver I

Hello @Uday02 ,

 

If I have understood correctly, you can try replacing deliminator from coma to pipe "I". 

archuleta28_0-1681896782949.png

 

 

Then try to load your text file. Before loading, select Custom delimeter option for pipe. You will see, column names are separated in preview: Load data.

 

archuleta28_2-1681896935802.png

 

Now, go to power query. -> Remove rows-> Remove top rows -> Remove top 1 row. -> Promote header -> rename header name.

(The top row can be removed in the source text file itself if you are allowed to)

 

archuleta28_3-1681897188726.png

 

Please let me know if this is not the desired solution. 

 

 

lbendlin
Super User
Super User

Please provide the sample data in usable format, not as a screenshot.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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