Forum Discussion
How to flag status change
- 5 years ago
Hi deanbland ,
Please try the following formula:
Column = var PreDate = MAXX( FILTER( 'Table', 'Table'[Date] < EARLIER('Table'[Date]) && 'Table'[ID] = EARLIER('Table'[ID]) ), 'Table'[Date] ) var PD_Status = CALCULATE( MAX('Table'[Status]), FILTER( 'Table', 'Table'[Date] = PreDate && 'Table'[ID] = EARLIER('Table'[ID]) ) ) return IF( PD_Status = BLANK() || PD_Status = 'Table'[Status], 0, 1 )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi deanbland ,
Please try the following formula:
Column =
var PreDate =
MAXX(
FILTER(
'Table',
'Table'[Date] < EARLIER('Table'[Date])
&& 'Table'[ID] = EARLIER('Table'[ID])
),
'Table'[Date]
)
var PD_Status =
CALCULATE(
MAX('Table'[Status]),
FILTER(
'Table',
'Table'[Date] = PreDate
&& 'Table'[ID] = EARLIER('Table'[ID])
)
)
return
IF( PD_Status = BLANK() || PD_Status = 'Table'[Status], 0, 1 )
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Does something like this work if you have two seperate tables.... I have two imports. One from the previous week and one from this week. And I need to find the change between the two tables