Foreign Key join between two columns in a dimension to one column in Fact

Hi,
I have a requirement to join two columns in a Dimension to the same column in the fact.
My reports contains columns from this dimension and will need to use both the joins to get the correct values. So I am not sure if I create an alias to join the second column, if that will be output incorrect values.
How can we achieve this so that I can still use columns from the dimension and still run both the joins in my SQL eventually.
Dimension
Column 1
Column2
Fact
Column 3
Need to map Column1--->Column 3 and Column2 -----> Column 3
Thanks

I put it in Dimension and dimension extension scenario with a fact
The possible scenarios are:
1) Column1--->Column 3 and Column2 -----> Column 3
Both Column1 and Column2 have their own logical tables in BMM
2)
Column1--->Column 3
Column1--->Column2
In this case You have Logical table with 2 different sources Column1 and Column2 using column mapping.
you can go for multiple logical sources in this case, based on column selection tables in the join condition

Similar Messages

  • Multiple foreign key joins between two tables

    Hi,
    I have a question about building a repository.
    I have a date dimension and one fact. The fact table has about 10 foreign key columns that link to the date Dimension.
    In this case should I create 10 aliases to create joins in the Physical and BMM layer or is there any other way to handle this situation.
    I am asking this question because 10 aliases can get very confusing for me at the later point of time while creating reports.
    Using OBIEE 10.1.3

    Hi
    I have a follow up question on this.
    I am okay with not seeing the different date tables under the Subject area. Even if it just shows a it as a Simple DATE Dimension I am good with it.
    In this case which is the efficient way, creating 10 aliases or creating 10 joins in the physical layer. I just figured out that we can create multiple joins between the same set of two tables but do not know how will that effect the way BI server works.
    Please help me in understanding this concept.
    thanks
    This request id for OBIEE 10.1.3

  • Regarding Foreign Key Joins

    Hi Gurus,
    I learnt that its not practical to use Foreign Key joins in the Business Model and Mapping layer. Why is that, i tried a simple Sample Star schema that uses only Foreign Key joins instead of Complex Joins in BMM Diagram, The RPD is consistent and is running successfully on BI Server.
    What is the drawback if i did so and why is not recommended?
    Regards,
    Sreekanth.

    Complex joins allow the BI Server to choose the best route between logical tables in the BMM layer based on the phyiscal joins that exist for the Logical table sources within those tables.
    With an FK join your limiting the choices BI server has when it generates the ideal SQL to accomplish the request.
    The complex joins allow :
    easier config,
    BI Server to navigate across different levels (for example Day and Month) when using different level facts.

  • The order doesn't work in my view with join between two lists. And now?

    Hi,
    I work with sharepoint 2010.
    I did the join between two list follow this
    post.
    I did it and everything is ok, but the order doesn't work.
    What can be it?
    Thanks
    K2rto'4 - Analista Sharepoint
    "Hoje melhor do que ontem, amanhã melhor do que hoje!" 改 善

    Hi,
    I've two lists in my view with join. The list A and the list B.
    I'm ordering the view with the column list A.
    The column list A it's a column for type lookup to list B's column.
    In my view i'm ordering with the column list A of type lookup.
    The view with join is not ordering in order growing.
    I want the view will be ordering by order growing.
    Do you understood?
    Hugs
    K2rto'4 - Analista Sharepoint
    "Hoje melhor do que ontem, amanhã melhor do que hoje!" 改 善

  • Inner Join between two big tables

    Hi There,
    I have a situation where in which I have to write an inner join between two table of the order of (30k to 60 rows).
    My query is as simple as,
    select A.a,B.b from A ,B where A.a = B.b;
    N.B: a and b are of type varchar
    But the problem is it takes nearly 15 mins to run. Is there any better way of doing an inner join between such bigger tables?
    Thanks,
    Jose John.

    Thank you all for your help.....Indexing works....:)
    --JJ                                                                                                                                                                                                   

  • Joins between two schemas

    Hi
    I need data from two different schemas. Can develop one subject area taking 2 tables from 2 different schemas or we need to have these two tables from one schema only ?
    Can any one help on this.
    Thanks
    Manu

    Hi,
    When you try to create physical join between these two tables of different schemas.
    The join condition is REGION.REGION_CODE = REGION.REGION_ID
    Note: The table name is same in both the schema.
    Now as soon as I click on Ok, it gives an error.Because You can not create join between two tables with the same name.
    So, create alias for these two tables and try to create the join with the same join condition.
    It allowed me to create join perfectly. I moved ahead with the creation of Subject Area based out of these two tables.
    Opened Presentation Services, selected few attributes from both the Presentation folders.But it gave ODBC error as :
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46036] Internal Assertion: Condition m_CountFields == static_cast<int32>(m_ColumnNameVector.size()), file .\Src\SQCSCacheStorageListStream.cpp, line 221. (HY000)
    Now in order to fix that issue, rename the base tables as Schema1_name.REGION and Schema2_name.REGION in the repository.
    Reload the rpd and run the same report, it would give correct result.
    But instead you can have the tables in the same schema for better maintenance activities.
    Hope this solved your question.
    Regards
    MuRam

  • Subject: How to do join between two tables using something like SE16

    SE16, SE11 provide form based interface query information from a single table. Is there a way to do join between two tables without creating an infoset erc? I am looking for something similar to sql join but in SAP BI 7.0
    Thanks.

    Hi
    Pls look into below links. Hope this helps you.
    1. http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb45bf455611d189710000e8322d00/content.htm
    2. http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb45a5455611d189710000e8322d00/content.htm
    Regards
    Sirigiri

  • How to create a Foreign key relationship between 2 user defined tables...

    Hi Folks,
    I have created two user defined tables... Where in i want to create foriegn key relationship between the 2 tables.... Can anyone guide the step by step procedure to do this scenario...
    Any help would be highly appreciated...
    Thanks

    Hi
    1.  In the 2nd table call the field of the 1st table which is a primary key.
    2.  Give the same field and dataelement name.
    3.  Select that field and then click on the foreign key field icon which is beside Search Help button.
    4. Then give short text, and the 1st table name.
    5. Then in the below box give the 2nd table name and 2nd table field name which you have called from 1st table.
    6. Then click on copy, then u will be able to see Check table name and check table field name beside foreign key table name.
    7. Then again click on copy.
    Regards
    Haritha.

  • Doubt on creating join between  two tables

    Hi friends,
    I have two tables , ekes and eine
    my requirement is  if Ekes-ebtyp = 'X1'.
    then Ekes-ebtyp = EKES-EINDT + Eine-j_3alitra.
    the doubt is there is no primary key common between this table . actually in my whole program for purchase order i used EBELN for extracting details when two tables are involved . in this two tables no two primary keys are common to extract data ...is there any ways please suggest..
    the code i wrote is
    loop at li_ekes assigning <fl_ekes>.
    read table li_eine assigning <fl_eine> with table key (here i need to give some unique fields to join these two fields please guide me which field i can use.).
    <fl_ekes>-ebtyp = <fl_ekes>-EINDT + <fl_eine>-j_3alitra.

    Hi,
    Both tables have field EBELN in common.
    You can use it to extract data from both.
    Hope this helps.
    reward if helpful.
    Regards,
    Sipra

  • How to insert a local member in a column between two different nested row dimensions

    Hi Experts,
    We have a report which has two dimensions in rows with nesting. The dimensions are PROGRAMS and ACCOUNT.
    I have attached the layout of the report.
    We need to have a column for local member in between Col A and Col B, wherein we have to pull the long description of the program.
    We have long description of programs maintained in a property of PROGRAM dimension
    So if we can insert a column between Col A and Col B, we can have a local member in it with formula "EPMMemberProperty" refering to Col A
    Currently we are are not able to insert a local member in between Col A and Col B in EPM 10 SP 14 version because its not a data range
    I remember we used to do it in BPC 7.5 using expansion ranges to insert a blank column. So I believe similiar thing can be done in EPM 10
    I have tried the option of VBA macro to insert a column before Col A and populate the long description and then hide Col A. It works. But I dont want to complicate it with Macro, and want to use EPM functionality to achieve the same.
    Please advise if this is possible with BPC 10 to have a column for local member in between Col A and Col B.
    Thanks a lot in advance.
    Regards,
    Shiva

    Hi Sathish,
    Thanks a lot for replying. Since I had to insert the local member in between two dimensions, I couldnt use the position option in the local members. Because positions were staring from the data range.
    How ever I have tried the suggestion given by Varaprasad and Bishwajith above and it worked.
    Thanks,
    Shiva

  • Outer join between two Contexts not working

    Hi,
    I have two contexts. A Context and B Context. To define hierachy or to show the both contexts data in single table/report in Web-I, i joined main tables of both contexts with a join. In those main two tables i want to show the table1 data irrespective of corresponding data exist in second table.
    To solve that i tried LEFT/RIGHT outer joins but nothing solved my prob. Because of those were in different context, I suppose. But it's not the same case when i work within a context (Single).
    Hope you got my prob now...!! Please help me out...
    Thank You!!

    Thanks Rohit for your reply.
    Nope, i can't cpntinue without having that join between those two tables. It must be there to get the exact results.
    It's not the prob of using Merged Dimensions... those are useful for another purpose. In my case those two Dimensions have different sets of data and have relation between those two.
    Like:
    Tab-1------Tab2
    Prod1------Cat1
    Prod1------Cat2
    Prod2------Cat3
    Prod3------Cat4
    Prod4------(NULL)
    As per requirement i should show the row for empty, in my ex it's in Prod4.
    If i use two SQL's prob:
    I can't relate those two and which have relation more over interdependent. Shows data as two separate tables in report.
    If i use multiple dataproviders:
    Prob Tab2 is has other joins with other tables to complete the project hierarchy.
    Hope you got it...
    Thank You!!

  • How to represent foreign key relationship between entity services

    Hi All,
    I have two entity services sbu and lob with remote persistensy(web service).In the sql database also i have these two tables.
    lob table attributes: lobId and lobName.
    sbu table attributes:sbuId,sbuName,and lobId.Here lobId a is foreign key referring to primary key of lob table.
    I want to represent this in the entity services.
    Can you plz tell me how can i do this?.
    Thanks
    Sampath.G

    Hi Sampath,
    to avoid creating a lob entity set the lobId and the timestamp attributes. because this is not smoothly done in the service browser, continue writing your UI.
    in old caf implementation this blog serie gives you a short overview...
    /people/raphael.vogel/blog/2006/05/18/writing-a-betting-pool-application-for-the-soccer-world-cup-2006-part-i
    /people/raphael.vogel/blog/2006/05/18/writing-a-betting-pool-application-for-the-soccer-world-cup-2006-part-ii
    /people/raphael.vogel/blog/2006/05/19/writing-a-betting-pool-application-for-the-soccer-world-cup-2006-part-iii
    /people/raphael.vogel/blog/2006/05/21/writing-a-betting-pool-application-for-the-soccer-world-cup-2006-part-iv
    Regards, Jens

  • Foreign Keys b/w two schema

    Hi grus
    is it possible to make a foreign key on a table in schemaA referenced by a table in SchemaB?

    For this you on will go to need the privilege 'references'.
    With the <schemaA>:
    grant references on <table_schemaA> to <schemaB>
    With the <schemaB>:
    ALTER TABLE <table_schemaB>
    ADD CONSTRAINT <FK_NAME> FOREIGN KEY
    ("column_schemaB") REFERENCES <schemaA.table_schemaA>
    ("column_schemaB") ENABLE;
    PS.: To substitute the terms that are between < > in accordance with its necessities.

  • Can we apply join between two internal tables?

    Itab has fields A,B,C.
    Data: begin of itab occurs 1,
             A  type I,
             B type I,
             C type I,
             End of itab.
    Jtab has fields A, I, J.
    Data: begin of itab occurs 1,
             A  type I,
             I type I,
             J type I,
             End of itab
    The common field between itab and jtab is u201CAu201D.
    Now I need to collect A,B,C,I, J in another internal table ktab.
    How should I be doing this.
    If I use a SELECT query with inner join between itab and jtab it says u201Citab is not a database tableu201D.
    How should I get the result  ktab with A B C I J fields?
    Please help, nay help will be highly appreciated?

    a®s wrote:
    >
    > sort itab_all by A
    > delete adjacent duplicates from itab_all comparing A.
    >
    >
    Do you have the above code in ?
    Here A is common field between both tables, first we are appending itab_1 & itab_2 into table itab_all then deleting the adjacent duplicates from itab_all. then we are reading itab_1 & itab_2 for possible matches and update the same values in itab_all
    so there will NOT be a chance of duplicates in itab_all

  • Joins between two tables generating Cartesian product

    Hi All,
        I am facing an issue in my report in which, I am getting mismatch as the two subsets which I'm joining is resulting in a cartesian product of individual subset's results. I am doing left join to join those two subsets. Please help in resolving
    this issue. 
    Thank you,
    Anu.

    Hi,
    Can you please post your script to see what is causing the cartesian product?
    This way it is difficult to help you.
    Regards,
    Reshma
    Please Vote as Helpful if an answer is helpful and/or Please mark Proposed as Answer or Mark As Answer when question is answered

