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

No of Customer For each and every employee

$
0
0

Hello

I implemented many to many relationship between employee and customer.

so now my requirement is to find out the no. of customers for  each and every employee.

for this i have written the following code 

With Member [Measures].[No of Customers] AS 
COUNT(
NonEmpty({[Employee].[Employee Geography].[Employee].Members*
[Customer].[Customer Geography].currentMember},
[Measures].[Internet Sales Amount]))
Select {[Measures].[No of Customers]} On Columns,
        {[Employee].[Employee Geography].[Employee].Members} On Rows 
From [SSAS2008SBS];

i am getting repeated values..

is there any wrong with my code

anybody help me plz


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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