Search code examples
spotfire

spotfire how to get a calculated column from two values in one column


I am trying to create a calculated to caputure that if there are both "Exception" and "Complete" in Col1 under Case ID(1). Then it will give a mark for this case id. The position of this mark does not matter.

Click Here for the screenshot

Thanks


Solution

  • This will create a column and place True or False on each row that the Case ID is on.

    If(UniqueCount(If(([Col1]="Complete") or ([Col1]="Exception"),[Col1])) over ([Case Id])>1,True,False)
    

    enter image description here