Forum Discussion

adjrock's avatar
adjrock
Frequent Visitor
6 years ago
Solved

Dropping table after merging

Hi all,

I'm quite new to Power Bi. Just wondering if there's a functionality to drop a table once you are done appending it to a main table that will be used in the data model? The benefit i look for is a cleaner data model to work with and potentially decluttering memory held by Pbi when in use. Appreciate any advise.

  • Hi adjrock ,

     

    I am assuming drop means not loading the query to the model. Right-click on the query that you have already appended then uncheck Enable load. The query will be grayed out and the name italicized once load has been disabled.

4 Replies

  • Hi adjrock ,

     

    I am assuming drop means not loading the query to the model. Right-click on the query that you have already appended then uncheck Enable load. The query will be grayed out and the name italicized once load has been disabled.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi adjrock,

    Nope, you can't drop these tables be caused merge function has referenced these tables.
    For your requirement, I'd like to suggest you add some custom steps to store original source table and do merge operations, it does not require to reference other tables.

    Old: not able to drop original tables.

     

    Query1:
    let
       Source='connector formula'
    in
       Source
    
    Query2:
    let
       Source='connector formula'
    in
       Source
    
    Merge:
    let
       Source=Table.Combine({Query1,Query2})
    in
       Source

     

    New: merge into one query.

     

    let
       Source1='connector formula',//Query1
       Source2='connector formula',//Query2
       Merge=Table.Combine({Source1,Source2})
    in
       Merge

     

    Regards,

    Xiaoxin Sheng

    • adjrock's avatar
      adjrock
      Frequent Visitor

      seems like the main table is getting updated despite the required tables being "Disabled" (unchecked Enable). Shouldn't the main ables fail then? Or is it loading old stale data. I suppose I can check but Power Query is so slow at the moment that I'm about to raise a support ticket if it exists 😄

      • Anonymous's avatar
        Anonymous
        Not applicable

        HI adjrock,

        it seems like you turn off the loading option on original query tables.
        In fact, your tables are being referenced by your merge table, so these tables still loading records for the merge operation. (they do not display in data model tables)

        Any advanced operation added in your table? They will case the duplicate calculation and spend more memory resources.

        Regards,

        Xiaoxin Sheng