I have 4 tables in my universe.
CR, RA, CA, PP- is a look up table.
I have the joins as follows-
inner join -CR.RA_ID = RA.RA_ID (Many to one)
complex inner join-(RA.P1_ID = PP.P1_ID and RA.P2_ID= PP.P2_ID) - (many to one)
complex inner join- (CA.P1_ID =PP.P1_ID and CA.P2_ID = PP.P2_ID) - (many to one)
Packages are shipped to sites, some packages may be returned back.
CA contains shipment information, and shipped quantity, and the date shipped. It is also the table that has all the possible Package IDs.
CR contains packages returned back by the customer and the returned quantity. Not all Package IDs will always have returns.
RA contains the date when the package returned by customer was received.
PP is the look up table having the package IDs.
I have to display both the shipped quantity and the returned quantity for each package id in one report. The issue is in the datacube, i see the shipped quantity broken by shipped date correctly, but when pulled on the report along with returned quantity, it aggregates and repeats for each line of the returned info. eg.
[list=]
Dt_Recvd Shipped_qty Return_qty PP_ID
11/1 8 1 D334
11/5 8 3 D334
11/7 8 4 D334
[/list]
Correct result for shipped_qty is = 8, but since it is repeating on the report it seems to be 24.
I have 2 seperate queries to bring shipped and returned info., and hence there are no contexts and loops. I then link the common dimensions between the 2 queries, but cannot link the 2 dates- dt_shipped, dt_recvd.
I am going against oracle application table and hence these are normalized tables (no fact tables).
How do I resolve this issue?
Don840 (BOB member since 2005-03-14)