Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Counting Full-Time Employees (MDX)

$
0
0

I have a cube that has a measure which is a distinct count on the Employees in order to get headcounts. In the employee dimension, there's also an attribute which identifies whether the employee is a Full-time or Part-time employee. I'm trying to create a calculated member that gives the user the full-time employee count over the time period that he/she has chosen.

[Measures].[Headcount] --- this is the distinct count on the employee id (which is unique for each employee.

[Employee].[Full Time].&[True] --- this is the full time flag found in the employee dimension. &[False] is a member as well.

[Date].[Yr - Qtr - Mo - Date] --- this is the Date dimension which contains the heirarchy Year - Quarter - Month - Date. The user will use this to define the time period they are looking upon. Based on the time period, the full-time count will change.

There are several other dimensions that go along that are related to this measure group. Let's also assume that "Headcount" is the ONLY meausre in this measure group. How would I create a full-time count calculated member for employees for whatever date a user selects? Is there maybe another way to do this?


Viewing all articles
Browse latest Browse all 2472

Trending Articles



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