Forum Discussion
Relating Table dataset to a Matrix to perform calculations
- Anonymous4 years ago
HI
Create a measure say ProdCount=count(Product) with its name so for ex for Cake- 2 and so on.
Then just mulitiply it like ProdCount* No of Ingredients required say for Cake it has to be
2* 2 (Flour) and so on, looks like its simple maths.
Check with simple aggregate function Count
- 4 years ago
This measure should work as well:
zFlour = SUMX('Project', RELATED('Product'[Flour]))
I would suggest you to calculate count of Orders and then multiply it with Ingradients
- Anonymous4 years agoNot applicable
Yes, exactly. What is the syntax for a measure that will do that?
I can use Countrows(Table[Product]) to get a count for each of the orders per product.
But I do not know how to multiply by the product name in the matrix
In excel I can xlookup by the product name then cross check and return the product of the two. I dont know if DAX has a similar function.