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

-

-

1 ACCEPTED SOLUTION
SergioSilvaPT
Resolver V
Resolver V

Hi @SG12 ,

 

Given the example that you sent me in PM:

SergioSilvaPT_0-1653037153541.png

 

I think the following measure could solve your problem:

 

Revenue = (SUM(Table[Unit price]) - SUM(Table[Cost price])) * quantity

 

 

Regards,
Sérgio Silva

If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Check out my blog for tips and tricks about Power BI: https://pbibits.wordpress.com/

View solution in original post

8 REPLIES 8
SergioSilvaPT
Resolver V
Resolver V

Hi @SG12 ,

 

Given the example that you sent me in PM:

SergioSilvaPT_0-1653037153541.png

 

I think the following measure could solve your problem:

 

Revenue = (SUM(Table[Unit price]) - SUM(Table[Cost price])) * quantity

 

 

Regards,
Sérgio Silva

If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Check out my blog for tips and tricks about Power BI: https://pbibits.wordpress.com/
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @SG12,

I think we do not understand the problem.

Where do you have to multiply numbers with letters?

You have to distinguish between DAX and Power Query, you can't use both at the same time.

 

A simple DAX measure could look like this.

 

revenue = SUM('Table'[net sale price]) - SUM('Table'[cost price])

 

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


selimovd
Super User
Super User

Hey @SG12 ,

 

where do you have to multiply numbers with letters? I don't understand that step.

 

Thank you and best regards

Denis

 

Signore_Ands
Advocate II
Advocate II

I take it you have a separate table that holds the transactions (with the quantities)?

Are you trying to multiple the quantities in a transaction table by the unit prices in the debtors table?

Thats what i'm trying to do but i don't have a "quantity" table for the debtors, all the tables you see above is what i have. Is it still possible or do i need to have quantity table to calculate the revenue per debtor. 

to calculate Revenue you will need more data yes.

Ashish_Mathur
Super User
Super User

Why do you need to add a quantity column.  Just simply add the Unit Price column.


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

Hi,

 

i haven't added it. it was just a example. Can you share your way of solving this?

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.