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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
jamiehandelman
Frequent Visitor

Calculating Net Sales from 2 Different Columns

Hello - 

 

I am trying to calculate net sales: Total invoiced amount - amount returned 

Table 1: contains column "total amount" 

Table 2: contains column "amount returned" 

They are related via a table of distinct customers (table 3), we also have a table in the data model with manufacturers 

 

I need to show net sales over a given period of time per customer and per manufacturer (different visuals). I can screenshot relationships if need be. 

 

I have tried many different measures and calculated columns but nothing seems to be working correctly. Any ideas? Thanks!

3 REPLIES 3
vanessafvg
Community Champion
Community Champion

can you tell me what you have done already and what the issues are?

if your tables are joined essentially you should be able to create the measures, if you can share some data data or screenshot the relationships that would be useful and a copy of the measures that aren't working.






If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




@vanessafvg thanks for the reply. The issue is that net sales for customer or manufacturer are not displaying correctly - which makes me think it's an issue with relationships. 

 

I tried adding measures and calculated columns (using the formula screenshotted below) on both "PostedSalesInvoiceSalesInvLines" and "PostedSalesInvoices". The total amount comes from "PostedSalesInvoiceSalesInvLines" and the amount returned comes from "PostedSalesCreditMemosLines". 

relationships-2.PNGnet sales.PNG

Hi,

Share the link from where i can download your PBI file.  To void confusion, please remove the tables which are not required.  Also, please show the expected result very clearly.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.