Forum Discussion

sdaniels's avatar
sdaniels
Regular Visitor
8 years ago
Solved

Finding the highest Date in a record

Community,   I'm stumped on this one.  I have a series of projects that have 4 date records associated with them.  I need to create a measurement that computes the number of days between the activc...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    Hi sdaniels and pxg08680

     

    How abou this calculated column

     

    =
    DATEDIFF (
        MAXX (
            FILTER (
                UNION (
                    ROW ( "MyDates", CALCULATE ( VALUES ( Table1[Sold Date] ) ) ),
                    ROW ( "MyDates", CALCULATE ( VALUES ( Table1[Advised Date] ) ) ),
                    ROW ( "MyDates", CALCULATE ( VALUES ( Table1[Quoted date] ) ) )
                ),
                [MyDates] <= Table1[Activation Date]
            ),
            [MyDates]
        ),
        Table1[Activation Date],
        DAY
    )