Forum Discussion

stalerik's avatar
stalerik
Helper II
6 years ago
Solved

Append Query with DirectQuery mode

I have two tables from two different databases in my Power BI model.  They contain the same columns.  I would like to append the two tables.  When I append the tables, I lose the DirectQuery ability and my data does not automatically refresh upon reload. I have tried the Append function in Power Query Editor, and also used a Union with DAX to create a new data table.  But my new table is switching to Import mode.   I would like to know a way to append the two tables into one table and keep the DirectQuery.    Thank you!

 

  • Hi stalerik ,

    Greg is right. It is not supported for DQ mode to append tables in Power Query and create calculated tables with DAX. As you tried, it is always changing to composite models. For now, there is not a good workaround to solve it. I think you could reference the document: Use composite models in Power BI Desktop to check if it is okay using the models. For composite mode, your original tables remained in DirectQuery mode and just the new tables with import mode.

     

    You could reference the documents to learn more about DirectQuery.

    About using DirectQuery in Power BI 

    Use DirectQuery in Power BI Desktop 

     

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    I am not aware that you can use Append or UNION in DAX and keep Direct Query mode.

     

  • v-xuding-msft's avatar
    v-xuding-msft
    Community Support

    Hi stalerik ,

    Greg is right. It is not supported for DQ mode to append tables in Power Query and create calculated tables with DAX. As you tried, it is always changing to composite models. For now, there is not a good workaround to solve it. I think you could reference the document: Use composite models in Power BI Desktop to check if it is okay using the models. For composite mode, your original tables remained in DirectQuery mode and just the new tables with import mode.

     

    You could reference the documents to learn more about DirectQuery.

    About using DirectQuery in Power BI 

    Use DirectQuery in Power BI Desktop 

     

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.