dbTalk Databases Forums  

Timekeeping Business Problem - Rolling up 'Available Hours'

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Timekeeping Business Problem - Rolling up 'Available Hours' in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tim Dot NoSpam
 
Posts: n/a

Default Timekeeping Business Problem - Rolling up 'Available Hours' - 05-04-2006 , 02:45 PM






Hi all.

We're working on a Timekeeping cube (SSAS 2005) that provides KPIs such as
Utilization and Chargeability. Chargeability is defined as 'Total hours
worked' / 'Available hours' where available hours is the number of business
hours per time slice.

For the individual resource, the measure calculates fine since a normal
business week is 40 hours. What I think I need to do is to determine the
number of resources and use it as a factor for the number of hours. As an
example, if I have 10 resources, for any given day the 'Available Hours'
would be 80, for the week, 400, etc etc. I've tried taking my resource
dimension and creating a new measure group from it to yield the 'Resource
Count' measure and I've even tried changing it to a DistinctCount
aggregation, but to no avail. As the time slices roll up, the numbers are
overstated.

I'd like to know the best practice way to do this as I see it being a common
problem to solve.

Thanks.

-Tim



Reply With Quote
  #2  
Old   
Tim Dot NoSpam
 
Posts: n/a

Default Re: Timekeeping Business Problem - Rolling up 'Available Hours' - 05-06-2006 , 01:44 PM






OK. Figured it out.

Have to take DistinctCount of whatever the key is you're looking for in the
fact table.

I needed resource, so created a measure based on the key called resource
count then set its aggregation to DistinctCount. Works like a charm.


"Tim Dot NoSpam" <Tim.NoSpam (AT) hughes (DOT) net> wrote

Quote:
Hi all.

We're working on a Timekeeping cube (SSAS 2005) that provides KPIs such as
Utilization and Chargeability. Chargeability is defined as 'Total hours
worked' / 'Available hours' where available hours is the number of
business hours per time slice.

For the individual resource, the measure calculates fine since a normal
business week is 40 hours. What I think I need to do is to determine the
number of resources and use it as a factor for the number of hours. As an
example, if I have 10 resources, for any given day the 'Available Hours'
would be 80, for the week, 400, etc etc. I've tried taking my resource
dimension and creating a new measure group from it to yield the 'Resource
Count' measure and I've even tried changing it to a DistinctCount
aggregation, but to no avail. As the time slices roll up, the numbers are
overstated.

I'd like to know the best practice way to do this as I see it being a
common problem to solve.

Thanks.

-Tim





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.