Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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 |
---|---|
85 | |
75 | |
71 | |
69 | |
55 |
User | Count |
---|---|
98 | |
96 | |
92 | |
78 | |
70 |