Forum Discussion

JAGD_U's avatar
JAGD_U
Frequent Visitor
6 years ago
Solved

Avoid many "Functions & Helper Queries" from a SharePoint folder file with many tables in it - Desk

Hi, how can I avoid many "Functions & Helper Queries" when I upload many tables from just 1 file in a SharePoint folder - using PowerBI Desktop?   I change the data source of my report from a local...
  • lbendlin's avatar
    lbendlin
    6 years ago

    This part here 

     

    #"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File", Table.ColumnNames(#"Transform File"(#"Sample File"))),

     

    is the only weak spot.  It basically looks at the imported tab again (loading it a second time) to figure out what the column names are.  If you know that your excel sheets always have fixed column names then you can use list variables instead for that (and get rid of all the Sample files).

     

    Do your excel sheets have the same structure?