OLAP cube - complex join condition

Hi Experts,

I requires a complex join between the dimension and cube.

Requirement goes like this-

We have a dimension to the date level-
January 1, 2011
January 2, 2011
...
.. and so on.

The fact table is not a matching surrogate key, but it has valid_from_date and valid_to_date that are stamps.

I need to join these two to reach the condition readings - where dim.date between trunc (valid_from_date) and trunc (valid_to_date).

Is it possible/feasible? Enjoyed your responses.

Best regards, Marion

You should be able to set a condition like this in the field "Join Condition" of the mapping pane cube in AWM. You would need to qualify table names to be something like this

dim_table.date between trunc(fact_table.valid_from_date) and trunc(fact_table.valid_to_date).

The only restriction to this approach is that you will not be able to partition on the time dimension for this cube due to the complexity of the condition.

As an alternative, you can define a SQL view that joined your fact table in your time dimension table using the same condition. You map the cube on this point of view, in which case the restriction on partitioning goes.

Tags: Business Intelligence

Similar Questions

  • Join condition of cube and other mapping missing mapping

    Hi David,

    I have a strange problem... After the creation of cube mapping tables defning and physical objects joins and the change of my mapping intermittently disappears... Not being able to trace what's happening. Is this a known bug or nothing is done correctly?

    Enjoy your previous answer.

    Thank you very much
    Paiva

    A "mapping" is a term of olap product management which means that the cube is not mapped to the level the fact sheet. For example, suppose you have tables like this

    CREATE TABLE SALES_FACT
    (
      DAY_OF_SALE DATE,
      PRODUCT_ID NUMBER,
      UNITS NUMBER,
      COST NUMBER
    )
    
    CREATE TABLE TIME
    (
      DAY DATE,
      MONTH NUMBER,
      QUARTER NUMBER,
      YEAR NUMBER
    )
    

    Suppose you want to analyze the data only at the level of the MONTH and more. In this case, you must set a time of hierarchy which includes levels MONTHS->->-> ALL_TIME YEAR QUARTER and you would need to define a join condition between SALES_FACT and TIME of the form

    SALES_FACT.DAY_OF_SALE = TIME.DAY
    

    This is sometimes called a "mapping" because it maps data in the AW to a higher level than what is stored in the fact (for example, the MONTHS instead of DAYS).

  • Join physical & complex join

    Hello

    I'm little confusion when join physical use and join complex. Can we create a complex join in physical layer? If so, when it is used? and can we use physical join in layer MDB? If so when should I use? Can you please give me some examples.

    can we use physical join in layer MDB?

    You can also use physical joins in MDB to override the join in the physical layer, but only under very specific conditions.

    concerning
    Debo

  • Windows 7 - Excel 2010 - unable to connect to the OLAP Cubes SQL 2000

    Running 32-bit Windows 7 - Excel 2010 - unable to connect to SQL 2000 of the GreatPlains OLAP Cubes - message Getting connection refused actively.

    It works with XP and even load Excel 2010.  I can't find what I need to change in win 7.  I guess that's the firewall or driver settings.  I completely disabled the firewall and still no luck.  I also took the file to connect to the XP machine and tried to use it as an existing connection and still have the error.  I ran Excel on the Win 7 XP SP2, XP SP3 and still no luck.  I have spent hours reading and researching the issue and can not find an answer.
    I tried to change the OLAP service account and open all ports on the server.  Still nothing.  The error message will connect to the client computer and the server does not record demand, so I think that I don't yet get on the server.  I do not understand as well as if the message is actively refusing connection.
    I can run the cubes very well on the server and on the XP SP3 with Excel 2010 machine.
    I'm in my troubleshooting garnis.  There has been some problems, that I have not been able to solve in Microsoft Servers and this is one.  I know that there is an answer.  I'm just not see it.
    Thank you!!

    Hi Litiasheldon,

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    SQL Server (TechNet Forums)

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer

     

    I hope this helps.

  • CASE statement in a join condition


    Hello

    I'm stuck in this part of the code, where I use CASES in a join condition. I work in Teradata, so I can't use "DECODE".

    LEFT JOIN V610413. TEAM_ASSIGNMENTS your

    -C.firm_id = your. FirmId

    ONE BOX WHEN your. FirmId = c.firm_id THEN your. FirmId = c.firm_id

    WHEN your. FirmId <>c.firm_id THEN your. FirmId = 'no value '.

    END

    AND c.stateId = ta.stateId

    Please advice

    LEFT JOIN V610413. TEAM_ASSIGNMENTS your

    We'RE your. FirmId = CASE WHEN your. FirmId = c.firm_id THEN c.firm_id

    WHEN your. FirmId <> c.firm_id THEN 'no value '.

    END

    AND c.stateId = ta.stateId

  • How to build BI Publisher of Olap Cube

    I have a requirement on the construction of a report, but seems I am unable to meet customer's requirement by using OBIEE answers so I want to do this, use the BI Publisher. So I have a few questions.

    1. is it possible to convert a report of responses OBIEE created using an Olap Cube to BI Publisher?

    2. how to create a data model by using the Olap Cube?

    Thank you

    You can take the logical query of the report BI answers and allows to create a new report, BI Publisher.

  • Confused about the complex joins in joins Manager

    Hello

    I know that when we create join in the physical layer, we must use "foreign key" this icon,.

    and when we need create joins in the MDB layer, you need to use 'new joint complex. "

    so, what is the purpose of the complex joined in the Manager of joins? I'm so confused on this subject...

    Kind regards
    Anne

    Hello
    Please see the below a

    http://obiee11gqna.blogspot.com/2011/02/interview-questions-on-joins-in-OBIEE.html

    ---> complex join is that join in join where as two tables has no way join foreign at this complex time key is used

    --> Join complex:-join complex are used in the physical layer between two tables where ever who do not key primary and forgin key relationship.

    Foregin Key:-using the forgin key we can define the join between two tables. joins between is 1:M or M:M., if we want to define: many relationships we use the bridge tables.

    Thank you

    Deva

    Published by: Devarasu on October 18, 2011 10:27

  • Complex join, problems

    Hi guys!

    There is a select statement
    WITH t AS (
         SELECT 1 ID FROM dual)
         , t2 AS (
         SELECT 1 ID, 1 acc1 FROM dual UNION ALL
         SELECT 1 ID, 2 FROM dual)     
         , t3 AS (
         SELECT 1 ID, 1 acc2 FROM dual UNION ALL
         SELECT 1 ID, 2 FROM dual UNION ALL
         SELECT 1 ID, 3 FROM dual)          
    SELECT t.ID,
      t2.acc1,
      t3.acc2 
    FROM t, t2, t3
    WHERE t.ID = t2.ID
      AND t.ID = t3.ID     
    the result of this statement:
    id    acc1     acc2
    1     1     1
    1     1     2
    1     1     3
    1     2     1
    1     2     2
    1     2     3
    but I want to get this result:
    id    acc1     acc2
    1     1     1
    1     2     2
    1     null     3
    How could I achieve this?

    Thank you!

    Hi, Pavel,

    Pavel E. says:
    Ok. We will explain on the other hand:

    Please do not explain. Give more examples is good, but it is not the same thing to explain.

    ... Table t is 'main' (Board), tables t2 and t3 - charts of accounts. And I'm still a link t2 and t3 to t. This is why I want to get this result:

    id       acc1       acc2
    ------  -------   ------
    1     1         5
    1     2         6
    1     null         7
    2     3         9
    2       null        10
    3     4           11
    

    Sorry, I don't see why you want the results of these data.

    Why is that not the correct results?

    id       acc1       acc2
    ------  -------   ------
    1     1         6
    1     2         5
    1     null         7
    2     3         9
    2       null        10
    3     4           11
    

    Do you want
    the lowest acc1 joined the acc2 lowest (for the same id).
    the 2nd lowest acc1 joined the 2nd lowest acct
    ...
    the nth lowest acc1 joined the lowest acc2 n - th?
    If so, then you want what I call a Fixed price request . The ROW_NUMBER analytic function allows to assign numbers 1, 2, 3,... for t2 and t3 lines, depends on the question whether this line is the 1st, 2nd, 3rd,... value of CAC more down for each ID use this number (and not on the value brute accc) in the join condition.
    If sometimes niot t2 will have a row of mtching to t3 (but you want to include in any case) and at other times t3 will not have a row in t2 (but you still want to include it) then make the join, outer join full.

  • First time to create the OLAP Cube - problem of aggregation

    I'm new to OLAP technology and I want to build the first OLAP cube. I use the scott schema is:

    1-building dimension on the table 'DEPT' with a level deptno.

    2-building cube with a sal of measure on the table 'EMP '.


    Emp table

    DEPTNO SAL

    20 800
    30 1600
    30 1250
    20 2975
    30 1250
    30 2850
    2450 10
    20 3000
    10 5000
    30-1500
    20 1100
    30 950
    20 3000
    10 1300


    DEPt table

    DEPTNO DNAME

    10 ACCOUNTING
    SEARCH 20
    30 SALES
    40 OPERATIONS



    When I use the wizard to maintain and then display the data, that the sum of the wage is not accurate, it looks like

    sum

    all departments 5550
    accounting of 1300
    Researches. 3000
    sale 1250
    0 operations


    the values must be

    sum

    all departments 29025
    accounting 8750
    Researches. 10875
    sale 9400
    0 operations

    Why the aggregation of the values for the ministries are not accurate?

    Problem is visible in your table.

    Emp table

    DEPTNO SAL

    20 800
    30 1600
    30 1250
    20 2975
    30 1250
    30 2850
    2450 10
    20 3000
    10 5000
    30-1500
    20 1100
    30 950
    20 3000
    10 1300

    There are several Dept. not with different sal. In OLAP when you load this record then the last record just victories. That's why, if you look at it then you will see the value that you see is the last value is charged.

    To solve this, you should do a group (emp) deptno and sum (sal). Load the folders and you'll see the correct result.

    I hope this helps.

    Thank you
    Brijesh

  • OLAP cubes

    Can I get information on The OLAP CUBES in any link? pls fwd them...

    Hello

    A good starting point is the product Page of OTN:-http://www.oracle.com/technetwork/database/options/olap/index.html

    You should look at the "Oracle OLAP preview video" here

    There is also a view of all-white paper:-http://www.oracle.com/technetwork/database/options/olap/oracle-olap-11gr2-twp-132055.pdf

    And also links to the wiki and the blog below

    Thank you

    Stuart Bunby

    OLAP blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW OTN: http://www.oracle.com/technology/products/bi/db/11g/index.html

  • not able to create the logical complex join in the Administration of BI 10.1.3.4.1.

    Hello

    I am facing this strange question in the business model. While I am able to create the logic of foreign keys (which, according to the documents, should not be created), for some reason I'm not able to create logical complex joins.
    Actions:
    (1) manage / joined... joined by Manager: Actions / new / logic to join...
    (2) in the window "join logic", I select the tables, BUT I can not choose any column (her are shown in "Column," drank lists these lists seem to be disabled)... .and combo box operator is disabled

    Same result when trying to view "Diagram of logical table" and a "new complex joining" from one table to the other drag-and-drop...

    Doesn't seem to be something related to this particular business model, because now it happens to all business models I... funny that there are some former complex logic is associated with some of my old business models

    Any ideas?

    Thank you!

    Published by: alex.v on June 2, 2010 17:10

    Published by: alex.v on June 2, 2010 17:15

    Exactly!

  • try to find the join condition

    Hello
    Does anyone know what table in the working repository stores the join interface conditions?



    Thanks in advance
    REDA

    Raj,

    You can reach SNP_TXT, SNP_POP_CLAUSE and SNP_POP for the join conditions.

    Select sp.pop_name, snp_pop sp, spc snp_pop_clause st snp_txt st.txt
    where SP. I_POP = SPC. I_POP
    and MS. POP_NAME = "YOUR_INTERFACE_NAME".
    and SPC. I_TXT_SQL = ST. I_TXT

    See if that helps you.

  • Problem definition complex join in the physical layer

    I have a problem with the definition of a complex join in the physical layer.

    I have the following two tables:

    DIM_ORG
    Id_Org
    DT_Start
    DT_End
    Nom_org

    FACT_REV
    Id_org
    Recipes

    The tabel DIM_ORG is type 2 SCD. The current/active nom_org can be identified in the table because DT_End will be empty.

    Using the expression builder to configure the physical join I have entered the following expression:

    DIM_ORG. Id_Org = FACT_REV. Id_Org AND DIM_ORG. DT_End is null

    The expression builder accepts the syntax, but when I want to close the physical foreign key window I get the message:

    [nQSError: 30001] Only the columns, designated operators and predicates are allowed.

    Any suggestions how to solve this problem? Am just missing something? All I want to do is set up a join to pick up the active nom_org of my size.

    Thanks for your help!

    Make a foreign key in the physical layer:
    DIM_ORG. Id_Org = FACT_REV. Id_Org

    In the MDB, set the logical table org dim source/content in tab/where a part:
    DIM_ORG. DT_End is null

    Concerning
    Goran
    http://108obiee.blogspot.com

  • Join does not work for NULL values on the join condition

    Hello

    I have the following problem.

    SQL > select * from a;

    X Y
    ---------- --------------------
    1
    2
    3
    4

    SQL > select * from b;

    A:
    ---------- --------------------
    1
    2



    SQL > select f.x, f.y, s.b in f, s b
    2 where f.x = s.b (+);
    X Y B
    ---------- -------------------- ----------
    1 1
    2 2
    4
    3




    SQL > select f.x, f.y, s.b in f, s b
    2 where f.x = s.b (+)
    3 and f.y = s.y;

    no selected line


    So now if I include a join condition more where null = null situation arises, it's working now.
    Just tell her not to treat (1 and null) (1 and null) are the same.
    What is the solution. This is an expected behavior.


    Thank you
    Pramod Garre

    Pramod salvation,

    Another way to use the outer join is,

    Select f.x, f.y, s.b
    of a, f, s b
    where f.x = s.b (+)
    and nvl(f.y,0) = nvl (s.y (+), 0);

    Hope this will help you.

    Thank you
    Amit

  • Error when you try to validate the Join Condition

    In a map, I include a Carpenter and set the join condition. By clicking on the button post, I got the following error: "an error occurred during validation of the expression. Bad expression return type. »

    At first, we thought it was a problem when you create a new map. However, we returned to the existing mappings already validated successfully and each join now returns this error OWB. This occurs for each installed user with OWB. Mapping validate successfully in the end, but the join itself will not be validated during development.

    We currently use customer 10.2.0.4.36 OWB and OWB 10.2.0.4.0 repository. The latest patch is causing this problem? A way to solve this problem?

    Thank you
    Jennifer

    It's a bug, not a feature:

     09/17/08 03:26 pm
     Version & machine info: ========================
    OWB Client/OS: OWB 10.2.0.4.36/Windows
    OWB Design Repository Version: 10.2.0.4
    Runtime Repository Server Platform/Version: Windows XP/10.2.0.4.36
    Oracle Database/OS : 10.2.0.3/Windows XP
    SOURCE & TARGET on the same machine or different machine ? yes
    SOURCE database version/OS: 10.2.0.3
    TARGET database version/OS: 10.2.0.3 .
    Problem Description ======================== .
    Filter and Join Mapping Expressions always fail the Validation Check with the  following dialogue: "An error occured during expression validation. Bad expression return type". It does not matter what the expression is. . This is a new bug in 10.2.0.4. The same exppressions validate successfully in  10.2.0.3 . The code generates and deploys successfully after this message. . . . Reproducible Case (For All bugs) ================================= . 1)START OWB Design and connect  2)Import the uploaded OWB 10.2.0.4 MDL file: expression_validate_bug.mdl  3)OPEN the Project TESTCASE 4)OPEN The Oracle Module EXPRESSION_VALIDATE_BUG 5)OPEN the mapping EXPRESSION_VALIDATE_ERROR 8)Highlight the Filter 9)Open the Filter Condition Doialogue Box. 10)Select the validate button. 11)Observe error.
    
    BugNo: 7417869 vom 17.09.08
    

    Kind regards
    Detlef

