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

Count Customers by Sales

$
0
0

Hi,

I am trying to calculate the number of key accounts by sales person from my data cube.  This seems like it should be simple but I can't seem to get it to work.  I have a dimension called CUSTOMER that has the following attributes:

  • CUSTOMER_ID
  • CUSTOMER_NAME
  • SALESMAN_NAME

I'm using excel to browse my cube and using the OLAP PivotTable Extensions add-in to create a new calculated member to perform the customer count.  I have the data filtered to calendar year 2012 and filtered on a specific salesperson name.  My calculated member is as follows:

Sum([CUSTOMER].[CUSTOMER ID],IIF([Measures].[SALES AMOUNT]>=250000,1,0))

If I pull in the customer ID into the rows of the pivot table, the calculated member will correctly flag any customer IDs that have sales in excess of $250,000.  However, when I pull the customer ID out, I expect the query to roll-up the total number of customer IDs that meet the $250,000 criteria, but instead, the query returns '1'.

I would be very appreciative of any help you can provide.

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>