dbTalk Databases Forums  

different date issue

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


Discuss different date issue in the microsoft.public.sqlserver.olap forum.



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

Default different date issue - 10-05-2004 , 04:47 PM






I have two cubes: invoice_ship_date and invoice_request_date
The $ amount in invoice_ship_date cube is based on the shipments date. The $
amount in invoice_request_date is based on the date that the sales order was
requested by our customer. For exampl,

A sales order $1000 was requested in August but didn't ship until
Septmember. It's in October now. If I filter in August, I would see $1000
show up in the invoice_request_date cube but NOT in the invoice_ship_date
cube...

The invoice_ship_date cube doesn't care when the sales order was requested,
the invoice_request_date cube does't care when the products were shipped.

If I want to see the $ that were quested for August and also were shipped in
August, how do I do that? Is it possible from what I have?

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

Default RE: different date issue - 10-06-2004 , 01:09 AM






Yes its possible.
You need to put both dimensions into the same cube and then plot your facts
against both.

I presume that at the moment you are using the same Time dimension in both
cubes and that you are joining them in a virtual cube. This won't work
because if you slice your time dimension by August then you will only see
facts that occured in August.

Basically...you need 2 time dimensions!

Regards
Jamie Thomson


"christy" wrote:

Quote:
I have two cubes: invoice_ship_date and invoice_request_date
The $ amount in invoice_ship_date cube is based on the shipments date. The $
amount in invoice_request_date is based on the date that the sales order was
requested by our customer. For exampl,

A sales order $1000 was requested in August but didn't ship until
Septmember. It's in October now. If I filter in August, I would see $1000
show up in the invoice_request_date cube but NOT in the invoice_ship_date
cube...

The invoice_ship_date cube doesn't care when the sales order was requested,
the invoice_request_date cube does't care when the products were shipped.

If I want to see the $ that were quested for August and also were shipped in
August, how do I do that? Is it possible from what I have?

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

Default RE: different date issue - 10-06-2004 , 04:07 PM



Sounds like a good plan. I have only one shared time dimension. How do I
create two time dimensions in the virture cube?


Jamie wrote:
Quote:
Yes its possible.
You need to put both dimensions into the same cube and then plot your
facts against both.

I presume that at the moment you are using the same Time dimension in
both cubes and that you are joining them in a virtual cube. This won't work
because if you slice your time dimension by August then you will only see
facts that occured in August.

Basically...you need 2 time dimensions!

Regards
Jamie Thomson


"christy" wrote:

I have two cubes: invoice_ship_date and invoice_request_date The $
amount in invoice_ship_date cube is based on the shipments date. The
$ amount in invoice_request_date is based on the date that the sales
order was requested by our customer. For exampl,

A sales order $1000 was requested in August but didn't ship until
Septmember. It's in October now. If I filter in August, I would see $1000
show up in the invoice_request_date cube but NOT in the invoice_ship_date
cube...

The invoice_ship_date cube doesn't care when the sales order was
requested, the invoice_request_date cube does't care when the products were shipped.

If I want to see the $ that were quested for August and also were
shipped in August, how do I do that? Is it possible from what I have?

Reply With Quote
  #4  
Old   
Jamie Thomson
 
Posts: n/a

Default RE: different date issue - 10-06-2004 , 04:37 PM



Just create 2 normal dimensions as you would normally and add them to your
virtual cube as you would normally.

It may be that you don't even need a virtual cube actually. Both time
dimensions can go in 1 cube.



"christy" wrote:

Quote:
Sounds like a good plan. I have only one shared time dimension. How do I
create two time dimensions in the virture cube?


Jamie wrote:
Yes its possible.
You need to put both dimensions into the same cube and then plot your
facts against both.

I presume that at the moment you are using the same Time dimension in
both cubes and that you are joining them in a virtual cube. This won't work
because if you slice your time dimension by August then you will only see
facts that occured in August.

Basically...you need 2 time dimensions!

Regards
Jamie Thomson


"christy" wrote:

I have two cubes: invoice_ship_date and invoice_request_date The $
amount in invoice_ship_date cube is based on the shipments date. The
$ amount in invoice_request_date is based on the date that the sales
order was requested by our customer. For exampl,

A sales order $1000 was requested in August but didn't ship until
Septmember. It's in October now. If I filter in August, I would see $1000
show up in the invoice_request_date cube but NOT in the invoice_ship_date
cube...

The invoice_ship_date cube doesn't care when the sales order was
requested, the invoice_request_date cube does't care when the products were shipped.

If I want to see the $ that were quested for August and also were
shipped in August, how do I do that? Is it possible from what I have?

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.