Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
You guys REALLY need to get on the same page as the SQL group in this regard.
A query in T-SQL for COUNT (DISTINCT <some column>) will NOT count NULL as one of the values.
In DAX, it will.
In MDX it will.
Is there not some ANSI standard that dictates what this should be?
If I was your boss I would lock both groups in a room and not let them out until they came up with a soltuion! And I would throw the MDX group in there as well.
I know, it's "by design". Well, it's a VERY POOR design then!
It's like this: There's an airplane flight manifest of names, and the flight has three empty seats. If you run a DISTINCTCOUNT of names assigned to all the seats, you would be off by ONE. If the plane crashed and the rescue workers asked the airline for the number of bodies they should look for, they would be looking for a long time to find that one NULL !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.