Expressions of QDR in OLAP cube measures calculated

Hello everyone,

I'm going crazy with a calculated measure in OLAP Analytic Workspace Manager, which is defined as an Expression of the following OLAP syntax:

NVL (CUBE. MEASURE1 [DIM1 = 'A'], 0) + NVL (CUBE. Date2 [DIM2 = 'B'], 0)

Where:

CUBE. MEASURE1 and CUBE. Date2 are not calculated measures, they are stored measures.

Dim1 and DIM2 are the edges of the CUBE, A and B values both exist in their dimensions.

In most of my questions, the calculated measure retrieves the correct results, when two members of the sum gets the data. But I have other cases, the calculated measure retrieves null!

In these cases, the calculated measure retrieves null when the CUBE. Date2 [DIM2 = 'B'] retrieves NO results. But I think that if none of the two expressions QDR retrieves no results, NVL function will be replaced by 0.

I read about this, situations where the QDR expressions get no result, by default, it throws and error and non-null o NA value. I found that there are 2 options of ORACLE DML that can manage this type of situation:

LIMITSTRICT = NO (http://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_options043.htm#OLADM384)

OKNULLSTATUS = YES (http://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_options077.htm#OLADM418)

I tried to create a DML function in the AW to define two options, first to NO, then Yes and returns 0, call this function with the instruction OLAP_DML_EXPRESSION ('MyFunc', NUMBER), but it does not work

Exchange monitoring calculated like this: OLAP_DML_EXPRESSION ('MyFunc', NUMBER) + NVL (CUBE. MEASURE1 [DIM1 = 'A'], 0) + NVL (CUBE. Date2 [DIM2 = 'B'], 0)

Please, I need a solution to bypass this, how can I catch these situations? Should I create a program of LMD to solve? Where I put this default option (LIMITSTRICT, OKNULLSTATUS) and put them in each measurement calculation?

Thanks in advance for the answer.

Great, you can not use a formula directly? No missing documents, such as observed earlier?

For example the formula =

IF (CUBE_MEASURE1 (DIM1 'A')) NAFLAG EQ 0 THEN CUBE_MEASURE1 (DIM1 'A') ELSE 0 + IF (CUBE_MEASURE2 (DIM2 'B')) NAFLAG EQ 0 THEN CUBE_MEASURE2 (DIM2 'B') ELSE 0

If this expression does not work in a single formula, set rather measures 3 Meas1/2/3...

(I generally prefer many formulas compared with olap dml program option in the mix...-online program looping on several other dimensions values is sometimes tricky to control/understand.)

Meas1 = IF (CUBE_MEASURE1 (DIM1 'A')) NAFLAG EQ 0 THEN CUBE_MEASURE1 (DIM1 'A') ELSE 0

and

Meas2 = IF (CUBE_MEASURE2 (DIM2 'B')) NAFLAG EQ 0 THEN CUBE_MEASURE2 (DIM2 'B') ELSE 0

Then set

Meas3 = Meas1 + Meas2

Tags: Business Intelligence

Similar Questions

  • Measures calculated in ROLAP cubes

    Hello

    Is it possible to create a measure calculated in ROLAP cube in OWB (all as MOLAP cubes)? -is the only way just to use the appropriate sql query?

    Is it possible to use the different aggregation for different measures in ROLAP cubes method (as in those MOLAP)?

    Thanks in advance

    Peter

    Hi Peter

    You could have a virtual column with a calculation in the table. OWB supports this design OWB 11 GR 2, for previous versions, you must manually change the table after its deployment. The aggregation must be the same for each ROLAP.

    See you soon
    David

  • How can I create a logic reports OLAP Cube in AWM

    Hello

    I created several cubes, but now the client wants to have a cube created report so that we can report in a cube. Can someone tell me please to some guidance on how to create a logical cube.  Thanks in advance

    Its a simple idea... a bit like a layer of sql-opinion on the data stored in sql tables.

    I just tape a few points quickly.  If you do not understand it, feel free to post more questions.

    Lets say, you have the following stored cubes where data has been loaded and grouped.

    Designed by DIM1, DIM2 and DIM3, DIM4, TIME CUBE1 (with stored measures meas1x, meas1y, meas1z)

    CUBE2 (with meas2x, meas2y, meas2z stored measures) designed by DIM1, DIM3, DIM5, 6 TIMES

    CUBE3 (with meas3x, meas3y, meas3z stored measures) designed by DIM1, DIM2, DIM3, 6 TIMES

    Now you create a cube considered, lets call it RPT_CUBE

    RPT_CUBE must be dimensioned by all dimensions. This is the important point.

    It will be only calculated measures, NO measurement stored.

    Create a base (calculated) measure in RPT_CUBE that points to a stored measurement.

    So, for the stored measures 9 above, you will have 9 measures calculated in RPT_CUBE.

    Other measures (such as time) will be created by using these basic measures in RPT_CUBE.

    The properties LOOP_DENSE and LOOP_VAR parameters are critical for each measure in RPT_CUBE.  Often that's correct, but I have seen cases, when it is not set correctly, so I had to manually fix these two properties for measurements in my RPT_CUBE.

    When you query RPT_CUBE measures, make sure that WHERE the conditions are met for all dimensions.

    The value of the dimension of topancestor of a hierarchy, if it is not necessary in the query.

  • 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

  • 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.

  • 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.

  • 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

  • Expression of variable QDR in OLAP

    Hi all

    Am very new to olap and bear nicely to the simplest questions, so I have a measure called the expression using below

    OLAP_DML_EXPRESSION ('SCEN_VIEW_PRG (SLS_GROSS_SU)', DECIMAL)

    where SCEN_VIEW_PRG is a custom program as below

    -SCEN_VIEW_PRG

    argument text T_MEASURE 'measure full name including the name of the cube

    text variable T_FORM "name of the formula.

    variable decimal D_RETURN "return value".

    trap on ALLDONE noprint

    T_FORM = joinchars ('SLS_CP_', T_MEASURE_ID)

    switch SCENARIODIM

    do

    case 'L1_1 ':

    D_RETURN = & T_MEASURE

    breaking

    case 'L1_2': 'LY '.

    D_RETURN = LAG (SLS_CP_M1, 1, TIME, LEVELREL TIME_LEVELREL)

    "D_RETURN = LAG (& (T_FORM (SCENARIODIM 'L1_1')), TIME_CP_LAG_PRIOR_YEAR, TIME_CP, LEVELREL TIME_CP_LEVELREL).

    D_RETURN = & (t_form)

    breaking

    doend

    ALLDONE:

    return D_RETURN

    I am facing problem to line 13, i.e. D_RETURN = & T_MEASURE

    When I write D_RETURN = T_MEASURE it works, but it does'nt work when I write D_RETURN = & T_MEASURE it gives no error, but it does not also return a value, is - the correct syntax for the QDR variab

    the fine expression suggesting

    Thank you

    Prateek

    Hi David,

    I think the argument in your example is not correct.  For example, it seems that the parameter that you pass to SCEN_VIEW_PRG may be the issue.  Given that the qualifier '&' means you want to evaluate the content of the variable T_MEASURE not the variable itself, you can switch to OLAP_DML_EXPRESSION ("SCEN_VIEW_PRG ("SLS_GROSS_SU")", DECIMAL).  Note that single quotes escaped around the parameter to SCEN_VIEW_PRG.

    If you don't surround your parameter with single quotes then you shouldn't user the '&' in front of T_MEASURE, because in this case, you DO not want to evaluate the variable T_MEASURE.

    Hope this helps,

    Ken

  • simple measure calculated in olap 10g

    Hello
    I have three measurements A, B, C, with the same dimensions. I would like to create a calculated measure (formula) Z where Z = A - (B + C).
    How can I create in olap 10g?
    Thank you.

    If you want to change appears in the expression text, then you will need to follow the xml approach. Take the XML of the measure and modify and replace the expression earlier with the new expression, and then import back.

    Thank you
    Brijesh

  • measures calculated in awm

    Hello

    I have not used in AWM calculated measures so far. I have the duration stored as. Now I need to calculate the average duration per month as a calculated measure. When I chose to create new calculated measure, I find these types of calculation: simple math, rating and sharing, user-defined expression and olap dml expression. I don't know what kind of calculation to use for my case and how to use... ??

    can anyone help me pls on this?

    Suppose that:
    (1) your level of TIME dimension are DAY-> MONTH-> standard QTR-> YEAR, with the help of the Gregorian calendar.
    (2) the name of your cube is CUBE1, and name of the stored measurement is DURATION
    (3) measure of TIME is charged at the level of the DAY and its aggregation is SUM
    (4) TIME dimension has an attribute TIME_SPAN

    Create the calculated measure AVG_DURATION by using an OLAP Expression Syntax, like:
    CUBE1. DURATION / 'TIME '. TIME_SPAN

    So when you look at data level DAY, then AVG_DURATION will be equal to LENGTH/1
    and when you ask (lets say) JUNE data level, then AVG_DURATION will be automatically TIME/30
    for data at the level of Q2, then AVG_DURATION will be LENGTH/91
    etc.

    You can add a CASE statement, if you only want to display the data at the MONTH level and NA for other levels.

  • The cube measures

    Hi people,

    I'm fairly new Oracle OLAP & AWM and currently in the process of designing cubes. In this context I would ask your advisor on the underside.

    We can map the measures in the cube to multiple fact tables? will know the bottom is possible.

    A fact - D1 and D2 as dimensions. M1 as
    Fact B - D1 and D2 as dimensions. M2 as a measure
    Cube - D1 and D2 as dimensions. M1 and M2 as a measure.

    Although the two fact common dimension tables, I shouldn't join the two of them directly because we will miss the lines.

    See you soon...

    Hello

    Creating cube 1-> from from-> fact 1
    Cube 2-> from from-> fact 2

    then creation cube 3 including common fades and no aggregation not defined on them. cube 3 is not any measure. We have only calculated measures that will point to cube1.measures and cube2.measures. Cube3 is not all mappings.

    Kind regards

    Published by: 866099 on October 6, 2011 05:13

  • OLAP cube loading

    Hi I am new to the use of OLAP. I use Analytic Workspace Manager. I created a cube and now I'm trying to load the cube. I get this error and I have no idea what it means. Any help would be greatly appreciated.

    Thank you

    Caused by: oracle. AWXML. AWException: * Error occurred: validation of the mappings of measurement error. Measure the expression key to PVPERIOD. Dimension of the DIMENSION, CHECK_REGISTER group mapping. MAPGROUP1. There is no such thing as CUBEMAPGROUP.

    usually this error occurs when the mappings for dimension/cube not done correctly. After creating the dimension/cube, you must match the source table/view to load data in AW.
    Make sure that all your dimensions and cubes are correctly mapped.

  • OLAP cube can load remote database?

    Sorry, since always, I worked with Express / Oracle OLAP. If I want to build a cube in a base of data, is able to load data from a different database AWM? Or do I have to build the cube in the database even when the source is?

    Thank you!
    Scott

    You can load a local table or view. The simplest approach is to define a view in your AWM database that selects from the table in the second database. You map your cube on the local display.

  • How to achieve the extraction of 11g OLAP CUBE to relational source of OBI

    I have several sources for working with OBIEE. Can anyone provide the info how to configure drill down in the RPD (METADATA)? My highest level based on OLAP 11g cube while the level of detail is a relational source.

    Thanks in advance!

    N ° you must drag and drop the physical layer all THE columns over the table in the logic layer olap ROLAP (from made from the dimension).
    Then in the source of logical fact table, you will find two tables (The ROLAP and the MOLAP) and on the content tab, you need to know on how to use them.

    OBIEE occur only one query on the ROLAP and MOLAP server. You must then have ALL your logical dimension columns mapped on two physical columns (one for the ROLAP) and one for the MOLAP.

  • 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.

Maybe you are looking for

  • 10 IOS iPad keyboard

    The keyboard seems to float up midscreen in IOS10. I noticed that in some applications, including the words With Friends, the keyboard chat window actually covers the writing line, obscuring what you type! I don't know if it's a glitch, IOS or an app

  • "D" created automatically during the installation of Win 7?

    Hello My wife has a Toshiba laptop, bought refurbished, with Win 7 Home Premium installed. Windows Explorer shows 2 partitions on the hard drive, "WINDOWS(C:))." "has the OS installed on it and"Data (D :) '. "has the necessary information, when used

  • Run R12.2 EBS Autoconfig

    Hi allRuns the same process with 11i, R12.0, R12.1 and R12.2 autoconfig?Thank you very much.JC

  • Two questions about the color of Lumetri (workspace color)

    The first question:Let´s I have three clips on the timeline, left to right, A clip, clip B and C clip. If I place the CTI to clip B and then move on to working color space that I can easily do magic with color Lumetri in the Lumetri color Panel. But,

  • Hello [requirements for the first + After Effects]

    Hello, I want to know if my computer would work with premiere and AfterEffects on my computer.The specifications are: CPU i5-3337U Intel (R) Core (TM) @ 1, 1, 80 GHz 80 GHz 4, 00 GB 64-bit x 64.[Title edited for clarity... MOD]