Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Max date for calculated column DAX Measure

Hi Experts   How can i modify the following to return back the max date...for FINCNTRL[wostatus.CHANGEDATE]   Measure Calculated Column Works Completion Date = IF(FINCNTRL[wostatus.STATUS] IN {...
  • v-yanjiang-msft's avatar
    3 years ago

    Hi Anonymous ,

    According to your description, I create a sample. 

    If you want to create a calculated column to show the max date of wostatus.CHANGEDATE when wostatus.STATUS meet the condition, here's my solution. Create a calculated column.

    Works Completion Date =
    IF (
        FINCNTRL[wostatus.STATUS] IN { "FINAPPR", "FINCOMP", "COMP", "CLOSE" },
        MAXX (
            FILTER (
                'FINCNTRL',
                FINCNTRL[wostatus.STATUS] IN { "FINAPPR", "FINCOMP", "COMP", "CLOSE" }
            ),
            FINCNTRL[wostatus.CHANGEDATE]
        ),
        BLANK ()
    )
    

    Get the result.

    I attach my sample below for your reference.

     

    Best Regards,
    Community Support Team _ kalyj

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