dbTalk Databases Forums  

due date / time dimension comparison

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


Discuss due date / time dimension comparison in the microsoft.public.sqlserver.olap forum.



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

Default due date / time dimension comparison - 10-26-2004 , 08:57 AM






greetings,

i have hard time solving this problem:

fact table contains

posting date amount due date


now i need a cube, which for any given date shows sum of amount
with due date reached, and sum of amount which didnt reach due date yet.

for example:

fact table
09.01 100 09.10
09.02 200 09.15

cube should show:

date reached not reached
...
09.09 0 300
09.10 0 300
09.11 100 200
09.12 100 200
...
09.16 300 0

i have no luck trying to compare two different time dimensions, or even
coming up with idea how could i make this work

thank you!

Reply With Quote
  #2  
Old   
Joerg
 
Posts: n/a

Default RE: due date / time dimension comparison - 10-27-2004 , 08:43 AM






Hello QQ,

Hope this helps:

sum(due.currentmember:due.firstsibling,[Measures].[Value])

Jörg



"QQ" wrote:

Quote:
greetings,

i have hard time solving this problem:

fact table contains

posting date amount due date


now i need a cube, which for any given date shows sum of amount
with due date reached, and sum of amount which didnt reach due date yet.

for example:

fact table
09.01 100 09.10
09.02 200 09.15

cube should show:

date reached not reached
...
09.09 0 300
09.10 0 300
09.11 100 200
09.12 100 200
...
09.16 300 0

i have no luck trying to compare two different time dimensions, or even
coming up with idea how could i make this work

thank you!


Reply With Quote
  #3  
Old   
QQ
 
Posts: n/a

Default RE: due date / time dimension comparison - 11-03-2004 , 03:24 AM



how exactly do i setup the date dimensions to get the result i need?
i dont think i have any luck trying different combos :/


"=?Utf-8?B?Sm9lcmc=?=" <Joerg (AT) discussions (DOT) microsoft.com> wrote in
news:C51EBA6F-A0AD-4B1C-9786-9AC22CC0DB23 (AT) microsoft (DOT) com:

Quote:
Hello QQ,

Hope this helps:

sum(due.currentmember:due.firstsibling,[Measures].[Value])

J?¶rg

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.