Dear GURUS,
I am facing some issues with the OUTER Join I am trying to use in my OBIEE Reports.
The details are as below:
OBIEE Version: OBIEE 12.2.1.3
OS: Windows 2012 R2
I have 3 Tables: 1 Fact (F) and 3 Dimensions (D1 - Time, D2 - Product, D3 - Customer), where D2 Left Outer Join F, D1 and D3 are Inner Joins to F.
The main requirement is:
I should get all the PRODUCTS from D2 irrespective of conditions/filters specified in for D1, D3 or F.
I have applied the filter on both D1 and D2 to select the time duration and Product Type, however, OBIEE is forming the Left Join in such a way that the D1 condition/filter is getting applied on the overall result returned and not on the subset of result.
select c1, --coming from Fact
c2,
c4,
c5,
c6,
c7,
c8,
c9,
c10,
c11,
c12,
c13
from
T619423 left outer join (
T619540 inner join T619454 On T619454.METRIC_MONTH = T619540.MONTHID) On T619423.METRIC_DEFINITION_KEY = T619454.METRIC_DEFINITION_KEY
where ( T619423.pqr = 1 and T619540.YEAR = 2017 and T619454.METRIC_MONTH <= 201711 and T619540.MONTHID <= 201711 )
group by
The highlighted condition is the one that has to be applied to the overall result returned from the F and D1, D3 resultset to get the LEFT JOIN.
Note: the details in the query are deleted on-purpose and the query is not incorrect/giving errors.
Request you to kindly suggest a way in which I can achieve this.
Thanks in advance.