Forum Discussion

lancersc's avatar
lancersc
Icon for Helper I rankHelper I
3 years ago
Solved

Filtering a table before Merge?

Hello!

 

So below are the tables and its contents. What im planning to do is filter the invoice month and branch code of Table A and Table B before inner joining them.

Another good thing is having the Invoice Month and Branch Code on a Visual slicer so I could change them whenever.

This is easy to do in excel but the 900k+ data is just too big and everything just freezes.

 

Is this possible to do? thanks!!

 

Table A

Invoice Month

Branch Code

Item ID

Total Item Price

 

Table B

Invoice Month

Branch Code

Item ID

Total Item Price

 

 

5 Replies

  • MahyarTF's avatar
    MahyarTF
    Icon for Memorable Member rankMemorable Member

    Not sure, if you are talking about Power BI ?

    If yes, in Power Query you could delete the columns before merging the tables, also in Power Bi, you could use the particular columns in the CrossJoin function in calculated table 

    Appreciate your Kudos and please mark it as a solution if it helps you.

    • lancersc's avatar
      lancersc
      Icon for Helper I rankHelper I

      Yes. Boss wants the whole process to be on PowerBI and im having a hard time making it work. Want to take a look at the query? 

      Why would I delete a column?

      Does crossjoin inner join the 2 datas?

      • amitchandak's avatar
        amitchandak
        Icon for Super User rankSuper User

        lancersc , if you plan to merge tables with rows filtered using a slicer (Visual), I doubt that is possible.

         

        You can use merge is power query, select multiple columns with shift and join or Use crossjoin or Generate in DAX as suggested by MahyarTF 

         

  • Figured it out. I just used a dynamic Filter.