Forum Discussion
findingsolution
Helper I
4 years agoCard not showing sum
I am trying to get the sum of the column 'Current Cost' in the card called 'Total Value': If I only select some of the stocks (for example A2M), it will sum the value. But there seems...
- 4 years ago
YukiK
Impactful Individual
4 years agoFor Current Cost, try using SUMX() like the following:
Current Cost =
SUMX (
VALUES(Stocks[Stock List]),
[Yesterday Close]*Stocks[Amount of Shares]
)
findingsolution
Helper I
4 years agoWhen I try it, it shows an error:
That's why I previously used selectedvalue around the amount of shares, but when I try it, the card still does not sum. How do I fix this error?
PS: amount of shares is a whole number.
- ryan_mayu4 years ago
Super User
- findingsolution4 years ago
Helper I
works a charm, thank you!
- ryan_mayu4 years ago
Super User
you are welcome