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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Hossam-sgiq
Regular Visitor

Calculate the Net Sales and Profit

Hi All i am new in pwoer BI

I Have issue which i can not solve 

i have transaction data with carsSales , Truck Sales  and also discountcars , discount truck .

i want to calculate the net sales out of these transaction and put is in matricx like 

net Sales Truck  = 500

disc Sales Truck = 100

Net Sales Truck = 400

 

can anyone help me in this

Thanks

4 REPLIES 4
Anonymous
Not applicable

Hi @Hossam-sgiq ,

 

Any updates?

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

Hi @Hossam-sgiq ,

 

What's your expected output?

 

Based on my test, I have create measures to calculate the Total Sales and Total discount for each Account on each Day:

Eyelyn9_0-1644385356570.png

As you can see, they are not in a same hierarchy, so how could I calculate the net sales ?

Can you please share more detail information especially the expected output to help us clarify your scenario?

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hossam-sgiq
Regular Visitor

Hi @selimovd  thanks for your reply 

my table as following 

AccountDateValueGroup
112301-01-2020500Truk Sales
112301-02-2020400Truk Sales
222301-01-202050Truk Discount
222301-02-202030 Truk Discount
114501-01-2020600Vehicle Sales
114501-01-2020800Vehicle Sales
224501-01-2020200Vehicle Discount
224501-01-2020100Vehicle Discount

 

so i want to add matrix to show:  total Sales , Total discount , Total Net Sales

 

how to show the net sales as row . thanks

selimovd
Super User
Super User

Hey @Hossam-sgiq ,

 

you can do the sum of each column and then subtract them. Try the following approach:

Net Sales Truck Measure =
SUM ( myTable[net Sales Truck] ) - SUM ( myTable[disc Sales Truck] )

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up.
 
Best regards
Denis

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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