Forum Discussion

vdog01's avatar
vdog01
Frequent Visitor
7 years ago
Solved

Combining tables for exporting

Hello all, I have an issue that I'm trying to resolve.

 

Let's say I have two tables

 

Table 1 has 2 columns

col1col2
a1
b1
c1

 

Table 2 has 3 columns and is joined to table 1 by col1 (1:many)

col1col2
aaa
b123
baaa
cbb

 

 

I also have a two tab Power BI report that has the two tables as separate tables, eg, here the report is filtered where col1 = 'b'

 

 

I would like to get a second tab which combines both table 1 and table 2 so it can be exported as 1 single file, rather than having to do a separate export for table 1 and table 2?

 

 

I tried creating new Merged table of Table 1 and Table 2, but the filter doesn't seem to work, in that the combined table seems to include all the rows, 

 

I tried copying the filters from the first tab and syncing them but this doesn't seem to work.

 

Any suggestions I can try?

  • Hi vdog01,

     

    Based on your description, I have made a test with your data sample and I could export the data of combined table with filter like below.

     

    I don't merge the two table, I append the two table in Query Editor.

     

    More details, you could have a reference of the attachment.

     

    Best  Regards,

    Cherry

2 Replies

  • v-piga-msft's avatar
    v-piga-msft
    Resident Rockstar

    Hi vdog01,

     

    Based on your description, I have made a test with your data sample and I could export the data of combined table with filter like below.

     

    I don't merge the two table, I append the two table in Query Editor.

     

    More details, you could have a reference of the attachment.

     

    Best  Regards,

    Cherry

    • vdog01's avatar
      vdog01
      Frequent Visitor

      Thank you!

       

      I think I was making my solution too complicated.  This is a much simpler solution!