Forum Discussion

Usix's avatar
Usix
Frequent Visitor
9 months ago
Solved

Error with automatic columns detection when combining excel files in folder

Hi everyone, I was starting to load & combine all files in a folder,  I did the first steps : my files contains data which starts only at column C so I add a step to delete the first 2 columns in PQ,...
  • Usix's avatar
    9 months ago

    Thank you for your quick response, yes there is a "changed type" the problem is that PQ doesn't seem to detect the same thing with the first 7 files & the 3 others (there are 10 files in the folder) but they look exactly the same ...  1 header in B2 (merged cells), column headers starting at C4 and data starting at C5; and objectively it should be the same as this is the same extract from the same tool, only for different months. 

    I just tested and when I remove the file 8, 9 & 10 it works like a charm.

    Steps of the "transform sample file" query :

    - Source

    - Navigation

    - Removed columns

    - Deleted first lines

    - Headers promoted

    - Changed type

     

     

    EDIT : It seems that PowerBI doesn't like much when a merged cell begins before datas column ... I changed a bit the tool to align the report title with datas so all start in column B : report title, data headers, datas, and it works.