Thank you for your post.
I have forwarded your post along with the downloaded file (SQL_COUNT+DISTINCT.fmp12) to our Development and Testing departments for review. When I receive any feedback, I will let you know.
the problem is finally solved with update 13.0 v2 !
Thanks to you all.