I did have two Invalid_Session in trying to respond to this one.luckycharm said:So (as usual) everything begins with Aladin.
Hopefully he reads in on this one and elaborates, since I
cannot say I follow/agree with your explanation.
Anyhow, to me it looks as though the second part (countif)
returns number of occurences for the "non distinct".
Waiting on Aladin.