Forum Discussion
SUMPRODUCT in Matrix Visual
HI,
I have a relatively simple dataset copied below where I am seeking to replicate SUMPRODUCT from Excel by working out the difference between sub asset classes between two dates and applying a weighting. I have been able to create the measure but it is displaying oddly in the Matrix visual in Power BI desktop so I am hoping someone can point me in the direction of what I need to add:
| BB Summary | Sub AA | Attribute | Value | Weight |
| Gilts | Gilt Long | 30 June 2021 | 3941.19 | 0.25 |
| Gilts | Gilt Long | 31 May 2021 | 3912.91 | 0.25 |
| Gilts | Gilt Short | 30 June 2021 | 305.48 | 0.75 |
| Gilts | Gilt Short | 31 May 2021 | 304.78 | 0.75 |
The table is called "Benchmark Performance (GBP)" and I have been able to create a measure as follows:
In the above example, I would expect the output to be Gilts 0.18+0.17% = 0.35%
Any pointers greatly appreciated
- Anonymous5 years ago
Hi danakajoel
try it
test= SUMX(VALUES('Benchmark Performance (GBP)'[Sub AA]),[Value % difference from Period Start GBP])
2 Replies
- AnonymousNot applicable
Hi danakajoel
try it
test= SUMX(VALUES('Benchmark Performance (GBP)'[Sub AA]),[Value % difference from Period Start GBP])- danakajoelFrequent Visitor
Hi Vera. Absolutely perfect. Thank you. I'd spent hours investigating and trying ISINSCOPE etc to no avail. I'll need to read up on the VALUES function to better my understanding but problem solved 🙂