BMM Logic to choose between two logical sources

Hi All - I am new to OBIEE and hope you can help me out with this problem.
I have a dim table (dimA) and an alias of dimA (dimB). Both of these tables are snowflakes off of two seperate "lookup" tables that join to the fact. I want to use dimA versus dimB based on logic, such as if the key to lookuptable1 does not exist, then use lookuptable2. I want to combine both tables into the same BMM logical table and presentation table. Is there way to build this in the BMM ( to choose dimA versus dimB)??
Any ideas is much appreciated!! Thank you!

What is lookup table here? is it lookup in 11g?
~ http://cool-bi.com

Similar Messages

  • ADF BC: Choosing between two identical DB schemas on application startup

    Hi,
    We want to provide users with capability to choose between two identical db schema.
    Anu idea how to do this ?

    Cvele wrote:
    Thanks a lot ! My pleasure.
    One question: datasource name entered by the user (on the login form) is a JDBCDataSource property value for the Application module Configuration (which connect trough JDBC DataSource), correct ?Yes.
    If so, then, we still must define two different sets of App Module Configurations, one for each DB schema, correct ?No. I'm not suggesting that you implement your UI like the demo that I forwarded. It might not be appropriate for your user to type in the datasource name, but the same code would be required to make the datasource name change work. Rather than getting the datasource name from the HTTPRequest and setting on the session where the custom sesison cookie impl and env info provider access you, for your solution that datasource value might come from some other place that the end-user doesn't directly type in.
    Otherwise:
    1. we cannot have two different datasource names, correct ?The example I forwarded should allow you to enter different JNDI names, so those would be different datasources.
    2. in case of one Configuration – what is a way to define (at deployment time) username/password for each of those two schemas ? Is this correct ?The username/password information is encapsulated inside the Java EE container when you define the datasource. The application doesn't know that information and doesn't have to provide it when you are using a JDBC datasource by JNDI name.
    On the other hand, what confuses me, is a fact that you say:
    “You wouldn't use different configurations” And really, you example attached to me have just one App module Configuration (datasource name = jdbc/scottDS), which connect through dataSource.
    Wondering what a user can enter as datasource name, except jdbc/scottDS ?I forget whether in my example I configured another datasource, but the user could enter the name of any available JNDI name for the datasource on the Java EE container.
    Again, I don't suggest necessarily that you let the end-user type it in, that was just how I built the demo since I quickly evolved it from the other dynamic credentials demo that accepted the username and password from the end-user.

  • Can I set FIREFOX to choose between two different homepages or websites?

    I know that Firefox will open any number of web sites when you start it. I want to have the ability to choose between opening a preset number of sites and just one. For instance at the beginning of the day I want all my banking sites available when I start. Later in the day I want to open only say, Google. Is there any way to have Firefox do that?

    Morning Coffee: https://addons.mozilla.org/firefox/addon/2677

  • Differences between two form source's

    Is it possible to show the code differences between two fmb's using PVCS ? Or is there some other method of doing this?
    Using Object list report in Oracle forms 6i , you can create a txt version of the form and compare these using a diff, but this is not an accurate method.

    I am using the FormsTool V1.0 from the previously mentioned http://www.orcl-toolbox.com This is a great tool for doing diffs on Forms and Reports. It has saved me several times in the past. Never had the need for the replace functionality but I am sure it is just a matter of time.
    Also great for doing impact analysis when someone wants to change something and wants to know how many forms/reports are impacted.
    Well worth having a copy for the $200 cost. No I do not work for orcl-toolbox ;-)
    Bob.
    Message was edited by:
    Bob C

  • How to choose between two subscriptions

    I have Office 365 World Minutes AND a 60 minute subscription to landlines in Brazil. When I call a number in Brazil, from Dallas TX, where I am now, I want to choose that subscription and use those minutes instead of the world minutes. I only want to use the World Minutes when I call a landline number here here in the States or another country. Because now, I ran out of World Minutes, but I still have 60 minutes to Brazil, and still Skype doesn't let me call a Brazil number!

    BIG DEAL getting a new status! What about the question I posted yesterday? I have a subscription with minutes I can't use because there's no way to choose which subscription minutes to consume while calling. I've been clicking all over this Skype Community looking for HELP, for an answer to what I posted yesterday, but nothing yet! What is this community for anyway? There are plenty of chats around, what I need is help, answers to a Skype issue! I'm paying for Skype service, I demand answers, I can't wait around for someone to see my posting and decide to help me!

  • Need your help choosing between 2 audio/midi interface for logic

    Hi, new member here. I just signed-up just to ask for your recommendations.
    I am looking to buy either the Cakewalk UA-4fx (http://www.sweetwater.com/store/detail/UA4FX) or Tascam US-122mkII (http://www.sweetwater.com/store/detail/US122mk2).
    Do you have any advice on which one to get (or a third alternative if you know something that's similar but better)?
    I'm mainly looking to record from my Roland Fantom X keyboard to my Macbook (using Logic Pro). The effects/filters on the Cakewalk device is not that important to me (since I can use software effects), but the quality of sound is the most important. Also, ease-of-use and compatibility with Logic Pro is important. The device also must include MIDI-in/MIDI-out in addition to 1/4 inch direct line in for my synth. (I plan on using Midi-In/Midi-out with MainStage in Logic Studio). Not looking to spend too much more than $100.
    I think I read in a review that even though the Cakewalk UA-4fx has 2 inputs, it can only record 1 at a time. Is the same true of the Tascam or can it record 2 simultaneous tracks?
    But in short, sound quality AND compatibility with Logic Pro and MainStage are the main concerns. Does anyone have advice on choosing between the 2 or a third option if you know of one?
    Thanks in advance!

    Hello -
    It's been suggested to avoid, if possible, USB-based audio devices. My humble suggestion? I'd consider MOTU products. I own three MOTU audio devices (2408-MK3, 828-MK3 & 828-MK2) and all work just fine. The 828-MK3 has both midi and audio inputs & outputs (including ADAT inputs/outputs).
    Other people will, no doubt, suggest audio devices from other companies. All probably get the job done well. But if you're thinking about recording a lot of instruments at the same time, it is my understanding that it is best to avoid USB-based devices.
    Good luck with your search and your decision.

  • Model uses wrong logical source for aggregation

    Hi all,
    i faced with problem when my model uses the wrong logical source to display pre-aggregated data. I have 5 logical sources with pre-aggregtaed data for my fact table and use two dimensions for mapping these sources:
    Dimension "Geography": Country->State
    Dimension "Periods": Year->Quarter->Month->Day
    source 1 (most derailed) - mapped to levels: DAY, STATE
    source 2 - mapped to DAY, COUNTRY
    source 3 - mapped to MONTH, STATE
    source 4 - mapped to MONTH (only this level)
    source 5 - mapped to MONTH, COUNTRY
    When i run my request - measure by DAY - it uses source 2, instead of using source 1 as i supposed. Can anybody explain me why?
    BR,
    Alex

    What am i understanding from here is BI server decided on the best way to get the job done. You are having day at source 1 and source 2. But source 2 is aggregated at higher level than the source 1 with respect to region dimension. So as a matter of fact the best source for day is source 2.

  • Reconciliation between two sources

    I have two tables A and B. There are around 5 crore records in table A. In table B i have a column called id. In all there are 25 ids and there are 6000 records for each id. So in total there are 150000. I want to join all the 5 crore records of table A with all the records for each id in table B one by one. i.e. 5 crore join with 6000 of id 1; then 5 crore join with 6000 records of id 2 and so on... can u please suggest a solution with optimized performance as it is a performance critical case?

    Unless your join is on columns that represent a unique key in atleast one of the tables, you will find that your result contains duplicates*.
    This is because SQL is multiset based and not set based.
    SQL is supposed to be declarative. In that if you want to join tables A, B on columns x,y,z then you just do so, and leave the optimiser to worry about the "optimal implementation".
    We all know in practise that this isn't the case, and this is why there are always clowns writing bad code and well paid jobs to fix the circus SQL.
    However in a join between two tables, especially one not involving unique keys, there is no logical optimisation, although you will additionally to DISTINCT your result which will degrade performance further.
    I suggest you revisit your table design and try to get some unique constraints on there, so that the optimiser may be enabled to do it's job for you and you may leverage the innate power of the set.
    *unless of course either of the tables is empty, or contains only one row. Or the join columns happen to represent an unenforced unique key, in which case you'd better get an actual constraint on there before someone breaks it.
    Message was edited by:
    The Flying Spontinalli

  • Aggregation rule ignored for Logical sources

    Hi,
    We are using materialized views as logical sources for our logical tables. These logical sources contain aggregated data at higher level for dimensions. However, we have a logical source at the most detailed level for the dimensions.
    Problem: We OBIEE hits the correct logical source based on dimensions selected in answers, it does not apply the default aggregation rule.
    For instance, if a measure has aggregation as AVG, then when the logical sources corresponding to aggregated tables are queried, OBIEE does not apply AVG function. However, it does apply the aggregation rule when it uses the logical source at the most detailed level.
    I have specified the aggregation content properly for every dimension.
    Any pointers to debug the issue will be helpful.
    Thanks,

    Click on LTS of Table - Column Mapping - Select the logical column - click on expression - Put your logic here. You will get Aggregation rule is enalbed for the column.
    Why ? -- Reason could be nested aggregation is not allowed. Aggregation on the normal column applied during query generation at run time. If you use that Agg.Measure to derive another Agg.measure server could not recognize it during runtime.

  • Create view link between two view objects (from programmatic data source)

    Hi Experts,
    Can we create a link between two view objects (they are created from programmatic datasource ; not from either entity or sql query). If yes how to create the link; ( i mean the like attributes?)
    I would also like to drag and drop that in my page so that i can see as top master form and the below child table. Assume in my program i will be only have one master object and many child objects.
    Any hits or idea pls.
    -t

    Easiest way to do this is to add additional transient attributes to your master view object, and then include those additional transient attributes in the list of source attributes for your view link. This way, you can get BC4J to automatically refer to their values with no additional code on your part.

  • ABAP logical source system

    dear all,
    how can i get the logical source system using abap into my update rule?

    Hello,
    I believe is SY-SYSID.
    Diogo.

  • To refer logical source in update rules

    Hi,
    I wanted to find the logical source system using abap into my update rule, is it possible.
    Help would be appreciated.
    Thanks,
    SD

    Hi,
    you have only to write something like this:
    case sy-sysid.
    * development system
        when 'dev1'.
            result = 'r3_dev'.
    * test system
        when 'test1'
            result = 'r3_test'.
    endcase.
    dev1 and test 1 are your bi systems. When data comming from one source system you can use this code in each transformation.
    Regards
    Andreas

  • One target table is loading from two different source but same columns but one source is in a database and other is in a flat file.

    Hope you all are doing good.
    I have a business issue to be implemented in ODI 11G. Here it is. I am trying to load a target table from two sources having same coulmn names. But one source is in file format and other is in Oracle Database.
    This is what i think i will create two mappings in the same interface using Union between the sources. But i am not sure how the interface would connect to different logical architecture to connect to two different sources.
    Thanks,
    SM

    You are on the right track, this can all be done in a single interface. Do the following
    1) Pull your file data model into the source designer and and your target table model to the target pane.
    2) Map all the relevant columns
    3) In the source designer create a new dataset and choose the UNION join type (this will create a separate tab in the source designer pane)
    4) Select the new dataset tab in the source designer pane and pull your source oracle table data model into the source designer. Map all the relevant columns to the target
    5) Make sure that your staging location is defined on a relational technology i.e. in this case the target would be an ideal candidate as that is where ODI will stage the data from both file and oracle source and perform the UNION before loading to the target
    If you want to look at some pretty screenshots showing the steps above take a look at http://odiexperts.com/11g-oracle-data-integrator-part-611g-union-minus-intersect/

  • Determine posting to an asset between two dates

    Hello all,
    How do you calculate the postings made to an asset between two dates?  I looked at the logical database ADA, but got lost in the source code.
    For example, if these posting were made to an asset between start & end date, the total I would want would be $300.
    Post $200
    post $100
    post $200
    reserse the 2nd $200.
    Thanks
    Bruce

    Dear Friend,
    Its very easy, simply execute transaction SQV and follow the below steps
    Quick Viewer Screen appers
    Create a new quick view
    Give it a name, data source as table join, press enter.
    Press Shift+F1, put the table name ANEK and press enter
    Again press Shift+F1, put the table name as ANEP this time.
    Press F3 or back button
    Explode the Documnet Header and select List Filed and Selection Field check box for 1. Company Code 2. Main Asset Number, 3. Asset Sub Number,4. Fiscal Year, 5. Sequence Nuber, 6. Document Date or any other date on the basis of which you want to check the postings (e.g. posting date, entery date, asset valud date etc).
    Press Execute button and enter.
    A Report selection will appear, put the company code other parameters you have with you inclduing the date and execute again.
    This will give you all posting between particular date.
    Hope this solve your issue.
    Thanks!!!
    Murlidhar Khatri

  • 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

Maybe you are looking for