Bridge Tables
description
Transcript of Bridge Tables
-
11/7/2014 RittmanMeadConsultingTheMysteryofOBIEEBridgeTables
http://www.rittmanmead.com/2008/08/themysteryofobieebridgetables/ 1/12
HomeAboutCareersClientsConsultingTrainingSupportArticlesBlog
RittmanMeadDeliveredIntelligenceTheMysteryofOBIEEBridgeTables
August28th,2008byMarkRittman
IfyouveplayedaroundwiththeOracleBIAdministratortoolforawhile,youmayhavenoticedaboxyoucantickintheLogicalTablePropertiesdialog,calledBridgeTable.IfyourefamiliarwithRalphKimballandsomeofthisdimensionalmodelingideas,youveprobablyheardofthisconceptbefore,butitsnotallthatclearhowyouusebridgetablesinOBIEEandaquicksearcharoundtheinternetandtheOTNforumsdoesntreallycomeupwithanexamplesonhowitsused.
Bridgetablesareasolutiontowhatscalledthemultivalueddimensionproblem.Formostdimensionalmodelsyougenerallywanttolinkonesale,forexample,tooneproduct,onecustomer,onetimeperiodandsoon,andthistranslatesintoasimpledimensionalmodelwhereyourfacttablecontainsasinglekeyvalueperdimensionforeachrowthatsbeenstored.Insomecircumstancesthough,saywhereyouarerecordingthediagnosesforapatientortheclaimelementsinaclaim,youmightneedtorecordmorethanonekeyvalueforaparticulardimensionineachfacttablerow.Inentityrelationshipmodelingterms,youvegotamanytomanyrelationshipbetweenpatientadmissions
-
11/7/2014 RittmanMeadConsultingTheMysteryofOBIEEBridgeTables
http://www.rittmanmead.com/2008/08/themysteryofobieebridgetables/ 2/12
anddiagnoses,likethis:
andtheusualwayyouresolvethesemanytomanyrelationshipsistouseanintersectiontable,withthekeyfromthepatientadmissionstableandthekeyfromthediagnosestablecopiedacrosstoformtheintersection,andusuallywithaweightingcolumnthataddsupto1,sothatyoucanproperlyaddupallthediagnosesandnotovercountthem.
AsIsaid,thisisnotexactlynewstuffandbridgetables,ofwhichdiagnosisgroupaboveisoneofthem,areafairlycommondimensionalmodelingconstruct.Theproblemyouhitthoughwhenstartingtousethisfeatureisthatthedocumentationonitisprettyminimal,andonlyreallytalksaboutsettingthisfeatureonthebridgetableitselfanddoesntreallymentionwhattodowiththedimensiontablethathangsoffofit.WhatIlldointhispostingthenissetouthowIuseit,explainmyrationaleandthereafterinvitesomefeedback,soifsomeoneelsehascomeupwithabetterideathenwecanworkwiththatinstead.
GoingintoBIAdministratorandlookingatthephysicalmodelforthedatasetabove,itlookslikethis:
withthekeythingherebeingthatthefacttablewevegotthebridgetablejoiningtoboththefactanddiagnosisdimtablestoformanintersection.Ifyouimportedthismodelintothelogicalbusinesslayerasis,theBIAdministratorwouldthinktheintersectiontableisthefacttableastheothertablesjointoit.
Sowhatyoudonowisgointothepropertiesforthediagnosistableandindicatethatitsabridgetable,likethis:
-
11/7/2014 RittmanMeadConsultingTheMysteryofOBIEEBridgeTables
http://www.rittmanmead.com/2008/08/themysteryofobieebridgetables/ 3/12
Nowwhenyoulookatthelogicalmodelthefacttableisidentifiedcorrectly.
Ifyoutryandvalidatethemodelnowthough,yougetawarningbecausethediagnosesdimensiontabledoesntlinkthroughtothefacttable,asitgoesthroughthebridgetableinstead.
Nownotlinkingthroughtothefacttableissometimesallowed,basicallyinsituationswhereyouvesnowflakedyourlogicalmodelandthedimensiontableisactuallyahigherlevelinthesamedimension,butinthiscaseifwetryandusethismodelandbringinthediagnosesinformationintoaquery,wellgetametadataconsistencyerror.
Tosolvethis,whatIwoulddoisremovethediagnosisdimensionfromthelogicalmodel,andinsteadaddittothelogicaltablesourceforthebridgetable,likethis:
-
11/7/2014 RittmanMeadConsultingTheMysteryofOBIEEBridgeTables
http://www.rittmanmead.com/2008/08/themysteryofobieebridgetables/ 4/12
ThenIdaddanycolumnsthatIneededfromthediagnosisdimensionphysicaltableintothebridgetable,whichIcandonowasIveaddedthedimensiontabletothebridgetableLTS,sothatthisbridgetablenowbecomesmydiagnosisdimension,likethis:
SowhatIvedonehereistakethedimensiontable,whichbeforelinkedtothebridgetableandthereaftercausedthemetadatainconsistency,andinsteadaddedittothebridgetablelogicaltablesourceandaddeditscolumnstothebridgetablelogicaltable.
IfIrunareportnow,thedatacomesoutasyouwouldexpect,withmultiplediagnosesperpatientandtheweightingappliedcorrectly.
-
11/7/2014 RittmanMeadConsultingTheMysteryofOBIEEBridgeTables
http://www.rittmanmead.com/2008/08/themysteryofobieebridgetables/ 5/12
HoweverImconsciousthattome,gettingridofthelogicaldimensiontableseemsabitwrong,andothershavesaidthattheydontusethebridgetablefeatureatall,andinsteadjustcombinethevarioustablesintoasinglelogicaltablesource.Ifanyonesgotanyotherwayofusingbridgetables,addacommenttothispostandwellseewhattheconsensusis.
Tweet 1
1Like
PostedinOracleBISuiteEE|22Comments
Comments
1. MikeNicholsSays:
August29th,2008at12:52am
ThanksMarkforthegreatpost.IhavespentthelastyearrelearningmyDiscovererskillsonOBIandhaveappreciatedyoruposts.LookingforwardtoOpenWorld.Iwonderifyouhavetriedstartingwithaviewthatprejoinsthebridgetableandthedimensiontable.ThenusetheviewasasourceinOBIEE.HowdoesOBIhandlethistypeofsituation.CurioushowtheSQLcomesout.ThisishowInormallysolvethebridgetableforusersanyway.Ifindwouldimporttheviewindiscoverertohidethecomplexityofthebridgefromtheendusers.Whatareyourthoughts?
2. GerardBraatSays:
September2nd,2008at9:15pm
HiMark,Thanksforthepost.Ithinkyoudonotneedtodeletethedimensiontable.ByjustaddingtheDIMtablealsotoLTSofthebridgebutleavethedimtableinthelogicalmodel,youresolvetheinconsistencyandleavethemodelintuitiveandintact.However,thepurebridgetablesituationinaDWHstarschemaisslightlydifferent:Itisadimensionjoiningtoafact,saySALES_REP_DIMtoCOMPENSATION_FACTwhichjoinsviaabridgetoSALES_TEAM.InthiscaseyoucannotaddtheSALES_REPdimensiontothebridgebecauseitdoesnotjointothefactandhencedoesnotsolvetheproblem.THeotherwayaroundisnotallowedsincethegranularityofthebridgeishigherthanitsatellitedimensions.Ihave,untiltoday,nosolutionforthisproblem.I
Share
-
11/7/2014 RittmanMeadConsultingTheMysteryofOBIEEBridgeTables
http://www.rittmanmead.com/2008/08/themysteryofobieebridgetables/ 6/12
amkeentodiscoverwhattheeffectisintheOBIEEserverengine,ofcheckingtheBridgeTablebox.Tobecontinued
Cheers,Gerard
3. MarkRittmanSays:
September3rd,2008at10:13am
HIGerard,Mike
Mikethanksforthecomments.IntermsofdefiningaviewoutsideofOBIEE,asyousaythisprobablymakesthingsaloteasier,howeverforthisinvestigationIwastryingtoseehowOBIEEuseditsbridgetablefeaturehencegivingitago.Asyousaythough,resolvingtheissueinthedatabaselayerpriortomanipulatingitviaBIAdministratorisoftenthesimplestapproach.
GerardIthinkIdidtryaddingthedimtothebridgetableLTSandIgotthesameerror.IlltrythisagainwhenIgetamomentandseeiftheproblemstilloccurs.Thanksfortheheadsupontheotherbridgetablescenario,ifyougetasolutionthenletmeknow,Illkeepaneyeopenaswellforthis.
4. JohnBroadwaterSays:
September11th,2008at6:18pm
Thesearegreatposts.Veryclearandveryvaluable.Ingeneral,thispostdescribeshowIhaveusedbridgetablesinotherenvironmentsEndusersjustseeasingleviewcombiningthebridgeandthebridgeddimension.
Myquestion:arethereanyfrontendquerytoolssmartenoughtoautomaticallyapplytheweightingfactortoreferencedfactamounts?
5. SammySays:
October24th,2008at9:16am
IthinkthemultivalueddimensionsolutionliketheloopsolutioninBO.Maybethatneedaverymatureandcomplexsolutionsupply.
6. SanSays:
November20th,2008at8:25am
HiMark,ThisisthewayImodeleditanditworkedfineforme.InsteadofusingtheBridgetabletojointothefactthewayIdidiintheBMMlayerisiJoinedtheDimension(Diagnoses)totheFacttableandinsidetheLTSofdimensionImappedthebridgetableastheothersourceanditworksfineformeanditgivsmecorrectresult.Pleaseadvice.Regards,San
7. ParagSays:
March12th,2009at4:38pm
HelloMark,Thanksforallthepostsandinsights.Theyareextremelyhelpfulinthedesignanddevelopment.
Ihaveaquestion.Wouldthisapproachworkwith2facttables,evenifthereisaconfirmeddimensionbetweenthe2.
-
11/7/2014 RittmanMeadConsultingTheMysteryofOBIEEBridgeTables
http://www.rittmanmead.com/2008/08/themysteryofobieebridgetables/ 7/12
Thefactgroupsarejoinedusingthethehierarchiesanddefiningcontentlevelforthefacts,dimensionsandmeasures.Butthequeriesarelengthyandlongrunning.
Thanks,Parag
8. BibudeshSays:
July3rd,2009at5:00am
HiMark,Ithinkhavingabridgewillbemorebeneficaliftherearetwoormoremultivalueddimensions.Ifitsonlyonethenitsbettertohaveboththedimensionsinfactitselfandhavetheweightfactorortheproratafactormaintainedinthefact.Thiswillreducecomplexitywhileauditingtheresultsandendqueries.RegardsBibudesh
9. RoySays:
August11th,2010at9:13am
HiMark,
Thisisaverygoodpostandhelpful.CanyoupleasegiveanexampleofPatientAdmissionandDiagnoseswithsomerecordsandshowhowtheylooklikewhenDiagnosesGroupiscreated,too?Iamnotabletounderstandhowtomovethekeysfromthosetwotablestothebirdgetabletoconvertmanytomanyrelationshipintotwoonetomanyrelationships.
Regards,Roy.
10. MohammadRafiAnsariSays:
September1st,2010at10:08am
CanyoupleaseshareRPDforTheMysteryofOBIEEBridgeTables.
11. MohammadRafiAnsariSays:
September1st,2010at10:10am
HiMark,
Thisarticleisreallynice.ifpossiblecanyoupleasesendmeTheMysteryofOBIEEBridgeTablesrpdatrafiansari2002@gmail.comIwillbethankfulltoyou.
RegardsMohammadRafiAnsari919213626363
12. MarkRittmanSays:
September1st,2010at1:59pm
HiMohammad,
ImafraidIvenotgotitavailablenow,thepostingis>2yearsoldnow,sorry.
Mark
-
11/7/2014 RittmanMeadConsultingTheMysteryofOBIEEBridgeTables
http://www.rittmanmead.com/2008/08/themysteryofobieebridgetables/ 8/12
13. MohammadRafiAnsariSays:
September3rd,2010at5:42am
HiMark,
Thanksforurreply.
ItsokifRPDisnotavailablenowIwilltrytodoitbymyself.WellIneedsomemorehelpfromyourside.ActuallyIamplanningforOBIEECertificationbutidontknowwhatwillbethepatternforthat.SoIneedyouprecioushelp,ifyoucanarrange/providemeanysoftmaterialoranysamplepaperoforacleforstudy.Sothaticanscoremoreinpaper.
RegardsMohammadRafiAnsariEmail:[email protected]:919213626363
14. JebySays:
September19th,2010at6:52am
HiMark,
Usefularticlethatshowsonemorewayhowtobridgetables.IwasperforminganupgradefromSiebelanalyticstoOBIEE10.1.3andwehadlotsofconsistencyerrorspostupgradewhichwerenotvisibleinanalytics.Theyseemedtobearisingfrombridgetables(althoughtheerrorswereonBMMobjectsnotevenrelatedtothebridges).OurOracleconsultantjustdeletedthebridgetablesandalltheerrorsvanished.Iwasalsosurprisedtoseethatallthebridgeshavingthesourceasfacttables.Canyoupleaseshareyourthougtsonifandwhenyouconsiderafacttabletobehaveasabridge?
15. RobSays:
October6th,2010at7:28pm
Thankyouforsharingyourexpertisethisarticlesavedmequiteabitoffrustration.Isubscribetoandamimpressedbyyourrssfeed,aswell.Rockon!
16. FrankSays:
October14th,2010at3:08pm
ThebridgetableoptionisnotavailableanymorewithOBIEE11g.Ithasbeenchangedwithaninterestinglookuptableoptionwhichofcourseisnotthesamefonctionnality.
Regards
17. saudSays:
January17th,2012at12:04pm
awesome
18. DSSays:
August28th,2012at10:46pm
MarkyouaretheexpertandIhavebeenstrugglinginthisonething.IwanttomakeaMasterDetailreportto
-
11/7/2014 RittmanMeadConsultingTheMysteryofOBIEEBridgeTables
http://www.rittmanmead.com/2008/08/themysteryofobieebridgetables/ 9/12
workwheremasteriscomingfromoneFacttableanddetailiscomingfromanotherFacttable.However,theybothsharedcommondimensionsandtheyareinsamesubjectarea.
19. DavidSays:
September10th,2012at7:31pm
Hi,Nicearticleithelpmetounderstandmanythings.IalsohaveaproblemwhichIwantyoutohelpme.Thisisjustasimpleexampletoilustratemyquestion.
Facttable:PERSON_ROLE
DimensionaltablesDIMPERSONPersoncatalogDIMROLERolebyPerson{DIM_PERSON_ID,ROLE_Name}soitislikeabridgeplusdimensional
APersoncanhavemultiplesroles,butintheFacttableimonlyusingoneregisterperperson.
myFacttable{DIM_PERSON_ID,DIM_GROUP_ROLE}
inthissimplecasecouldIusethesamevalueforbothcolumns?oricanbindmytwodimensionstosinglecolumnontheFacttable?
Thanks
20. LakshmananSays:
September28th,2012at3:00am
WehaveaBalancedScoreCardwhichshowsKPIfigures.OndrilldownthisshouldshowAccountcategoryfigures.
ManytoManyOneKPIreferstomanyAccountcategories.OneAccountcategoryisusedinmanyKPI.
TherearetwowaysofjoininglogicaltableswithabridgetableinOBIEE10g.
Afterjoiningyoucancopyandpastethetablecolumnsintoonetableorletthembeintwotables.
Butthefiguresarecomingwrongaftersuchjoin.Afterstrugglingforonemonth,wegaveup.
TomakethissimplewesimplymergedtheDim_KPIintotheDim_Accountsphysically.Thestructurelooksfunnywith200columnsinDim_AccountsforeachKPI.ButthenthisiswhatOBIEEdoeswithlogicaltables.Andwedonothavewrongfiguresproblem.
AnditisveryeasytoverifyanaccountbelongstowhichallKPI.
AddinganewaccountiseasyweexportthetabletoanxlsforfinanceguytoaddnewaccountandmentionunderwhichallKPIitshouldbereferred.
21. AnirbanSays:
January16th,2013at2:11pm
HiMark,
Thanksverymuchforthepost.Itisreallyveryveryhelpful.JustwantedtoknowifIwanttoimplementthebridgetableconceptiOBIEE11.1.1.6,howIcanimplementitasthereisnooptionforBridgetableinOBIEE
-
11/7/2014 RittmanMeadConsultingTheMysteryofOBIEEBridgeTables
http://www.rittmanmead.com/2008/08/themysteryofobieebridgetables/ 10/12
11.1.1.6.
ThanksAnirban
22. OsamaAbdallahSays:
July2nd,2013at4:16pm
HiMark,
Thankyouforthegreatpost.IbelieveIhaveasolutionforyou.Youcanbypassthebridgetablesolutionaltogetherbycreatinganaliastableofthesecondfacttable,andlinkittotheprimaryfacttableinthephysicallayerasonetomany.ThenintheBusinessModelandMappingLayer,youcanmergethealiasfacttablethroughtheLTSwiththeprimaryone.MakesuretocreatethejoinsofthetwotablesintheirLTS.Sonowyoudendupwithonebigfacttable.YoucanthensplitoffthatbigfacttableintotwotablesinthePresentationLayer.
Ivehadalmostthesameexactscenarioatwork,whereIneededtomergeanothertablewiththemainfacttable.AndthisistheapproachthatItook.InthePresentationLayer,Ididputitasonefacttable.ButlikeIsaid,youcansplititintomultipletables.
Idontthinkthebridgeoptionisreliable.Itriedit,anditfrustratedme:).ItsoneofthesethingsthatOraclesometimesputsouttherethatdontwork.Butthecustomerspayforthemanyway.hehehehehhe.
Takecare,OsamaAbdallah
Searchtheblog
RecentPosts
AnalyticswithKibanaandElasticsearchthroughHadooppart3VisualisingthedatainKibanaAnalyticswithKibanaandElasticsearchthroughHadooppart2GettingdataintoElasticsearchAnalyticswithKibanaandElasticsearchthroughHadooppart1IntroductionUKOUGPartneroftheYearAwardsOracleBICloudServiceforSaaSApplicationReportingPart1:IntegratingBICStoSalesforce.comusingRESTAPIs
TopPostsOBIEE11gSecurityWeek:ManagingApplicationRolesandPolicies,andManagingSecurityMigrationsandDeploymentsOBIEE11gSecurityWeek:ConnectingtoActiveDirectory,andObtainingGroupMembershipfromDatabaseTablesUpgradingOBIEEto11.1.1.7OBIEE11gSecurityWeek:RowLevelSecurityAnalyticswithKibanaandElasticsearchthroughHadooppart3VisualisingthedatainKibana
RandomPosts
CreatingaCustomAnalyticsDashboardfromScratchthe"BluePeter"way
-
11/7/2014 RittmanMeadConsultingTheMysteryofOBIEEBridgeTables
http://www.rittmanmead.com/2008/08/themysteryofobieebridgetables/ 11/12
DataIntegrationTips:ODI12cSubstitutionAPIGUIDsNewODI12cArticle,andDetailsofourInauguralODI12cCourseinBrighton,May12th14th2014VisualRegressionTestingofOBIEEwithPhantomCSSConnectingOBIEE11.1.1.7toClouderaImpala
Tags
11gBigDataApplianceBIPBIPublisherdwem12cEndecaexalyticsextremebigitgoldengatehadoopHiveinit.dinstalllinuxMDSXMLmonitoringnewfeaturesnqcmdOBIAobieeodiodi12copatchOracleOracleBIApplicationsoracledataintegratorOracleEndecaOracleEndecaInformationDiscoveryowbperformanceRealTimeDecisionsreplicationReportServiceRTDrunReportsampleappscreenscriptingsecuritystartuptestingtrainingXML
CallusnowtotalkaboutyourBIproject:+44(0)1273911268(UK)or(888)6311410(USA)or+61395967186(Australia&NewZealand)or+919972567970(India)or+3228088211(Belgium)
HomeAboutUs
>Aboutus>Aboutourteam>Contactus>Ourclients
Services>Consulting>Training>Support
ConsultingServices>Projects>ExpertServices>OBIEE11g>Sustainability>OnDiscoverer?>OracleDW
Training>OBIEEBootcamp>OBIEEEndUser>Exalytics>ODI11gBootcamp>OracleBIApps
Resources>Articles>Blog>OBIEE11g
BlogAuthors>MarkRittman>VenkatJ>PeterScott>BorkurS
-
11/7/2014 RittmanMeadConsultingTheMysteryofOBIEEBridgeTables
http://www.rittmanmead.com/2008/08/themysteryofobieebridgetables/ 12/12
>MikeVickers>RobinMoffatt>JonMead
RittmanMeadConsultingltd.
RegisteredOffice:SuiteB,FirstFloorMooreHouse,13BlackLionStreet,Brighton,EastSussex,BN11ND,UnitedKingdomCompanyNo.:6032852VATNo.:900383948RittmanMeadAmerica,Inc.
RegisteredOffice:4550NorthPointParkwaySuite390Alpharetta,Georgia30022,USARittmanMeadOceaniaPtyLtd.
RegisteredOffice:12MooreStreet,BrightonEast,Victoria,3187,AustraliaAustralianCompanyNo.:149458935RittmanMeadConsultingPvtLtd.
RegisteredOffice:Unit105106RegentPrimeWhitefieldMainRoadWhitefieldBangalore560066RittmanMeadBelgium
RegisteredOffice:ChaussedeLouvain4261380LasneBelgium20102011RittmanMeadConsulting.|PrivacyPolicy|E:[email protected]
WebsiteDesign&Build:tymedia.co.uk