Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
I would like to find the total value of our stock. To do this I have our inventory and the unit cost of that inventory, for each item. I just need to multiply the two numbers, however when I have done this it is multiplying the total inventory by the sum of the unit cost.
I need the total to just be the sum of Inventory x Unit Cost, if that makes sense - when I have done this in Excel I get the correct figure of ~135,000. I think I need to stop it from muliplying the sum of but unsure how I do this?
Any help is greatly appreciated.
Kind regards,
Adam
Solved! Go to Solution.
What does your measure return for a total value if you put it in the table visual?
Proud to be a Super User! | |
In this case you could likely use SUMX to get the result you are looking for.
SUMX(
'Item_Card',
'Item_Card'[Inventory] * 'Item_Card'[Unit_Cost]
)
Proud to be a Super User! | |
Hello, thank you for advising. I have done this but the number is still showing incorrect - I think the advised calculation would work but I need to exclude (filter) sum of the codes out. How would I do this to ensure those codes are excluded from the calculation?
Can you share some sample data, the measure you are using and the result you are getting? From there I should be able to pinpoint the issue.
Proud to be a Super User! | |
Hello,
Is the below sufficent?
What does your measure return for a total value if you put it in the table visual?
Proud to be a Super User! | |
Hello,
When I add that to the table, that is showing correct. I have now turned that into the card view and it is showing correclty.
Thank you ever so much for your help!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
76 | |
73 | |
42 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |