Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
105 | |
79 | |
68 | |
61 |
User | Count |
---|---|
143 | |
104 | |
103 | |
82 | |
70 |