Hi,
Try using the below variables
FlagDimVar=If([activityid]="F";"Show")
StatusDimVar=RelativeValue([FlagDimVar];([id];[activityid];[timestamp]);1)+If([activityid]="F";"Show")
Use 1 if [id] is sorted descending in table or use -1 if not sorted in [StatusDimVar] definition.
Then apply table/block level filter of StatusDimVar=Show