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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
erhan_79
Post Prodigy
Post Prodigy

need formula help

Hi there ;

 

i need your help about below formula ,

 

i have Table A , it shows  the list prices of Material A and Material  B based son some dates.As you see list prices changing based on days.İ would like to create a new table which will list the latest price of materials .You can see with an example what i need.

 

Thanks in advance for your kind supports

 

caps1.JPG

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @erhan_79 ,

 

According to your description, I created some data to show:

v-yangliu-msft_0-1605144490266.png

Here are the steps you can follow:

1. Create a calculated table.

Table 2 =
FILTER('Table',
[Date]=
CALCULATE(
    MAX('Table'[Date]),
    FILTER('Table','Table'[Material]=EARLIER('Table'[Material]))))

2. Result.

v-yangliu-msft_1-1605144490271.jpeg

 

You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

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

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi  @erhan_79 ,

 

According to your description, I created some data to show:

v-yangliu-msft_0-1605144490266.png

Here are the steps you can follow:

1. Create a calculated table.

Table 2 =
FILTER('Table',
[Date]=
CALCULATE(
    MAX('Table'[Date]),
    FILTER('Table','Table'[Material]=EARLIER('Table'[Material]))))

2. Result.

v-yangliu-msft_1-1605144490271.jpeg

 

You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

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

manikumar34
Solution Sage
Solution Sage

@erhan_79 , 

You really don't reuire DAX here. 

Use lates date on the table. Refere to below screenshot. 

manikumar34_0-1605005963072.png

 

Regards, 

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




@manikumar34 , when you use latest section yes it is listing latest date but per  material system summarazing all amount.

 

i need uniq and specific one amount for considering day 

ryan_mayu
Super User
Super User

@erhan_79 

please try this

 

Table 2 = 
VAR TBL=SUMMARIZE('Table','Table'[Material],"Date",max('Table'[Date]))
RETURN ADDCOLUMNS(TBL,"Price",MAXX(FILTER('Table','Table'[Material]=EARLIER('Table'[Material])&&[Date]=EARLIER([Date])),'Table'[Price]),"Currency",MAXX(FILTER('Table','Table'[Material]=EARLIER('Table'[Material])&&[Date]=EARLIER([Date])),'Table'[Currency]))

 

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




dear @ryan_mayu ;

 

in your formula  system considering last day but , considering first day's price 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors