Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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 Last week.
I have tried this,
'Accounts w/ Orders Last Week' = FILTER('Accounts', Accounts(AccountID) = RELATEDTABLE('Orders'[AccountID]))
...but I get the error that a "single value for AccountID cannot be determined" (which is technically correct as multiple Orders exist for each Account. So how do I filter this table?
Solved! Go to Solution.
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thanks. I was using RELATEDTABLE instead of VALUES. That was my problem.
Perhaps:
'Accounts w/ Orders Last Week' = FILTER('Accounts', Accounts(AccountID) IN RELATEDTABLE('Orders'[AccountID]))
Otherwise, sample data and such would be very helpful.