dbTalk Databases Forums  

Calculating opening balances

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


Discuss Calculating opening balances in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ashok G
 
Posts: n/a

Default Calculating opening balances - 04-24-2006 , 04:26 PM






I have a fact table called "factCensus" in which I maintain one record for
each day an employee is "active" in the company (e.g. if an employee is
active for March & April then there will be 61 records). In this fashion all
employees of various branches have their records populated in the
"FactCensus".

To get a count of all "active" employees I would COUNT the records with the
Max(Calendar date) for each employee.

How do I dynamically calculate the opening headcount balance given that an
end user could be asking for any date range.

Any Help is greatly appreciated.


--
Thank you,
Ashok G

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.