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

MDX calculation for last sum/count over time.

$
0
0

I have a fact table that have the list of employees for each month.

e.g. Oct 2010 have employeeno 1, 2, 3  which total of employee = 3

Nov 2010 we have employee 2,3,4,5 (i.e. employeeno 1 terminated), so we have total employee of 4.

***   now the tricky part  is that, once I got the total employee per month

e.g. oct 2010 = 10, nov 2010 = 15, dec 2010 = 30.

I wanted a measure to get the the total of the last month when looking at the quarter and yearly total.

i.e. Quarter 4 for 2010 should show total of 30, and the same as Total of year 2010 = 30.

is there away to do this?


Viewing all articles
Browse latest Browse all 14337

Trending Articles