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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Measure which bring last price of raw material

Hello, I have a table with my related products and their costs.

At the same time, there are the raw materials to which these products are connected and the monthly prices of these raw materials.

When I write my product code with the filter, I want to write a measure that will bring the last price of the relevant raw material and the price on the date I bought the product, can you help?

Thanks.

 

1.png2.png3.png4.png

3 REPLIES 3
Anonymous
Not applicable

Raw Material 101.2023450
Raw Material 1 02.2023550
Raw Material 1 03.2023650

 

Raw Material 1Unit A

 

Unit A 02.2023

 

There are 3 different tables; 

 

First one, connected with second in column A to column A,

And second, connected with third in column B to column A.

 

I want to get 550 when i pick Unit A and 02.2023 in slicer. But it give me sum of column C of Table 1. I can't do don't summarize.

Anonymous
Not applicable

I used "Lastnonblankvalue" for latest price its ok, but i can't figure out how can i get the price of raw material which is the same time with last purchase of unit. 

 

For example; 

 

Raw Material 1 - 01.2023 - 450             Raw Material - Unit A                 Unit A - 02.2023

Raw Material 1 - 02.2023 - 550

Raw Material 1 - 03.2023 - 650

 

I want to get "550". 

Anonymous
Not applicable

Hi @Anonymous ,

 

Please describe your sample data in detail.

Is this three columns, or three tables?

vstephenmsft_0-1676965604046.png

You can add a table in the reply.

vstephenmsft_1-1676965715141.png

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.