Forum Discussion

freelensia's avatar
freelensia
Icon for Advocate II rankAdvocate II
7 years ago

Remove meta-data above header row of CSV files when importing

I have several CSV files saved in the same folder. I am trying to import them all at once.

 

The problem is that each CSV file has 9 rows of meta-data before the header row, like this:

 

So I cannot even parse the header rows correctly:

 

How do I programmatically remove 9 rows from each file before parsing?

 

ImkeF @v-juanli-msft @Nolock Anonymous ?

 

Tks!

3 Replies

  • ImkeF's avatar
    ImkeF
    Icon for Community Champion rankCommunity Champion

    Hi freelensia ,

    easiest would be to add a column with this formula:

     

    Table.Skip([ContentTbl], 9)
      • ImkeF's avatar
        ImkeF
        Icon for Community Champion rankCommunity Champion

        Oh I see, the first screenshot was taken from column [Content] and not from column [ContentTbl] - my bad. Please paste a pic from the first table of column [ContentTbl] instead, so I can adjust the code.