Forum Discussion
Dan256
6 years agoNew Member
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...
- 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:
Hope this helps.
Best Regards,
Giotto Zhi
v-gizhi-msft
Community Support
6 years agoHi,
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:
Hope this helps.
Best Regards,
Giotto Zhi
Dan256
6 years agoNew Member
Hi Giotto,
works great, thanks for your help and support.
Regards
Daniel