Monday, April 06, 2009

Oracle Analytics: How to report over non-conforming fact tables

A few months ago, I attended the inaugural 'Rittman Mead Training' course in London. It was a great chance to learn about the latest version of the Oracle BI tool set and to meet and discuss concepts - with some experts in their field.
During one of the discussions, the problem of reporting over multiple facts with non-conforming dimensions was brought up and I thought it would be worthwhile to discuss how we came up with a solution here.


Scenario:
The business wants to write an Answers request that has dimensions and measures from two different logical entities that share some but not all the same dimensions.
In addition, they want to have the ability to filter on some of the non-common dimensions.


We have a large logical star called 'Loan Account' which models accounts held by the business, that has a huge amount of dimensions:



In addition, we have a smaller star, that models the targets that the company has for loan accounts, used for bonuses for employees and budgeting:


As you can see from the two logical stars, they have some common dimensionality. However, the Loan account fact has dimensions that don't make sense in the targets fact.

If you wanted to write an Answers request that utilized measures from both facts, the BI server will not throw up an error.
The BI server will try to federate the queries but won't understand how to link the two - its solution is to 'Cast as Null' the non conforming measure. The request doesn't fail, it will issue two sql statements but as it can't determine the level for the non-confirming measures - it plays safe and nulls them.

Solution:
We need to trick the BI server into assuming that the non-conforming dimension fact table is actually conforming.

The fact table that has the lowest dimensionality will have the measures usually fail - so the first consideration is to decide to modify all the measures or just those that are frequently used in requests. In addition, you need to know the dimensions that are going to be used in the requests.

In this example, as target measures are used in pre-built requests, the development team know which measures need to be modified; we know which ones will be used and the dimensions that will be used.

Assuming that all the 'normal' logical build has been done, for those measure that need to conform - go to the level tab within the logical column:


For each and every dimension, that the measure need to conform to, set the Logical Level to the highest level in the Dimensional Hierarchy (e.g Total or All).


Now, when you run the request. The BI server can work out how to federated the two sql statements.

This will work in Siebel Analytics (7.8.2) and should work in newer iterations of OBIEE. If anyone, how done something similar on OBIEE let me know.



....LiS wanders off!





10 comments:

mrFarenheit said...

Thanks for your post, it was very helpful to me !
I did not find such an explanation anywhere ...

Anonymous said...

Variety is the spice of life.
http://www.nflnikejerseysshopxs.com/
http://www.casquemonsterbeatser.com/
http://www.cheapfashionshoesas.com/
http://www.buybeatsbydrdrexa.com/
http://www.bottesuggpascheri.com/
http://www.ghdnewzealandshopa.com/
http://www.coachfactoryoutletsez.com/
http://www.burberryoutletusaxs.com/
http://www.michaelkorsoutletez.com/

Anonymous said...

Hello. And Bye. Thank you very much.

Anonymous said...

Hello. And Bye. Thank you very much.

Anonymous said...

