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.
Hello,
Please, consider this situation:
Product table, with a one-to-many relationship with a Sales table (following case presented in this sqlbi.com article).
I want to understand the behaviour of using expanded tables.
If I write this measure:
NumOfProductsSold = CALCULATE ( COUNT('Product'[ProductKey]), Sales )
It will return me the number of products sold, but a distinct list of the products sold, not a simple count of products.
Why?
Isn't this using the expanded tables of Sales, and therefore the related Product columns of this expanded table? If this was the case the values would not contain only the distinct values.
Can anybody please clearly explain what is going on?
Thanks,
Solved! Go to Solution.
@Anonymous
See LEFT OUTER JOIN in https://www.sqlbi.com/articles/expanded-tables-in-dax/ and learn https://www.sqlbi.com/articles/capturing-power-bi-queries-using-dax-studio/.
@Anonymous
See LEFT OUTER JOIN in https://www.sqlbi.com/articles/expanded-tables-in-dax/ and learn https://www.sqlbi.com/articles/capturing-power-bi-queries-using-dax-studio/.