cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Continued Contributor
Continued Contributor

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

Accepted Solutions
Highlighted
Resolver I
Resolver I

Re: Total selling measure

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
Highlighted
Resolver I
Resolver I

Re: Total selling measure

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

Highlighted
Continued Contributor
Continued Contributor

Re: Total selling measure

Hi @gurrato,

 

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

 

Best regards,

L.Meijdam

Helpful resources

Announcements
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors
Top Kudoed Authors