Forum Discussion

GJUDGE's avatar
GJUDGE
Icon for Helper II rankHelper II
4 years ago
Solved

Changes in Date MoM

Hi,   I have a set of projects where the project status and key dates is reported each month. I am trying to write a measure that will quickly show the projects who have had date changes between th...
  • MFelix's avatar
    4 years ago

    Hi GJUDGE ,

     

    Depending on how you are making the filter of the month but in this case I have added a disconnected table for the filtering of the month of reporting and did the following measure:

     

    Has Changes = 
    IF (
        COUNTROWS (
            SUMMARIZE (
                FILTER (
                    'Table',
                    'Table'[Reporting Period] <= MAX ( 'Calendar'[Date] )
                        && 'Table'[Reporting Period]
                            >= DATE ( YEAR ( MIN ( 'Calendar'[Date] ) - 1 ), MONTH ( MIN ( 'Calendar'[Date] ) - 1 ), 1 )
                ),
                'Table'[Project],
                'Table'[Commissioning Date],
                'Table'[Construction Start Date]
            )
        ) > 1,
        "Project has changes"
    )

     

    Final result below

    Check PBIX file attach.