Forum Discussion

mim's avatar
mim
Advocate V
9 years ago
Solved

append the same table without double refresh

hi 

 

is it possibe to append the same query without having to refresh both ?

8 Replies

  • v-haibl-msft's avatar
    v-haibl-msft
    Microsoft Employee

    mim

     

    If I understand you correctly, you can try the solution provided in following two links.

    https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/13305798-append-data-to-existing-data-model

    https://social.technet.microsoft.com/Forums/en-US/9d0ff65a-59b8-435b-be0a-b9c6a72264a3/separate-queries-refresh-with-append?forum=powerquery

     

    According to this link, it seems that auto-refresh will always happen when using Power Query append function.

     

    Best Regards,

    Herbert

  • Yes. You can append the multiple queries in PowerBI without the refresh. It is either the same query or the new query created with the other data source.

     

     

    • mim's avatar
      mim
      Advocate V

      here is an example

       

      let
      Source = Excel.Workbook(File.Contents("C:\Users\mimoune.djouallah\Desktop\tar\TAR.xlsx"), null, true),
      COMBINED_Sheet = Source{[Item="COMBINED",Kind="Sheet"]}[Data],
      #"Promoted Headers" = Table.PromoteHeaders(COMBINED_Sheet),
      #"Appended Query" = Table.Combine({#"Promoted Headers", #"Promoted Headers"})
      in
      #"Appended Query"

       

      as i have no way to know how powerquery internally works, are steps, source, COMBINED_Sheet, #"Promoted Headers" are done only 1 time  ?

       

      cheers

       

      • BhaveshPatel's avatar
        BhaveshPatel
        Super User

        All the query processing steps are recorded like VBA Macro in powerquery. If you would like to change something in previous step, You can do so by deleting particular step and recreating a new step. It is really flexible and smart tool which automates the certain tasks such as data type detection, promoting headers automatically but if you want to manually override those steps, you can go to the particular step and select the gearbox icon next to it to see how it is processing steps internally.

         

        You can also write custom queries in PowerQuery using Advanced Editor in the View Tab.