Maybe you are looking for

  • Remote app on iPod touch and iPhone will not pair with Apple TV

    I have an iphone 3G and ipod touch with the remote app installed. I am unable to pair either with my ATV. When I go to remotes on my ATV and remote app on either ipod or iphone there does not appear to be an option to control apple tv.

  • One of my two Firefox windows is stuck halfway offscreen

    I'm running Vista, fully updated. I have two windows open in firefox, both with a dozen or so tabs. I was shifting them around, and accidentaly moved one about halfway off screen. Now it's stuck there, and whenever I try to move it back, it moves sli

  • Wher can I find the 8.1.7.2 patch for the Sun OS 5.8

    I need to find the patch for the Oracle 8.1.7.0 to take it to 8.1.7.2 and it is running on Sun Solaris 5.8. I have looked through the Oracle site but haven't found anything that looks viable. Thanks Ted

  • Plant Maintenance Activities

    Dear Colleagues We are relooking at the configuration in our SAP PM module. Am particularly interested in going with the best practice in allocating the correct Plant Maintenance Activity types to the correct Work Order Types for both Preventative an

  • ODSI support for return type "PL/SQL TABLE"?

    Hello! We are trying to connect our ODSI to an Oracle function with return type "PL/SQL TABLE". The ODSI "wizard" (used to create the physical data service) seems to understand the interface during creation, but when executed it fails. The ODSI serve