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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors