Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!