Forum Discussion

fbittencourt's avatar
fbittencourt
Icon for Helper IV rankHelper IV
1 year ago
Solved

MAX FUNCTION FROM A DATE

Hi all,   I need to create a dax mesure that retrieves P&L Sub cost  and the latest budget phase based on the max wiser year or based on the filter selection I created:  Lastdate = VAR MaxD...
  • fbittencourt's avatar
    fbittencourt
    1 year ago

    I have found the solution:

     

    Cost Recent Upd =

     CALCULATE(

        [Total  IT Cost],

        FILTER('IT Cost (KCar)','IT Cost (KCar)'[Wiser Date]=[Date Most Recent Upd]

     ))

     

    Date Most Recent Upd =

    CALCULATE(

        MAX('IT Cost (KCar)'[Wiser Date]),

        FILTER(

            'IT Cost (KCar)',

            CONTAINSSTRING('IT Cost (KCar)'[Budget Phase], "Upd")

        )

    )

     Tks the others options did not retrive the results