Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Using filter with DateDiff

Hi All,  I'm new to pbi and need help with the following table to calculate the right data: I want to calculate the datediff using actual end date from exit meeting to the actual end date on ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Anonymous,

     

    Try this measure using CALCULATE Function 

    VAR ExitDate =
        CALCULATE(
            MAX('ProjectPhaseMilestones'[ActualEndDate]),
            'ProjectPhaseMilestones'[MilestonesName] = "Exit Meeting"
        )
    
    VAR FinalAuditDate =
        CALCULATE(
            MAX('ProjectPhaseMilestones'[ActualEndDate]),
            'ProjectPhaseMilestones'[MilestonesName] = "Final Audit Report"
        )
    

     

    Regards,

    Vinay Pabbu