SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 MDX calculation for two dates
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cidr
Posting Yak Master

United Kingdom
202 Posts

Posted - 11/04/2013 :  17:00:16  Show Profile  Reply with Quote
Hi there,

I've been working on this for a couple of days and hope someone can help.

To keep it simple, I have a Dimension table - Enrolment - that holds records on employees that have joined a pension scheme.

Each employee has a StartDate and a CancellationDate or the cancellationDate may be null.

Using a date slicer (dim date or dummy date) I want to return all employees that have a StartDate that is before the selected date and a cancellationDate that is after the date or the CancellationDate is null (in which case, this will be counted.

I have an Enrolment Dimension in the cube and a measure that is (Enrolment count). I'll be using this measure to return the count of employees.

I want to create an MDX function or similar to perform this.

Any help would be much appreciated.
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000