Forum Discussion

bilogin's avatar
bilogin
Helper I
6 years ago
Solved

Excel import - Columns missing data

Hi all,    I have a folder with sales data for each quarter for 2 financial years.    I imported the data all good however when I looked closer, I saw that the entire column was missing. I looked...
  • edhans's avatar
    6 years ago

    A couple of things:

    1. Adding a column as you did will always add that column even if it doesn't exist in the source. It will, as you discovered, return NULL.
    2. I suspect your source data is different and not actually "MPG" in all of the files. And Power Query is case sensitive, so MPG will not import the mpg column, or the Mpg column.

    Go back to your excel files and look at the exact column headings and see what they are.

     

    If you find that the columns are changing in name by file but not in their index number - i.e. the MPG data you want is always in the 13th column, but may have a different heading, then it becomes a bit trickier to find, but still doable, but I don't want to go down that path until you've confirmed exactly what is going on.