In the properties of the text field, click on the "Fill" tab. For the fill color, enter the expression as follows:
=iif(Fields!GroupID.Value=previous(Fields!GroupID.Value) and Fields!Spouse.Value<>previous(Fields!Spouse.Value) ,Parameters!Color.Value,Nothing)
Change "GroupID" to your order # and change "Color.Value" to the desired highlight color. Note. This will select only the second line if it differs from the first, and there is no way to select the first line, because there is no "Next" function, only the "Previous" function. You can use this to select either cells that are different, or an entire row.
source share