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
recepphaneci
Regular Visitor

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
recepphaneci
Regular Visitor

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.

recepphaneci
Regular Visitor

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". 

Hi @recepphaneci ,

 

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
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.

Top Solution Authors