Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Filter 2 related tables

Hello all,   I have the follow table: ID Invoice Center A Center B Value A Value B Weight A Weight B Date A Date B 1 50 83 38 40000,00 1500,00 4500,00 570,00 21/01/2020 2...
  • v-zhenbw-msft's avatar
    6 years ago

    Hi Anonymous ,

     

    We can use the merge function to meet your requirement.

    Merge Table A and Table B in Power Query Editor based on Right outer.

     

     

     

    Or if you want to show the output in a table visual like this,

     

     

    You can create this measure and put it in Filter on this visual, configure the value is 1.

     

    Measure = 
    IF(
        MAX('Table A'[Invoice])=MAX('Table B'[Invoice]) &&
        MAX('Table A'[Date A])=MAX('Table B'[Date B]) &&
        MAX('Table A'[Center A])=MAX('Table B'[Center B]) &&
        MAX('Table A'[Value A])=MAX('Table B'[Value B]) && 
        MAX('Table A'[Weight A])=MAX('Table B'[Weight B]),1,0)
    

     

     

    If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

     

    Best regards,

     

    Community Support Team _ zhenbw

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

     

    BTW, pbix as attached.