Using Aggr() and Min() to get the right values as a calculated dimension will work. Create a new chart straight table object, set Code and Sequence as dimension and add the following calculated dimension
=If(Aggr(NODISTINCT Min(Sequence), Code) = Sequence, Color)
Click on this calculated dimension and check "Suppress When Value Is Null"
Now add any dummy dimension (for example, "1") and go to the Presentation tab, and hide this expression. Note that as any calculated dimension it may take long to render if the data volume is huge, and you will get better results passing this aggregation on to the script part.
Check the attached application.
Hope that helps.
qcomLowerSeqNo.qvw 151.0 K