dbTalk Databases Forums  

Custom rollup question.

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


Discuss Custom rollup question. in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ken chen
 
Posts: n/a

Default Custom rollup question. - 04-06-2004 , 11:22 AM






Hi, Experts

I need help on custom rollup. Say I have a cube
that tracks the book checkout for a library. I creatd a
fact table that cross joins between the time table and the
books table. When a book is out for a particular day, the
value '1' is assigned in the fact table. This way, I can
find out how many books are out for a particalar day
simply by adding up the '1's . Now, how do I find out how
many books are out for a week? Any ohter way beside
custom roll up?

Thanks

-ken

Reply With Quote
  #2  
Old   
Abhinav Kumar
 
Posts: n/a

Default Custom rollup question. - 04-06-2004 , 07:32 PM






One of the ways to solve your problem would be to add a
week column in your "Time Table" and populate it with
week numbers (you can use one of the sql functions and
have it as formula for this field). Then you can use the
week number in your time dimension to track weekly counts.

Please let me know if you need further clarifications.

Thanks,
Abhinav Kumar
akumar (AT) itmag (DOT) com.au


Quote:
-----Original Message-----
Hi, Experts

I need help on custom rollup. Say I have a cube
that tracks the book checkout for a library. I creatd a
fact table that cross joins between the time table and
the
books table. When a book is out for a particular day,
the
value '1' is assigned in the fact table. This way, I
can
find out how many books are out for a particalar day
simply by adding up the '1's . Now, how do I find out
how
many books are out for a week? Any ohter way beside
custom roll up?

Thanks

-ken
.


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.