Forum Discussion

jdubs's avatar
jdubs
Helper V
6 years ago
Solved

Filter table based on value from another table

I have two tables ('Accounts' and 'Orders Created Last week' that have a relationship based on AccountID.   I want to create a new table filtering the Accounts table by those with Orders Created La...
  • mahoneypat's avatar
    6 years ago

    This would be better done in the query editor or just do this filtering in your measure(s), but if not, please try this DAX table expression

     

    'Accounts w/ Orders Last Week = FILTER('Accounts', Accounts[AccountID] in VALUES('Orders'[AccountID]))

     

    If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat