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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Syndicate_Admin
Administrator
Administrator

Filter Last Date with Multiple Values in Row

Good morning Community.

I'm needing help performing the following filter

I have the following table, which is a pricing table, in which when I change prices in my ERP, it generates a column in the SQL table in which I put the product code, the update date and the new price.

For this example you can see that the price of the product was changed 3 times.

Pchoca_0-1709034886815.png

What I need is a Dax formula so that I can display only the value of the master code for the last update date.

Master Column = Product

Column "Last Date Product Date = Last Updated Date"

This example is filtered for 1 article, but in the table I have a lot of them with this case

Slds

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Syndicate_Admin ,
Depending on the information you provided, I created a simple example to help you solve the problem. You can follow these steps below:

1.Add new column.

 

Latest Update Date = 
CALCULATE(
    MAX('Table'[Update Date]),
    ALLEXCEPT('Table', 'Table'[Product Code])
)

 

2.Add new measure.

 

Latest Price = 
CALCULATE (
    SUM ( 'Table'[Price] ),
    FILTER ( 'Table', 'Table'[Update Date] = 'Table'[Latest Update Date] )
)

 

Final output:

vyifanwmsft_0-1709098119208.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

1 REPLY 1
Anonymous
Not applicable

Hi @Syndicate_Admin ,
Depending on the information you provided, I created a simple example to help you solve the problem. You can follow these steps below:

1.Add new column.

 

Latest Update Date = 
CALCULATE(
    MAX('Table'[Update Date]),
    ALLEXCEPT('Table', 'Table'[Product Code])
)

 

2.Add new measure.

 

Latest Price = 
CALCULATE (
    SUM ( 'Table'[Price] ),
    FILTER ( 'Table', 'Table'[Update Date] = 'Table'[Latest Update Date] )
)

 

Final output:

vyifanwmsft_0-1709098119208.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors