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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
kenchan
Frequent Visitor

Import Data but the data header from another data table

Hi there,

 

I would like to import a CSV file which have 90 Cols but it does not have the header. Instead of manual update the header one by one, I would like to map it via another table created in the Power BI. May I have some tips or hints how I can transfer it? 

 

CSV File Image:

kenchan_0-1685472387116.png

 

Mapping Table Image:

kenchan_1-1685472471134.png

 

Thank you, Ken

2 REPLIES 2
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

try this, from the mapping table:

 

  1. Sort ascending on original column
  2. Transpose
  3. Remove top row (1) to remove original column row
  4. Append query (table with data)
  5. Use first row as header

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Thank you for your idea. 

I am curious any other way to handle this problem incase the header is not in expected sequence

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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