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

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.

Reply
jpt1228
Responsive Resident
Responsive Resident

Line total not correct due to repeating values per Order Number

Hello, I have a calculation issue - I had an order transation table that had 1 line for each order and Total Item Amt and Total Shipping Amt. But it did not have the item detail. So I merged the item line detail with the order table but now I have duplicate shipping amounts.

 

PBI Count and Divide.JPG

 

My thought was to count the number of items in each order and then divide by the total shipping to get an average shipping per item.

 

Shipping Cost divided by Item count =
DIVIDE(SUM('Items Ordered'[Shipping Cost]), [Item count])

 

In the above data I started with the left set, merged to create the middle set, and I want the output to be on the right set of data. I have gotten the calculation to work but it doesn't sum correctly.

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

Hi @jpt1228,

 

How did you do it? Can you share your file or a dummy sample? Please check out the demo in the attachment.

Capture

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-jiascu-msft
Employee
Employee

Hi @jpt1228,

 

How did you do it? Can you share your file or a dummy sample? Please check out the demo in the attachment.

Capture

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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