Hi all, My data is logging of support ticket. i retrieved all the change state of each ticket with the transaction command. This command output a list of status for each ticket id. What I'm trying to do is to compare each pair of Ticket status in order to create a state for management. I have this matrix explaining states for all pair of values : A B A Value1 Value2 B Value3 Value4 To accomplish this work, I'm using case statement : state=case(match(mvindex(status, 0), "^A$") AND match(mvindex(status, 1), "^A$"), "Value1", match(mvindex(status, 0), "^A$") AND match(mvindex(status, 1), "^B$"), "Value2", match(mvindex(status, 0), "^B$") AND match(mvindex(status, 1), "^A$"), "Value3", match(mvindex(status, 0), "^B$") AND match(mvindex(status, 1), "^B$"), "Value4") For sure my real matrix is much bigger than this. It's why I'm searching an other way to do it. My expected result is a table like this : Event Status State 1 A, B, A Value2, Value3 2 A, A, B Value1, Value2 3 B, B, A Value4, Value3 4 B, A, B Value3, Value2 regards, clement
... View more