dbTalk Databases Forums  

Inventory Analysis - AS 2000

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


Discuss Inventory Analysis - AS 2000 in the microsoft.public.sqlserver.olap forum.



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

Default Inventory Analysis - AS 2000 - 06-07-2006 , 09:09 PM






Hi,

Trying to do a stock turn calculation from a inventory history
database.
I have available only the movements (deltas) from the table, the
closing stock is available as a property of the product dimension.

Need to arrive at stock on hand working backwards from today's closing
stock by addind subtracting deltas backwards.

Please hep with an MDX for a calculated member.

Cheers !!

Aussie


Reply With Quote
  #2  
Old   
Alvin Warouw
 
Posts: n/a

Default MDX QUery - 06-09-2006 , 03:25 AM







Please help, I have 2 fact table

1. FactOrder with field
SONo
OrderDate_Key
RequestDate_Key
CancelDate_Key
ProdNo_Key
Qty Order
etc

2. FactShipment with Field
InvNo
SONO
Invdate_key
ProdNo_key
Qty Shipment
etc

Now i want to create report

RequestDate Qty Order Qty Open On Time Qty Late
Qty All Late Qty
Jan, 2006 10 5 3
2 7

where
On Time Qty = inv date < requestdate - 7
Late Qty = InvDate >= RequestDate
All Late QTy = Late Qty + ( All Open Order which request date < today )

Thanks,
Alvin Warouw






Reply With Quote
  #3  
Old   
Deepak Puri
 
Posts: n/a

Default Re: MDX QUery - 06-09-2006 , 09:54 PM



Hi Alvin,

You didn't say whether you already have a cube and, if so, what its
design is like. Anyway, if you can join the Order and Shipment tables in
a view (presumably there could be multiple shipments per order), that
might make some of the measures easier to compute. If your fact tables
are large, then a cube may be slower in correlating orders with the
corresponding shipments.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #4  
Old   
Alvin Warouw
 
Posts: n/a

Default Re: MDX QUery - 06-11-2006 , 08:56 PM



Hi Deepak,

Yes I can do it with View, but i think this condition will be same with
another fact table like Orders data vs Job Orders data ( Work Order ).
example : Late Job Order vs Orders Report

Thanks,
Alvin Warouw

"Deepak Puri" <deepak_puri (AT) progressive (DOT) com> wrote

Quote:
Hi Alvin,

You didn't say whether you already have a cube and, if so, what its
design is like. Anyway, if you can join the Order and Shipment tables in
a view (presumably there could be multiple shipments per order), that
might make some of the measures easier to compute. If your fact tables
are large, then a cube may be slower in correlating orders with the
corresponding shipments.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***



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.