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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Total selling measure

Hi all,

 

I have a question,

 

I have two tables that are connected to eachother:

 

one with orders:

OrderIDProduct
31X
16X
13Y

 

and i have a lookup table for the prices:

ProductSellingPrice
X €           15.99
Y €           39.99

 

Now I want to know for how much in total I sold products (in this example € 71.97) I want to be able to filter on product.

 

Thanks in advance ! 

 

Regards,

L.Meijdam

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

A quick solution would be to create a calculated column in the Orders table:

Price = RELATED('Product'[SellingPrice])

Then you will get the price for each Product in the Orders table and if you have Quantities aswell you can do a SUMX later on with Price * Quantity to get each value per transaction. Filtering on each Product will work aswell.

 

Best regards,

Gustav

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,

A quick solution would be to create a calculated column in the Orders table:

Price = RELATED('Product'[SellingPrice])

Then you will get the price for each Product in the Orders table and if you have Quantities aswell you can do a SUMX later on with Price * Quantity to get each value per transaction. Filtering on each Product will work aswell.

 

Best regards,

Gustav

Anonymous
Not applicable

Hi @Anonymous,

 

Thanks for your suggestion this is indeed a quick solution that let me achieve what I wanted.

 

Best regards,

L.Meijdam

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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