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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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