[url=http://www.dressaleuk.co.uk]cheap prom dress[/url] William de Ferrers the 5th Earl was for example, referred to as 'Comes Ferrieres' when he witnessed the charter by which king John conceded England to the Pope in 1213.). [url=http://www.zoeroad.com]unique prom dresses[/url]
[url=http://www.xmpllc.com]wedding dress online sale[/url] tglmlyob In doing this and by accepting and forgiving others I have experienced self-love and acceptance, as this came in the hurt and anger left me.. amtnmqgo [url=http://www.mulberrylondonshop.co.uk]mulberry purse sale[/url]

Anonymous said...

[url=http://www.dressaleuk.co.uk]cheap prom dress[/url] Fie sub aspect financiar, fie sub aspect emo牛ional, efectul rupturii poate fi grav: un client mai pu牛in, o c膬snicie distrus膬, o carier膬 ratat膬 etc. [url=http://www.zoeroad.com]black prom dresses[/url]
[url=http://www.christianlouboutinosale.co.uk]christian louboutin[/url] isnqlgim And it doesent hurt because they are thick, so I stick my hand in a hole feel it and bam! I got one! I catch like 13 a minute (that's fast for hand fishing) I look under large rocks and clumps of floating grasses. xkrgijnw [url=http://www.mulberrylondonshop.co.uk]mulberry sale uk[/url]

Anonymous said...

[url=http://www.dressaleuk.co.uk]cute prom dresses tumblr[/url] A highly varied shoreline and many marshy coves provide a haven for all sorts of waterfowl and wetland plants. [url=http://www.mitwhite.com]inexpensive bridesmaid dresses[/url]
[url=http://www.xmpllc.com]wedding dress online sale[/url] aafxbaqd The benefits of employee involvement are increase in ownership and commitment, retention of the employees; it creates a harmonial environment, helps to achieve the employee satisfaction. mmoyaygm [url=http://www.mulberrylondonshop.co.uk]mulberry alexa bag[/url]

Anonymous said...

http://www.dressaleuk.co.uk They did not pay any attention. [url=http://www.mitwhite.com]black bridesmaid dresses[/url]
[url=http://www.xmpllc.com]http://www.xmpllc.com[/url] kfghjziw The style was recognisable by multiple camera cuts, very unstable and jerky movements and exceptionally tight editing. qlnpkxkm [url=http://www.mulberrylondonshop.co.uk]mulberry purse sale[/url]

Anonymous said...

[url=http://www.dressaleuk.co.uk]cute prom dresses tumblr[/url] You can't kill the goose that laid the golden egg. [url=http://www.zoeroad.com]princess prom dresses[/url]
[url=http://www.xmpllc.com]homing dress 2013[/url] pxmqpnud Even though they do work well to offer relief from these disorders, they are prescribed less frequently now since SSRI drugs have a much lower risk of causing side effects than do the TCA category of drugs.. naaaaejs [url=http://www.mulberrylondonshop.co.uk]discount mulberry outlet[/url]

Anonymous said...

FjwEqqFdfDbx [url=http://nike232.webnode.jp/]ナイキ ランニング[/url] TazQyuVpzOec [url=http://nike-shop3.webnode.jp/]nike[/url] McpLdsJzyEiy [url=http://nike378.webnode.jp]ナイキ ランニング[/url] YzgNwpMgtOou [url=http://nike96.webnode.jp/]ナイキ フリー[/url] HquEpuXmsJpe [url=http://nike-store0.webnode.jp/]nike スニーカー[/url] UlwEknBqpTbj [url=http://nike-air8.webnode.jp/]nike id[/url] NqrQbxXlmKyr [url=http://nike-free3.webnode.jp/]ナイキゴルフ[/url] RcaYksOjlLnd [url=http://nike99.webnode.jp/]ナイキゴルフ[/url] GvoQplSqgFbz [url=http://nike553.webnode.jp/]ナイキゴルフ[/url] QcwInnRolDqw [url=http://nike555.webnode.jp/]nike air[/url] FahSqhPgtCok

MisGogDflQsb [url=http://adidas51.webnode.jp/]nike エア[/url]DqmIguSndKgw [url=http://nikeonline.blog.fc2blog.net/]nike sb[/url]XouRixRfiAvd [url=http://nikeair350.blog.fc2.com/]ナイキシューズ[/url]UnyGvlUrqCbj [url=http://nikeshose.blog.fc2.com/]スニーカー nike[/urlUvzDrqNlzXpd [url=http://nikeonlie11.blog.fc2blog.net/]ナイキランニング[/url]CopMamSfwWmw [url=http://ナイキシューズ.seesaa.net/]nike free[/url]AagOooNraDja [url=http://シューズナイキ.seesaa.net/]free nike[/url]SeeKjbJmfBkp [url=http://nikeair11.seesaa.net/]ナイキ[/url]VneWluDuvVjs [url=http://niker.seesaa.net/]nike[/url] IhdPmvSstWqu [url=http://nikeshose11.blog.fc2.com/]ナイキ フリー[/url]OawQugBlsJig