Report based on two fact tables

Hi,
i've the same issue, of thread
report based on 2 different Fact tables I've read reply marked as "CORRECT" but I don't understand what to do precisely. Can you explain better?
How Can I create an alias?
What about "If the dimensions are directly linked then mention detailed level else mention the total level which has no direct join b/w fact and dimension... "???
I hope in your help. Thanks
Thanks
Giancarlo

HI Daan,
thanks for reply. Can you explain better point number 2?
I have created an alias for my table (because i use MOLAP approach, i haven't a table but a cube view generated by View Generator Plug-in). Now what i must do with my alias table? Furthermore can you explain better point 2? Finally how i must create complex joins of my new fact table ?
I am newbye of Administration Tool, so i would need of a visual explanation or of a step by step explanation. Can you give me it?
I need of your help, because I must finish a project for my customer
All regards
Giancarlo
Edited by: user5380662 on 27-mag-2010 5.07

Similar Messages

  • Report based on two facts and dimensions

    Hello All,
    I have a report that comes from two facts say F1 and F2. There are certain conformed dimensions, and certain non conformed dimensions.
    Now say Product is a conformed dimension.
    Now these fact tables are at a very detail level and have millions of records.
    I need a report with F1,F2 and product. F1 can have data for certain products and F2 can have certain products. Now to get all the data without dropping any product... I have done outer join. This is causing performance issue. Is there any other way... that I can design to avoid this...
    Also what happens to prompts... if i have product and some other dimensions which are confirmed. It would go to only certain fact... and not pull data when the product doesn't have data for fact F1 and has data for F2. Is there any solutions for this?
    Please help...
    thanks,
    deep

    Hi deep,
    You have did it right way,giving outer join fetches you all records....there is no other way to get this details.
    Let all records be fetched.But take a prompt on product,so when user selects a particular product only the data of that product details are fetched and there wont be any performance issues.
    hope helps you.
    Cheers,
    KK

  • Reporting that traverses two fact tables

    I have searched and am stumped on how to make the work in OBIEE. I can do it with straight SQL on the physical layer, but can't get OBIEE to accept it. I have a customer history fact table that contains several measures and connects to several dimensions. This creates one star. I have a campaign (ad campaign) dim that connects to an Account_Campaign Fact, as one Account may have many campaigns. The Account Dim connects also to the CustHistory fact. When I try and use information from the CustHistoryFact against information in the either the Campaign Dim, or the AccountCampaign fact, I get the following error:"{color:#800000}[nQSError: 14026] Unable to navigate requested expression . . . Please fix the metadata consistency warnings. (HY000){color}"
    In the administration tool, everything checks out as consistent, and I have verified that I can get the correct result using SQL on the physical side.
    My diagram is roughly
    Customer(and other)Dim -< CustHistoryFact >-AcctNbrDim -< AccountCampaignFact >- CampaignDim
    Any ideas?

    Hi...
    From your scenario, there are 2 facts seems CustHistoryFact, AccountCampaignFact.
    And dimensions are: Customer(and other)Dim, AcctNbrDim, and CampaignDim
    Do one thing, one of good technique to avoid this error is : mention the levels (Hierarchies) in administration tool. i.e. rpd.
    For the 2 fact tables, whatever the tables directly connecting to fact tables (or which are having direct joins) need to mention levels in detail level, and for the the dimensions which are not related directly, (or which are not having direct joins to facts) need to mention levels in total level.
    I think you might have known about the level mentioning in rpd, go to the particular fact table source in BMP layer, double-click > Content tab, here you find the hierarchies you created, there you need to mention your levels.
    For your scenario, For fact CustHistoryFact table source, mention detail level for Customer(and other)Dim and AcctNbrDim
    ............................................................................, mention total level for CampaignDim
    In the same way, for fact AccountCampaignFact table source, mention detail level for CampaignDim and AcctNbrDim
    ...................................................................................., mention total level for Customer(and other)Dim

  • Data from two fact tables??

    I have a report in which I am comparing two fact tables at month level. I have columns calculated at this level.
    One fact has all month entries and other does not have all.
    I need to show all the month values and measures in the report even if some months donot exist in one fact and exists in the other.
    Currently, my report shows only those months which two facts have in common.
    Please suggest.

    Left join didnot work for me..Still getting the same result.
    I created two identical reports from two identical facts.... using "combine with similar request"
    Dummied columns from 2nd fact (placed 0s) for 1st report
    and dummied columns from 1st fact (placed 0s) for 2nd report.
    In the fnal report..
    I am getting two rows for each month..
    I need to club those two rows into single row by summing up the values..is that possible?
    January ..................10 .........0
    January...................0............15
    February..................3.............0
    February ..................0...........-1
    I need the out put as..
    January.....................10............15
    February.....................3............-1

  • Querying against two fact tables with non conformed dimension

    I have two fact tables and I have this set up in RPD :
    Fact1 joined to DimA and DimB
    Fact2 joined to DimA
    On Front end I build two analysis:
    Analysis 1:
    DimA.A, Fact1.1, Fact2.2
    Analysis 2 :
    DimA.A, DimB.B, Fact1.1, Fact2.2
    In the results of Analysis 1 , I am seeing correct values for Fact2.2
    In the results of Analysis 2, I am seeing Fact2.2 as empty column. I think the reason is that Fact2 is not joined to DIMB.
    Is it possible that I should be able to report against both dimension tables (DIMA and DIMB) columns for FACT1 and FACT2 measures.... Even though I don't have join between DIMB and FACT2.
    Any response would be helpful!!!
    Regards,
    Annu

    Hi,
    Go to the LTS-- Content Level of the fact which does not have join with Dimension and put Total level for that Dimension and total level on Column(Measure also)(Double click --Levels)(Assume Dim Hierarchy is  already set up)
    Pull everything(D1,D2,F1,F2) You will see results.
    Update Me
    Thanks
    NK
    Edited by: DNK on Mar 20, 2013 1:35 PM

  • Unable to join two fact tables via one common dimension in RPD(Repository)

    I have created two fact tables F1 & F2 and one dimension D.
    F1 is joined to D and F2 is also joined to D in Physical layer as well as in BMM layer.
    I created one report in OBI Answers using these three tables.It Showed me the following error.
    **Error Details**
    **Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P**
    **State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 15018] Incorrectly defined logical table source (for fact table dfghdfh) does not contain mapping for [Dashboard_Fact.Period_Sgt_Key]. (HY000)**
    **SQL Issued: SELECT dfghdfh.Period_Sgt_Key saw_0, "Period Dim".Period_Sgt_Key saw_1, Dashboard_Fact.Period_Sgt_Key saw_2 FROM service_delivery ORDER BY saw_0, saw_1, saw_2**
    How to cope up with the issue or can anyone tell me the alternate workaround for this?

    That is what i have tried.
    I have made a logical table TEST and dragged two fact tables f1 & f2 in source.
    Now when i drag different columns from different fact tables(that are in TEST logical table) in report, it gives an error and not making any joins that you are mentioning.
    ERROR MESSAGE:--
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 15018] Incorrectly defined logical table source (for fact table Test) does not contain mapping for [Test.SurveyName_Id, Test.SurveyHead_Id, Test.Respondent_Id, Test.SDBusiness_Area_Id, Test.Period_Sgt_Key, Test.OBS_Id, Test.VOCBusiness_Area_Id, Test.Question_Sgt_Key]. (HY000)
    The columns mentioned in the error message are all from test logical table..some are from F1 & some from F2.

  • One DIMENSION, Two FACT Tables - One WEEKLY grain, one DAILY grain

    All the OBIEE gurus, thanks for checking out this post.
    Background: We have a common DIMENSION referencing two FACT tables having different granularity.
    DIM = Customer Dim
    FACT = Forecasting (Weekly granularity)
    FACT = Sales (Daily granularity)
    There is a need to report from the Customer Dimension table AND access the Forecasting FACT (weekly grain) & Sales FACT (daily grain).
    Example of query is listed below:
    Give me customer = 'ABC' and the forecast and sales for a specific time period.
    What will be the best way to handle something like this? I have seen examples of handing multi-fact table access in OBIEE but the granularity of both the FACT tables is different (weekly vs. daily).
    Any help with an example is greatly appreciated.
    Thanks,
    Sunshine

    Hi.
    This one:
    Joining different level aggregation measures together into a single logical fact table
    http://108obiee.blogspot.com/2009/07/joining-different-level-aggregation.html
    Regards
    Goran
    http://108obiee.blogspot.com

  • Joining two fact tables with different dimensions into single logical table

    Hi Gurus,
    I try to accomplish in Oracle Business Intelligence 11.1.1.3.0:
    F1 (D1, D2 and D3)
    F2 (D1 and D2 and D4)
    And we want to build a report F1 F2 D1 D2 D3 D4 to have data for:
    F1 that match only for D1-D2-D3
    and data for
    F2 that match only D1-D2-D4
    all that in one row, so D3 and D4 are not common dimensions.
    I can only do:
    F3 (D1, D2)
    F4 (D1, D2 and D4)
    And report
    F3 F4 D1,D2,D4 (all that in one row, and only D4 is not a common dimension)
    Here is the very good example how to accomplish the scenario 1
    http://108obiee.blogspot.com/2009/08/joining-two-fact-tables-with-different.html
    But looks like it does not work in 11.1.1.3.0
    I get
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 14025] No fact table exists at the requested level of detail: [,,Clients,,Day,ROI,,,,EW_Names,,,,,,,,,,,,,,,,,]. (HY000)
    I am sure I set up everything correctly as advised in the blog but it works with only one not a common dimension
    Is it a bug in 11.1.1.3.0 or something?
    Thanks,
    Kate

    Thanks for all your replies.
    Actually, I've tried the solutions you guys mentioned. Generally speaking, the result should be displayed. However, my scenario is a little bit tricky.
    table Y's figures are not the aggregation of table X for D dimension. Instead, table Y's figures include not only D dimension total, but also others (others do not mean A, B, C dimension). For example, table Y stores all food's figure, while table X stores only drink's figure. D dimension is only about drink's detail. In my scenario, other foods' figure is not provided.
    So, even if I set D dimension to all/total for table X, table X's result is still not the same as table Y.
    Indeed, table Y does not have a column key to join to D dimension's key. So, if I select D dimension and table Y's measures at the same time in BI Answer, result returns no data. Hence, I can't compare table X and table Y's results with selection of D dimension.
    Is there any solution to solve this problem?
    Edited by: TomChan on Jun 3, 2009 9:36 AM

  • Joining two fact tables

    Hi:
    We have to add two fact tables F1 AND F2 to an existing bmm. These fact tables have history tables F11 AND F22 and we have to use partition logic for this.
    We have multiple dimensions D1,D2,D3, D4,D5, D6, D7, D8.
    We have common dimension table D1.
    F1, F2 are joined to D1 on the item Id.
    F1 should be joined to F2 on the Invoice Id.
    We have calculated columns in F1 based on the columns in F2.
    Please let me know the best way to build a bmm in this scenario.
    Thanks,
    LC

    Hi LC,
    We have to add two fact tables F1 AND F2 to an existing bmm. These fact tables have history tables F11 AND F22 and we have to use partition logic for this.How you did partition ? you should be using Fragmentation logic for that any how you will add the F11/F22 tables to F1 and F2 LTS , so when you join F1 & F2 to the common dimension then it should work for the calucluated measures but dont forgot to create hierarchies and specify the content levels for the fact tables
    Thanks,
    Saichand

  • Two fact tables with same dimensions

    Good Morning,
    I am just assigned to a new project. This is my first maintenance request: two fact tables F1 and F2 that shares same set of dimemsion tables D1 and D2. In the Answers report, if I use a foreign key in either F1 or F2, for example F1.k1, I get an error of meta data inconsistency. But if I use same column from dimension table D1.k1, then no error.
    Your help is very much appreciated.
    May

    This is proberly #3 on the most popular topics list, behind SSO and a variables. Please use the search, what you need to do to set up conformed dimensions with multiple facts in the same report has been covererd many times.

  • Two fact tables in one business area

    Hi,
    Would there be problem if two fact tables, one flat, one with hierarchy, in one business area. Both fact tables are joined to same set of dimension tables except one: region_1 to fact_1, region_2 to fact_2. The consistency check is fine. But I get error in Answers. I don't have the exact error with me, but it is complains about fact_1 is not linked region_2.
    Any suggestions ?
    Thanks.

    Thank you, Stijn, Ced for your kind reply.
    I did not explain it clearly.
    The fact_1 (flat) table has data in all levels (detailed and aggregated). For example, it has % sales to planned from city, state to national (we were not provided with numberator and demoninator to aggregate the detailed data). The fact_2 table has only city level data and have a dimension region_2 with city, state and national hierarchy. For data in Fact_1 table, we simply want to show them in reports. For data in Fact_2 table, reports can drill-down.
    In Answers, the error is "Incorrectly defined logical table source ( for fact table Fact_1) does not contain mapping for region_2.state_id".

  • Obiee report across non additive fact tables

    I have two fact tables (f1,f2) joined two conformed dimensions d1,d2
    d1,d2 have simple hierarchy total and detail levels
    f1 --->d1
    f1---->d2
    f2---->d1
    f2---->d2
    facts tabel layout
    f1 -- c1&c2 are(additive measures)c3&c4 are(non additive measures)
    f2----col1&col2 are (additive measures)col3&col4(non additive measures)
    I have tried to construct a report with c1,c2,col1,col2 and it works fine
    when i try to do c1,c2,c3,c4,col1,col4 second fact table cols are null.
    Can someone please guide how to resolve this issue.

    there is a rule saying When you are combining multiple fact tables(stars) in a single report, the measures should be aggregated. This is like best practice.
    So in your scenario, you have to create 2 logical dimensions from the fact tables.
    Create logical dimensions F1D with source physical F1 and add only non aggregated measure(c3,c4), Create a hierarchy with total and detail level.
    Create logical dimensions F2D with source physical F2 and add only non aggregated measure(col3,col4), Create a hierarchy with total and detail level.
    then for fact table f1 , set level F1d - Detail, F2d - total.
    then for fact table f2 , set level F1d - total, F2d - detail.
    Update your presentation layer. Make sure these non aggregated columns coming from F1d,F2d instead of logical fact tables.
    check for consistency.,Now save,reload/restart server. Check your reports, thats it.
    thanks
    Madan Thota

  • Calculating count from two fact tables

    Hi Guys,
    My requirement,
    i have two fact table F1, F2 connected with a D1 dimension table, all table connected with a id column
    F1 ---------D1------------F2
    n 1 1 n
    i want to find out the distinct count from Fact F1 where the value also present in F2( ie. F1.id= F2.id condition).
    this measure usefull through out my project so i want create a logical column, how to create it.
    I tried this way:
    i Created two fact table in to one fact table by adding logical source, and created a logical column from existing logical source where F1.id=D1.id and D1.id=F2.Id but it is wrong
    Can any suggestion for solve my problem.
    Thanks in advance!!!

    Hi,
    You can create an opaque view in physical layer and wrire a sql like
    Select f1.id,count(*) from f1,f2 where f1.id=f2.id group by f1.id.Join this through id with dimesnion and add this fact table in LTS of your fact and use count(*) in report.
    Regards,
    Sandeep

  • Join two fact tables

    Hi,
    I have two fact tables F1 and F2 joined with few dimensions D1.....D9. D1,D2 and D3 are conformed dimensions.
    In Physical:
    F1>--D1,D2,D3,D4,D5,D6
    F2>--D1,D2,D3,D7,D8,D9
    In Logical:
    F1>--D1,D2,D3,D4,D5,D6
    F2>--D1,D2,D3,D7,D8,D9
    there are some ports already using above star schemas. now I got new requirements and I need to use measures from both the fact tables and conformed and unconformed dimensions.
    I did the following in logical
    F1 LTS GENERAL TAB ADDED F2,D1,D2,D3,D7,D8,D9 and in content tab set logical level to unconformed dimensions at total level and for conformed dimensios at details level.
    F2 LTS GENERAL TAB ADDED F1,D1,D2,D3,D7,D8,D9 and in content tab set logical level to unconformed dimensions at total level and for conformed dimensios at details level.
    but I'm still getting
    [nQSError: 14026] Unable to navigate requested expression:
    Please fix the metadata consistency warnings. (HY000)
    I cheked metadata global consistency and no errors found.
    Appreciate your help
    Thanks
    Jay.
    Edited by: Jay on Sep 27, 2011 10:14 AM
    Edited by: Jay on Sep 27, 2011 10:15 AM

    Let me explain my issue again
    In Physical:
    F1>--D1,D2,D3,D4,D5,D6
    F2>--D1,D7
    In Logical: Single logical fact Fact_FY_Ratio has two logical sources
    LTS1: F1>--D1,D2,D3,D4,D5,D6
    LTS2: F2>--D1,D7
    Set the content level for each LTS in Fact_FY_Ratio:
    F1 to Detail for D1,D2,D3,D4,D5,D6 and to Total for D7
    F2 to Detail for D1,D7 and to Total for D2,D3,D4,D5,D6
    In LTS 1 general tab added inner joins with all dimensions F1,D1,D2,D3,D4,D5,D6,D7and F2
    In LTS 2 general tab added inner joins with all dimensions F2,D1,D7,D2,D3,D4,D5,D6 and F1
    And I also did logical complex join for Fact_FY_Ratio with all logical dimensions D1,D2,D3,D4,D5,D6,D7
    I'm able to run query using D1,D2,D3,D4,D5,D7,F1,F2 but when I include D6(time dimension) it is causing problem with F2(witth F1 it is working fine).
    query success with:
    F1,D1,D2,D3,D4,D5,D6
    F2,D1,D7
    D1,D2,D3,D4,D5,D7,F1,F2
    Query failed with:
    F2>--D1,D7 and D6
    Please let me know anything wrong with above configuration.
    Thanks
    Jay...
    Edited by: Jay on Oct 3, 2011 7:11 AM

  • Can we create a hierarchy based on two logical table in 10g RPD

    Hi,
    I have a question, please give me some clarity, about creating hierarchy,
    I know we can create a hierarchy based on one logical table which is form by two physical table...
    Can we create a hierarchy based on two logical table? If yes, and how?
    Thanks in advance!
    anne

    Use preffered drill paths...
    -suman

Maybe you are looking for

  • HP Officejet Pro 8500 A909g Crashes My Internet

    I have an HP Officejet Pro 8500 A909g printer connected through a Netgear WNDR3400v2 router which is then shared through 3 computers all running Windows 7 Home Premium, in fact they are all identical. Now for the problem it seems that every time I tu

  • Ringtones not working after update

    Since the update, it wont let me put ringtones on my phone. If i try to it wants to delete all my music off my phone. Ringtones show up in my apps and on my side bar under my phone but not on my device! Even my ringtones I have bought from Itunes won

  • DataGrid ItemRenderer - display image

    I have a DataGrid and I'd like to display different images (PNG files) in one of the columns based on the value for a given row. Say I have an object which looks like this: public class LogMsg { public var type:String; public var msg:String; My DataG

  • How to delete upload images

    How do you delete an image once you've uploaded it?

  • How to install gcc compiler on mac

    how to install gcc compiler om macair( 2013) ?     THANKS IN ADVANCE !!!