Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 to be problems when I all of them are selected.
Total value is a formula:
Current Cost is also a formula:
Solved! Go to Solution.
pls try this
sum =
SUMX (
VALUES(Stocks[Stock List]),
[current cost]
)
Proud to be a Super User!
For Current Cost, try using SUMX() like the following:
Current Cost =
SUMX (
VALUES(Stocks[Stock List]),
[Yesterday Close]*Stocks[Amount of Shares]
)
When 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.
pls try this
sum =
SUMX (
VALUES(Stocks[Stock List]),
[current cost]
)
Proud to be a Super User!
works a charm, thank you!
you are welcome
Proud to be a Super User!
User | Count |
---|---|
107 | |
87 | |
81 | |
76 | |
71 |
User | Count |
---|---|
112 | |
105 | |
96 | |
74 | |
66 |