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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
icassiem
Post Prodigy
Post Prodigy

CSV Second Row is the Header and Split a collum based off the tabs into multiple columns

Good day,

 

I receive an automated CSV file daily on a SH Document library location. 

 

1. The first row is a general message; when importing via WEB URL from SH, how do I make the second row my header?

2. I also have a dimensional column that I want to split into multiple columns based on the row/cell number of "TAB" (Country (O TAB), Region (1 TAB), City (2 TABS)). Here is an example of the value

   Collumn: Location

   Row1: South Africa

   Row2: "TAB"   Western Cape

   Row2: "TAB" "TAB"    Cape Town

 

Please Help with any ideas

 

Regards

1 ACCEPTED SOLUTION
Akash_Varuna
Super User
Super User

Hi @icassiem Try this please 

  1. Make Second Row the Header:

    • Remove the first row in Power Query (Remove Rows > Remove Top Rows).

    • Promote the second row as headers (Transform > Use First Row as Headers).

  2. Split "Location" Column by "TAB":

    • Replace "TAB" with a delimiter like | (Transform > Replace Values).

    • Split the column by the delimiter (Transform > Split Column > By Delimiter).

    • Trim spaces (Transform > Trim).
      If this post helped please do give a kudos and accept this as a solution
      Thanks In Advance

View solution in original post

2 REPLIES 2
Akash_Varuna
Super User
Super User

Hi @icassiem Try this please 

  1. Make Second Row the Header:

    • Remove the first row in Power Query (Remove Rows > Remove Top Rows).

    • Promote the second row as headers (Transform > Use First Row as Headers).

  2. Split "Location" Column by "TAB":

    • Replace "TAB" with a delimiter like | (Transform > Replace Values).

    • Split the column by the delimiter (Transform > Split Column > By Delimiter).

    • Trim spaces (Transform > Trim).
      If this post helped please do give a kudos and accept this as a solution
      Thanks In Advance

Thank You so much @Akash_Varuna , this worked nicely 🙂

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors