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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Super User
Super User

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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

Top Solution Authors