Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
AdamD123
Helper I
Helper I

Multiplication of two figures

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. 

 

AdamD123_0-1717765478543.png

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

1 ACCEPTED SOLUTION

What does your measure return for a total value if you put it in the table visual?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

6 REPLIES 6
jgeddes
Super User
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]
)

 





Did I answer your question? Mark my post as a solution!

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.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hello,

 

Is the below sufficent?

AdamD123_0-1717768696629.pngAdamD123_1-1717768749513.png

 

What does your measure return for a total value if you put it in the table visual?





Did I answer your question? Mark my post as a solution!

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!

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.