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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
AA622
Helper II
Helper II

Using Sum function and/or field in table

I am having this issue with inventory quantity in our Inventory Transactions table.

 

I created a simple Sum function to show the qty. 

Measure.Qty = SUM(InventTrans[Qty])
 
To compare I inserted the field from the same table
 
The correct value is 1300 but in the measure I get 2600. Why am I getting the duplicated value?
 
AA622_0-1689367793805.png

Its all coming from one table so there is no relationship issue. any idea?

1 REPLY 1
rubayatyasmin
Super User
Super User

Hi, @AA622 

1. Did you check for duplicated values in your table? If not you might want to check it. 
2. You can try a card visual to see your result properly instead of a table visual. In the table, visual data gets filtered
If you want to sum distinct values only. You might want to use distinct function with SUMX

 


Did this solve your problem? If yes, hit 👍 and accept this answer as a solution.  


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.