Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
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
Solved! Go to Solution.
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:
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.
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:
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
79 | |
59 | |
36 | |
35 |
User | Count |
---|---|
99 | |
57 | |
56 | |
46 | |
40 |