I have compiled all my previous reply and initial post into one, to avoid understanding gap( perhaps I have not explained problem in right way)
Environment:
I am using connection for oracle 11 .
Universe design tool version is 14.0.4.738.
Web intelligence :SAP Businessobject Launch Pad 14.0.4
Universe:
I have two fact tables SALE and COMMISSION, and Dimension :CUSTOMER is a common dimension joined to both fact table.
- Fact :SALE is connected to other two dimension (d1 and d2 ),
- Fact :COMMISSION connected to one other dimension d3.
( both fact are different grain level)
I have defined two context one for each fact table.
Following settings are in universe parameter
- Multiple SQL statements for each context - ENABLED
- Multiple SQL statements for each measure - DISABLED
- JOIN_BY_SQL to Yes
Measure Object SALE.REVENUE
Type : Number
Qualification : Measure
Projection function : Sum
Measure Object COMMISSION.TOT_COMM
Type : Number
Qualification : Measure
Projection function : Sum
(as you see object are aggregated as projection function SUM is used)
SQL: when you choose four object
(two from customer dimension :- Customer_name and Address, one from SALE fact Revenue, one from COMMISSION fact tot_commission) in webi report . In query you can see following two SQL. Data displayed in report is aggregated and correct.
Following two SQL appeared in query :-
Qry_1:-
SELECT DIM_CUSTOMER.CUSTOMER_NAME, DIM_CUSTOMER.ADDRESS, SALE.REVENUE
FROM DIM_CUSTOMER, SALE
WHERE ( SALE.CUSTOMER_SKEY=DIM_CUSTOMER.CUSTOMER_SKEY )
Qry_2:
SELECT DIM_CUSTOMER.CUSTOMER_NAME, DIM_CUSTOMER.ADDRESS, COMMISSION.TOT_COMM
FROM DIM_CUSTOMER, COMMISSION
WHERE ( DIM_CUSTOMER.CUSTOMER_SKEY=COMMISSION.CUSTOMER_SKEY )
Problem &
what I want to achieve :-
SQL generated is not reflecting differently, two issues are there:
- SQL generated does not show SUM function ( eg. sum(sale.revenue))
- Want to see one complete SQL instead of two.
Result produced are correct , it look like aggregation of facts and merging results from two SQL are happening at business objects tier level that is why it is displaying two SQL.
As a solution I have set parameter JOIN_BY_SQL to Yes. But still I am not getting right results.
[Edited: applied various formatting options. Thanks, Andreas.]
GBS74 (BOB member since 2007-01-23)