Forum Discussion

Dan256's avatar
Dan256
New Member
6 years ago
Solved

Find changes made in set of data

Hello everybody,   I like to find changes made in data. My data table looks like:   Source table:   Reportdate, Object, Status 01.01.2020, 100, A 01.01.2020, 101, A 01.01.2020, 102, A 01.02...
  • v-gizhi-msft's avatar
    v-gizhi-msft
    6 years ago

    Hi,

     

    It is easily to reach it.

    Please try to create this calculated column first:

    Group = RANKX('Table','Table'[Reportdate],,ASC,Dense)

    Then try this measure:

    Measure = 
    VAR check =
        IF (
            MAX ( 'Table'[Reportdate] ) = MINX ( ALL ( 'Table' ), 'Table'[Reportdate] ),
            BLANK (),
            CALCULATE (
                MAX ( 'Table'[Status] ),
                FILTER (
                    ALLSELECTED ( 'Table' ),
                    'Table'[Group]
                        = MAX ( 'Table'[Group] ) - 1
                        && 'Table'[Object] = SELECTEDVALUE ( 'Table'[Object] )
                )
            )
        )
    RETURN
        IF ( MAX ( 'Table'[Status] ) <> check && check <> BLANK (), 1, BLANK () )

    Apply this measure to the original table visual, the result shows:

    Here is my changed pbix file:

    pbix 

    Hope this helps.

     

    Best Regards,

    Giotto Zhi