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
GabbyGla
Frequent Visitor

Sales before and after discounts and shipping costs sorted by country

Hello all, 

 

I need to have some measures. But acutally I really do not know where to start 😞

 

I have an export from our customer where we get the information like this: 

 

Customer NameArticle NrArticle NameQuantityPriceSourcing PriceCountryDiscountsShipping
BradPitt1234T-Shirt150€25€Germany10%5€
AngelinaJolie1234T-Shirt150€25€Belgium10%5€
AngelinaJolie4321Socks110€2€Belgium10%5€ 

 

There are some stuff I needed to show in one Matrix

1. Sales before discounts and before shipping costs sorted by Country  

2. Sales after discounts 

3. Sourcing price sorted by country 

4. Sales after discounts and Shipping costs (and this one is tricky- see*) 

 

Country1. Sales in € 2. Sales after discounts3. Sourcing Price Sum per Country4. Sales in € after discounts and shipping costs
Germany50€45€ (=50€ - 10%) 25€ =45€-5€
Belgium60€54€27€=54€-5€ *

 

*For the shipping costs I need to just take ONE times shipping per Customer. So Angelina Jolie here bought two quantities and my data sheet says one shipping costs per row. But that is wrong since those two items could be shipped together. 

 

I hope it is clear and praying for some help 

 

Thank you, 

 

Gabby 

1 ACCEPTED SOLUTION

@GabbyGla 

I try to added to records to test the last formula. pls see the attachment below.





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

@GabbyGla 

pls see the attachment below





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

Proud to be a Super User!




@ryan_mayu  Thank you so much for your fast solution. Everything was perfect except one point I did not point out so well: 

 

For the point 4. Sales after discount and shipping I can not take the average since I have like 400 different customers which all paid e.g. 5€ for shipping. 

 

Some of those 400 customers ordered just one article, some of them ordered a few. But actually of course one customer just needs to pay shipment costs once. So if I just take the average I will just have 5€ as shipment costs which is not right. But if I take the sum of the shipment costs I will have costs for every article which is not right as well. 

 

So I need shipment costs as a sum but only for every single customer not for every article sold. 

 

Is that clear oder should I explain it better?  🙂 Thank youuu! 

@GabbyGla 

I try to added to records to test the last formula. pls see the attachment below.





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

Proud to be a Super User!




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.

Top Solution Authors