The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi
I have Reporting Table that containes Customer IDs and a Customer Table that also contains Customer IDs.
I want to filter my Reporting Table to only show the Customers that exist in the Customer Table.
Can you please help???
Solved! Go to Solution.
It should be possible to pull the Customer ID field from the Customer table onto a visualisation and then add anything from the report table. This will only show records from customers that exist in both.
A DAX way to find a list would be something like
Table = FILTER(VALUES(Reporting[CustomerID]), CALCULATE(COUNTROWS(Customer) > 0))
This is a bit like an EXISTS query in SQL
Do you have a relationship linking the 2 tables on customer id?
Yes a many to many relationship
It should be possible to pull the Customer ID field from the Customer table onto a visualisation and then add anything from the report table. This will only show records from customers that exist in both.
A DAX way to find a list would be something like
Table = FILTER(VALUES(Reporting[CustomerID]), CALCULATE(COUNTROWS(Customer) > 0))
This is a bit like an EXISTS query in SQL
User | Count |
---|---|
65 | |
60 | |
60 | |
53 | |
27 |
User | Count |
---|---|
181 | |
88 | |
70 | |
48 | |
46 |