I am not sure it is what you want, but I manage to do this by assigning the distinct count meassure to a range slider and assign a parameter to that slider....:)
I then created a calculated meassura that used the parameter.
BR
Fredrik
Catch up on SAS Innovate 2026
Dive into keynotes, announcements and breakthroughs on demand.