cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jpt1228 Member
Member

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

Accepted Solutions
v-jiascu-msft Super Contributor
Super Contributor

Re: Line total not correct due to repeating values per Order Number

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 Super Contributor
Super Contributor

Re: Line total not correct due to repeating values per Order Number

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

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 53 members 1,154 guests
Please welcome our newest community members: