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

Help with creating a measure in a cube for date range

$
0
0

Hi, it's been a while since I've developed an SSAS cube but I have the following requirement. 

Simplified (in reality there are lots more dimensions) we have a dataset as below which tracks change request tickets:

Dept TicketNo CreatedDate ClosedDate
Sales 123585 08/09/2012 01/10/2012
Sales 123586 09/09/2012 01/10/2012
HR 123587 13/09/2012 14/09/2012
HR 123588 13/09/2012 21/09/2012
Sales 123589 21/09/2012 25/09/2012
Marketing 123590 22/09/2012 22/09/2012
Sales 123591 22/09/2012 03/10/2012
Sales 123592 24/09/2012 26/09/2012
HR 123593 25/09/2012 05/10/2012
HR 123594 28/09/2012 01/10/2012
Sales 123595 28/09/2012 01/10/2012
Marketing 123596 28/09/2012 29/09/2012


What the users want is to be able to get a count, by department, of the number of tickets created in a given date range, which is easy. But they also want displayed, in the same pivot chart in excel, the number of tickets raised AND closed within that same date range. So something that looks like this:

I can't think how to create the Created and Closed measure in my cube. 

Many thanks in advance for your help

Viewing all articles
Browse latest Browse all 2472

Trending Articles



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