Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Repeat Power Query for different Tables in the same workbook

Hello everybody!   Currently I have the following situation: - One excel file with 15 tables, for 15 company metrics by day and by employee. Metric1: Name 01/01/2020 01/02/2020 Employee1...
  • AlB's avatar
    AlB
    6 years ago

    Anonymous 

    I said leave only the tables with data. You have Planinha1 and Join as worksheet still. Why? Remove them. Then it will work. An alternative is to remove the corresponding rows for those two worksheets in the M code, immediately after the Source step in the main query. Again, do not load the result of the main query (Consulta1) to an excel table, load it through a connection only into the data model. And again, once this works I would recommend keeping the data tables in one file and the queries and processing in another one (you would only have to change the way you get your tables at the beginning of the main query, since it will not be with Excel.Currentbook( ))

     

    Please mark the question solved when done and consider giving kudos if posts are helpful.

    Contact me privately for support with any larger-scale BI needs

    Cheers