Forum Discussion
Multiplying distinct count with related table
- 4 years ago
I tried that but it did not work as the top row should give value 200.
However we solved it by adding a calculated column to the main table with the cost value and price added per row. The muliplication still did not work at first, due to one data being aggregated and the other were not. However using MAX did the trick and the data is presented correctly.
Thanks!
Hi MikeSwe ,
If you have created the following relationship, then I think you can try the measure.
Measure = [Nbr. Unique Site Category] * SUM(cost[Price]) * SUM(cost[CostValue])
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I tried that but it did not work as the top row should give value 200.
However we solved it by adding a calculated column to the main table with the cost value and price added per row. The muliplication still did not work at first, due to one data being aggregated and the other were not. However using MAX did the trick and the data is presented correctly.
Thanks!