Forum Discussion
Bandana_Havana9
10 months agoNew Member
Filter and Sum
Hi, I need add together the items sold based on specified sales code. This is what I currently have, but it is not working. Do I need to create a measure for grouping the sales code first (1000...
- 10 months ago
It's difficult to be sure without seeing your model and relationships, but, I would think this syntax should work.
Total Black = CALCULATE( SUM(FactInternetSales[SalesAmount]) , FILTER(DimProduct, DimProduct[Color] IN {"Black"}) )
KNP
Super User
10 months agoIt's difficult to be sure without seeing your model and relationships, but, I would think this syntax should work.
Total Black =
CALCULATE(
SUM(FactInternetSales[SalesAmount])
, FILTER(DimProduct, DimProduct[Color] IN {"Black"})
)