Forum Discussion
Anonymous
6 years agoNot applicable
Weighted distribution column
Hi, I need to calculate Sum of Sales for all Clients where a specific product was sold. EX.: I have a matrix table, with the products as Rows and I need the Total sales, Sum of Sales for all ...
- 6 years ago
hi Anonymous
Just adjust the formula as below:
All products QTY at Clients where P was sold 2 = var _allclients=VALUES('Sales Table'[Client ]) Return CALCULATE(SUM('Sales Table'[Qty]),FILTER(ALLEXCEPT('Sales Table','Sales Table'[Date]),'Sales Table'[Client ] in _allclients))Regards,
Lin
v-lili6-msft
6 years agoCommunity Support
hi Anonymous
you may need to use ALLxxxx function to in your measure to get it.
if not your case, please share your sample pbix file and expected output, that will be a great help.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Regards,
Lin