Forum Discussion

asd2525's avatar
asd2525
Regular Visitor
6 years ago
Solved

PowerPivot CountIf date in one row is after a date in another

I am using Power Query and Power Pivot to try and create a living report that can be edited. I have one column with a unique ID, another with the date the entry was made, and another with the follow ...
  • v-juanli-msft's avatar
    v-juanli-msft
    6 years ago

    Hi asd2525 

    Create a new column

    new column =
    VAR Max_each_id =
        CALCULATE ( MAX ( 'Table'[Entry Date] ), ALLEXCEPT ( 'Table', 'Table'[ID] ) )
    RETURN
        IF ( Max_each_id >= [Followup Date], 1, 0 )
    
    Best Regards
    Maggie
    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.