Two columns referncing one dimension

Hello, I'd like to have two columns in a fact which are connected to the same dimension. Is this possible in OWB and how ?
Thanks !

You may open two Key Lookup and select the same dimension twice and then use two different columns in lookup condition.

Similar Messages

  • 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

  • Need to compare values in two columns of one table against values in two columns in another table

    Hi, as the title reads, I'm looking for an approach that will allow me to compare values in two columns of one table against values in two columns in another table.
    Say, for instance, here are my tables:
    Table1:
    Server,Login
    ABCDEF,JOHN
    ABCDEF,JANE
    FEDCBA,SEAN
    FEDCBA,SHAWN
    Table2:
    Server,Login
    ABCDEF,JOHN
    ABCDEF,JANE
    FEDCBA,SHAWN
    In comparing the two tables, I'd like my query to report the rows in table1 NOT found in table2. In this case, it'll be the 3rd row of table one:
    Server,Login
    FEDCBA,SEAN
    Thanks.

    create table Table1([Server] varchar(50), Login varchar(50))
    Insert into Table1 values ('ABCDEF','JOHN'),('ABCDEF','JANE'),('FEDCBA','SEAN'),('FEDCBA','SHAWN')
    create table Table2([Server] varchar(50), Login varchar(50))
    Insert into Table2 values ('ABCDEF','JOHN'),('ABCDEF','JANE'), ('FEDCBA','SHAWN')
    select [Server] ,Login from Table1
    Except
    select [Server] ,Login from Table2
    select [Server] ,Login from Table1 t1
    where not exists(Select 1 from Table2 where t1.[Server] = t1.[Server] AND Login=t1.Login)
    drop table Table1,Table2

  • Putting two columns in one

    Hey Guys,
    there is my next question on sql.
    It is possible to put two columns in one and when, how do I implement it? If there is an opportunity, may I asked to explain it on a example. =)
    best regards
    wderr

    You can use concatenation:
    SQL> create table a (a1 varchar2(10), a2 varchar2(10));
    Table created.
    SQL> insert into a values ('str1','str2');
    1 row created.
    SQL> select a1, a2, a1||a2
      2  from a;
    A1         A2         A1||A2
    str1       str2       str1str2
    1 row selected.Max
    [My Italian Oracle blog| http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/]

  • Getting data of two columns in one column

    Hi,
    I need to show data of two columns in one column, I also want to insert space between the data of both the columns in the output
    can i use something like this ?
    (IMPORTER_NAME+' '+IMPORTER_ADDRESS) as "Location"

    872435 wrote:
    Hi,
    I need to show data of two columns in one column, I also want to insert space between the data of both the columns in the output
    can i use something like this ?
    (IMPORTER_NAME+' '+IMPORTER_ADDRESS) as "Location"You can either use the CONCAT function or || -
    SQL> select 'Hello'||' '||'World', CONCAT(CONCAT('Hello',' '),'World') from dual;
    'HELLO'||'' CONCAT(CONC
    Hello World Hello WorldHTH
    David

  • Can I make two column in one slide?

    Hello, Everybody, I want to know about can i make two column in one slide. One column is demonstration and second column is to make the assessment that is teaching from one column. I can make one slide is demonstration and second is making assessment. But I don't want to do that for the learners. The learners can learn from the one column and can make assessment in the second column. Is it OK or not. Please give advice. Thanks!!!

    Hi GreenLands,
    Having both demo and assesment action in one slide is not possible in captivate. The learner should watch the full demo and then be tested through assessment or training.
    Thanks
    Devraj

  • Two columns in a fact referncing one dimension

    Hello, I'd like to have two columns in a fact which are connected to the same dimension. Is this possible in OWB and how ?
    Thanks !

    You may open two Key Lookup and select the same dimension twice and then use two different columns in lookup condition.

  • Joining Two facts with one dimension

    hi,
    Hello Experts,I am reporting out of 2 fact groups.
    Mailing History and Booking.
    The only common dimension between the 2 is the Person Dimension. I have created the hierarchies and defined the aggregation content in the LTS.This helps me in reporting using any column from the Facts or any one dimension from either of the fact groups. But if i select 2 or more dimensions , one or more from each fact group , then the report gives and error. A general error has occurred. [nQSError: 14026] Unable to navigate requested expression: MailingHistory Campaign.Campaign Name. Please fix the metadata consistency warnings. (HY000)
    For Example : BookingDim--BookingFact-MailingHistoryFact (ok) MailingSourceDim--BookingFact-MailingHistoryFact works (ok) but BookingDim--BookingFact-MailingHistoryFact - MailingsourceDim (Fails ).
    When i am applying the filter from the fact 1 . i am getting this error.(which is the column in the second fact table 2).I checked all the joins in the BMM layer.
    Please help me!!!
    Thanks,
    Surya

    Surya did you set the levels properly for two fact tables and also for metrics.
    When ever you are using two fact groups with non confirmed dimensions you have to make sure all the content levels set for the fact tables and as well as for metrics.
    in your fact tables/ metrics - For related dimensions set the level to Detail. and for the non related dimension set the level to Total. This way obiee server will understand what is related dimension and whats not related..
    hope this works for you.

  • Retrieve of data from two columns into one column

    For eg: i have a data in a table with columns A & B of same size
    A B
    1 2
    2
    3 1
    4 2
    5 3
    6 5
    7 1
    8 4
    9
    10 8
    Through a select i want the output of my data in one single
    columns, Well I can do this by using union.
    But my output should be like
    if I select by condition where A=2
    my output should be
    2
    1
    3
    7
    4
    because all these numbers are linked with 2 how do i do this
    because it is like searching the number 2 in two columns and wherever this number 2 is linked i should get all the data relevant to it.
    Hope u got my point what i exactly want
    Can anyone help me it is quite urgent.
    Regards
    Vamsi Mohan

    i do not a concatenated data
    i have a data in a table with columns A & B of same size
    A B
    1 2
    2
    3 1
    4 2
    5 3
    6 5
    7 1
    8 4
    9
    10 8
    if my where condition is 'where A=2'
    my output should be
    1
    2
    3
    4
    5
    6
    8
    10
    i want my query to search as loop so that it keeps on searching
    for related data as in my case it is
    2 is linked to 1
    1 is linked to 3
    3 is linked to 4
    my query should keep on seaching for linked numbers till
    it does not find any mathing linked numbers
    and the resulted output should come in one single column

  • 2 date columns and one dimension hierarchy

    Hi,
    I have one question in OBIEE 10g.
    I have one dimension table with 2 date columns (insertedOn, updatedOn)
    I created insertedOnYear, insertedOnMonth and updatedOnYear, updatedOnMonth columns from my date columns.
    I have hierarchy
    Year -> Month -> Day for that dimension table
    and I would like to dril down both columns insertedOnYear and updatedOnYear
    insertedOnYear -> insertedOnMonth -> insertedOn
    updatedOnYear-> updatedOnMonth -> updatedOn
    I am able to do it only for one of these columns and not for both.
    I can place both columns to appropriate levels, but drilling doesn´t work as I want
    Can you tell me how to solve my problem?

    Oops, I was talking about 11G. Ok no problem. Do this. In the physical layer, cretea 2 alias tables. Both pointing to the table where you have these 2 fields. The put everything in your BMM. There create the 2 hierarchies using the 2 different tables (that will point to the 2 alias tables create in the physical layer). This will make them unique.

  • Blank page showing when changing from two column to one column pages

    This is the scenario:
    Document with two master pages - Page1 has two content areas - left column and right column, Page 2 has one content area the full page width named 'FullPage'
    One page set named PageSetOne - with multiple subforms, each with Pagination setting of Following Previous and Continue filling parent.
    Second page set named PageSetTwo - this has a single subform with Pagination setting of place on Page2. The child subform has itself a subform with Pagination setting of Place in Content Area 'FullPage'.
         This page set is initially set to be Hidden.
    Third page set named PageSetThree - this has a single subform with Pagination setting of place in Page 1 and a child subform with Pagination setting of Following Previous.
    [Obviously I am simplifying names and content here].
    The problem is this: when in design mode, there is a blank page showing at the end of the document whenever there are sufficient subforms in PageSetOne such that subforms are displayed in the right hand column.
    When subforms are removed so that nothing is showing in the right hand column then the blank page goes away.
    I have put a marker subform immediately after the last subform in PageSetThree and can see that the blank page is showing after this.
    Also, the following problem:
         When in preview mode, the extra blank page at the end does not display (which is good)
         BUT if the hidden PageSetTwo is made to be visible AND there is content showing in the right hand column prior to it,
         THEN a blank page is displayed just before the newly displayed PageSetTwo page (a single column page on Master page Page2).
    I have tried every combination of Pagination Place before and after settings and can find no way to avoid the blank pages.
    Does anyone have a clue as to what is going on and how I can avoid these blanks showing up?

    I have finally managed to solve this problem.
    The issue was not a subform extending too far out, it was a pagination setting, as Niall suggested.
    I created a blank document to analyse the issue closely, and lo, my new blank doc with all default settings, worked perfectly.
    So I revisited my forms and compared the pagination settings subform by subform.
    This is what I had to change to ensure that all pages flowed with no extras:
    PageSetOne (which is supposed to show using the two column master)
    set the top page Place = ‘In Content Area Leftcolumn’ and After=Continue filling parent
    All child subforms each with Pagination setting of Following Previous and Continue filling parent.
    PageSetTwo (to show in the full page column Master)
    set the top page Place = ‘In Content Area FullPage’ and After=Continue filling parent
    All child subforms each with Pagination setting of Following Previous and Continue filling parent.
    PageSetThree ( back to two column master)
    set the top page Place = ‘On Page1’ and After=Continue filling parent
    All child subforms each with Pagination setting of Following Previous and Continue filling parent.
    I discovered that the critical setting was for PageSetOne. The After setting needed to be Continue filling Parent
    Once I had those settings in order then the form performed as required.
    This has been a frustrating learning experience but at least ultimately successful.
    AJ

  • Two fact and one dimension table

    Hi folks
    i am new to this field ( 3 months ), my TL has given me one task i have to finish it up today itself, Can anyone one give me some idea how to implement
    req. The req is
    1. there are 2 fact and one dimension table is there, i have to create reports on Quaterly and monthly basis by using one dimension table.
    Can any one tell me what all are the steps in need to follow
    2.What is standalone and integrated systems?
    Regards
    Reddy

    Hi
    If u r having mapping keys for quarter level n monthly level then create a Alias for the dimension table.Use the original dim table for quarter level mapping and the alias dim for monthly level.
    Thanks
    Don

  • Showing data of two columns in one in the Query

    I have two masters with same structures only Key of master is different.
    i have created multiprovider on these masters which is used for query purpose.
    Here situation is that we have already loaded data in one master structure whcih is not tobe touched.
    we can only do chages in second master.
    Now in Multiprovider as two key fields for two masters are different we cannot map them in identification of multiprovider.
    Now we want only one field on selection screen and also in the report with data for both masters.
    can anybody help me in it.

    Hi
    You can use Constant Selection (Effect like Left Outer Join for different InfoObjects in a MultiProvider). In order to do that, please take the following steps:
    1. Create a Restriced Key Figure.
    2. In the RKF dialog, drag one of the characteristics (the one that is NOT related to the KF).
    3. Right Click on this Characteristic (context menu) and hit "Constant Selection".
    This should show you all values in the columns.
    Yaniv

  • Updatiog two column of one table ?

    Hi Guys
    i am Learning Oracle sql
    when am going to update 'place' of two members it does not updating, here is the querry
    employee Table
    EMPNO   EMPNAME       JOB            SALARY   PLACE
    1           san              employee       25000     africa
    2           tan              employee       30000     Africa
    3           pan              employee       35000     Africa
    4           sony            employee        40000     africai want to update place of employee san and sony
    i tried ths
    NOT WORKING
    sql> update employee
           set place = 'Africa'
           where empno = 1 and empno = 4;
    0 rows updated WORKING
    sql> update employee
           set place = 'Africa'
           where empname like 's%';
    2 rows updatedwhy 1st one is not working ?
    thanks
    Edited by: 978976 on Dec 27, 2012 9:43 PM
    Edited by: 978976 on Dec 27, 2012 9:52 PM
    Edited by: 978976 on Dec 27, 2012 9:55 PM
    Edited by: 978976 on Dec 27, 2012 9:57 PM
    Edited by: 978976 on Dec 27, 2012 9:57 PM

    978976 wrote:
    i did just like wat u saidThanks for the information.
    However the update statement you fired is incorrect, hence it did not update the rows:
    update employee
           set place = 'Africa'
           where empno = 1 and empno = 4;You cannot have an empno to be 1 and 4 at the same time.
    I think you wanted to update place to Africa for Employees with EMPNO as 1 and 4.
    Below will do the job for you:
    update employee
           set place = 'Africa'
           where empno IN (1, 4);
    This is same as saying
    update employee
           set place = 'Africa'
           where empno =1 or empno = 4;

  • Find many-to-many relationship between two columns in one query

    Hi All,
    How can I run one query to determine if Column1 and Column2 in the following table have a many-to-many relationship?
    Column1
    Column2
    Column3
    b
    x
    s
    b
    x
    t
    c
    x
    s
    c
    y
    s
    c
    y
    t
    Just by eyeballing it, we know there is, but in a real life situation, you cannot eyeball millions of records to make that decision.
    I am using Access 2007.  (SQL script that works with Access 2007 will be great, but script for SQL Server will be fine too.)
    BI Analyst

    Hi BI Analyst,
    Take a look at this code:
    IF OBJECT_ID('tempdb..#experiment') IS NOT NULL DROP TABLE #experiment;
    CREATE TABLE #experiment (c1 CHAR(1), c2 CHAR(1), c3 CHAR(1))
    INSERT INTO #experiment (c1,c2,c3) VALUES ('b','x','s'),('b','x','t'),('c','x','s'),('c','y','s'),('c','y','t')
    SELECT c1, c2, c1+c2 AS bind,
    COUNT(c1) OVER (PARTITION BY c1+c2) c1perbind,
    COUNT(c2) OVER (PARTITION BY c1+c2) c2perbind,
    COUNT(c1+c2) OVER (PARTITION BY c1) bindsperc1,
    COUNT(c1+c2) OVER (PARTITION BY c2) bindsperc2
    FROM #experiment
    What your question asks is if there can be determined a many-to-many relationship. A many-to-many relationship is logical relation comprised of a pair of one-to-many relationships. The code above shows you which relational pairing occur in these one-to many
    relationships. c1perbind (or c2) >1 indicates a one to many relation from that relational pairing, whereas the bindsperc1 indicates how many relations the individual c1 belongs to.
    Now look at this code:
    SELECT c1, c2, bind,
    COUNT(c1) OVER (PARTITION BY c1+c2) c1perbind,
    COUNT(c2) OVER (PARTITION BY c1+c2) c2perbind,
    COUNT(bind) OVER (PARTITION BY c1) bindsperc1,
    COUNT(bind) OVER (PARTITION BY c2) bindsperc2
    FROM (SELECT DISTINCT c1, c2, c1+c2 AS bind FROM #experiment ) Q1
    With the subquery reducing the set for the windows to operate on to distinct pairs the bindsperC1 and bindsperC2 will show count greater than one if they belong to a one-to-many relationship. When both are greater than 1 those rows are proof that the relationship
    between C1 and C2 is a many-to-many.
    If you're happy and you know it vote and mark.

Maybe you are looking for

  • Can't erase anything on an external hard disk partition of bootable backup ____error message -50 "Error in user parameter"

    I am using MACOSX 10.6 The data on the disk partition  on my Iomega 2Tb external hard disk drive (labeled "Bootable Backup") was written by Carbon Copy Cloner (CCC ver. 3.37) I have had problems with overwriting this using CCC, and I have also had tr

  • Contacts with multiple numbers under the same labe...

    i I have many contacts which have numbers saved under the same label. For example a contact like this: First name: A Mobile: 11 Mobile: 22 Telephone: 33 Telephone: 44 When I open Ovi Suite / Contacts / Contacts in E51 and open the abovementioned cont

  • Geo tagging in Nokia Photos

    Hi, I have Nokia N 82, v 31.0.016.  For some of my geo-tagged pictures, after syncing with Nokia Photos, if i want to see my geo-tagged picture in Show item in Map View, i am able to see the picture in Map view of Nokia Photos, but in Timeline view,

  • Using the text and not the value of a filed

    Hi there, I'm programming a pdf form using life cycle, I'm using the following script in a "SEND TO" button in order to email an XML file with the data extracted from the form: var emailAddress = F.P1.Line.rawValue; var veicle = F.P1.Vehicle.rawValue

  • Data retrival error while retrival

    Dynamic calc cannot allocate more than [48] blocks from the heap.Please increase the  CalclockBlock settings and then retry. This is the error i am getting when i am retrive the data in excel.i have increased CALCLOCKBLOCKHIGH: increased CALCLOCKBLOC