Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Count Distinct

$
0
0

Hi @all,

the question might be answered already but I can't think of what to search for.

I've got a dimension with Active Directory attributes. And another dimension with groupnames.
One AD-account can be in many groups.
The facttable (snowflake Schema) contains the ID of the AD-Dimension and the groupname.

It could look like this:

ID    GroupName     GroupAlias
1      Test1              Test
1      Test2              Test
1      Test3              Test
1      hello1             Hello
1      hello2             Hello

I am actually talking about the GroupAlias which should be counted distinct.
The ID 1 is in 3 different "Test-Groups", but the alias is always "Test". So the Count should be 1.

How does the MDX should look like?

Thanks!


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>