• Thank you for your response. I used your expression with 'countdistinct' and it worked great.