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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
KyleGranger
Frequent Visitor

Duplicates when using SUM measure

Hi everyone, I am trying to create a measure that calculates the sum of "Allocation Hours" divided by SUM of "Hours worked" (very simple measure) to get an allocation vs actuals percentage. I noticed that if i put SUM(Allocations[Allocation Hours]) in a measure, it duplicates the data over and over again. In the picture posted below, the SUM of allocation hours should be 104.28K (when just added to a card and not a measure) but when added to a measure and applying a SUM function, all of a sudden the "Allocation Hours" comes out to 1616.66 Billion. Does anyone have any idea whats causing this? At first i thought it might be a relationship but this is happening even without brining in data from other tables. The same thing occurs if i do a SUM of the hours worked. Thank you all in advance for any help or suggestions. Appologies for the poor artwork!PBI Duplicate 3.JPG

2 REPLIES 2
Anonymous
Not applicable

Which field are you passing to the Allocation Hours card? Also, could you share a picture of the Allocations table?

Well I found out why it was duplicating, I must have calculated it as a column instead of a measure so it was calculating the sum on a row level and then adding up all of the totals (so duplicating hundreds of times). I feel silly now, but still new to PBI so this is a good learning moment! Thank you for the quick reply.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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