Maybe you are looking for

  • Bookmark button to show Firefox when the Menu is visible

    Just updated to FF25 of FF22 and decided to have the toolbar of Menu visible, and everything was fine. Until I restarted FF and now my bookmark dropdown BUTTON disappeared. I go to customize and the button reappears, but as soon as I close the window

  • AutoFill URL quit &amp; blank tabs

    I was using Safari yesterday and had a weird thing to during use. AutoFill URLS suddenly stop working for no apparent reason. Also the tabs I did after that the problem began, the tabs were empty, i.e. no title in them as would normally occur. Quit S

  • Apple hardware test stations

    I'm going to buy second-hand Macbook Pro 15 "." Today, when I met with the seller, I tried to run Apple Hardware Test, but he stopped at 11 seconds and does not step. What can be the problem? Is this a serious problem, and that I should buy this comp

  • Unable to connect to the Internet wireless

    I can't access the internet wireless.   There is a light on the wireless button.   the manual States it should be blue.   do I need to buy a part or is there something I can do to fix this problem manually.  for now, I connect to the internet using a

  • Why can't I install Microsoft Silverlight? (2)

    I have download the Silverlight installation package and try to open it and I get this message: "The extraction failed. Cannot find a volume for the extraction of the file. Please make sure you have the appropriate permissions " I tried to follow the