I have a data like this:
a,x,1
a,x,2
a,y,5
a,z,5
a,t,5
a,s,6
b,x1,11
b,x1,21
b,y1,51
b,z1,51
b,t1,51
I want to count value changes but if 2nd field and 3rd field values isn't changed; this isn't a changing. Both 2nd and 3st field values must change.
In my example above; 1st row to 2nd row isn't a changing but 2nd row to 3rd row is a changing because both x and 2 values are changed. Again, 3rd row to 4th row is a changing.
I want to have result with query as
a,3
b,2
Thank you.