Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
2 years ago
Solved

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 t...
  • Anonymous's avatar
    Anonymous
    2 years ago

    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.