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

Tags: Business Intelligence

Similar Questions

  • 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

  • How can I clear the measure data in a cube of 10g?

    Does anyone know a function OLAP I could call to reset the measures stored in the cube until I update the source data?

    I am new to Oracle OLAP, but I have some experience with Essbase and I have a little experience with Oracle PL/SQL. The database is 10g.

    Here's my problem. My dimensions and cube are mapped to the Oracle tables. I built a procedure Oracle, using DBMS_LOB / xml_clob feature to refresh my cube. The procedure has worked successfully first load the data. It works correctly when you change the amounts referred to in the source data. But it is possible that a file in my source data can be completely removed. When this happens, the deleted record dollars are always appear in the cube total after execution of the procedure. I had assumed the CleanMeasures = "true" setting would take care of this, but it's not.

    Thank you
    Nancy

    Here are the settings that I'm passing to BuildDatabase in my Oracle procedure:

    ' < BuildDatabase Id = "Action2" AWName = "BUDGET. "The JOB of the" BuildType = 'RUN '.
    RunSolve = "true" CleanMeasures = "true" CleanAttrs = "true" CleanDim = "true".
    TrackStatus = "false" MaxJobQueues = "0" > ';

    If you do a refill every time you issue following commands to delete the cube data.

    name of LMT at all
    allstat
    clear all of prttopvar

    You can encapsulate commands in pl sql procedure using the package dbms_aw.execute above and run it before the start of the charge of cube. Rather than delete the entire cube, you can erase only a partition also. Just take a look at the command clear in olap DML 10.2 reference.

    Thank you
    Brijesh

    Published by: Brijesh Gerard on August 10, 2010 06:47

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

  • 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

  • Calculated measure (OLAP language) of the calculated measure (Expression OLAP)

    Hi, once again!

    I need to create a calculated measure in the form of free type AWM (OLAP Expression, with the condition BOX) based on the results of another measure calculated again with the status of the CASE.

    For example, I have a few basic measure number of type 'BM1', 'BM2', "BM3" . And I create a calculated measure "BM_AMOUNT" that returns a number if 'BM1' is not null or 0 with the expression:

    CASE

    WHEN BM1 = 0 or BM1 is NULL THEN NULL

    ANOTHER (BM2 - BM3) / BM1

    END

    And then I create a different "BM_PT" calculated measure that returns points based on the value of the first expression:

    CASE

    WHEN BM_AMOUNT > 0 THEN 0

    ANOTHER 20

    END

    Now, when I want to create the second expression I get error: XOQ-01958derived measure is a type of invalid data or data of any kind.

    I found a way to work around this - I create first the measure with the NUMBER type and then change it to the expression of OLAP, and it works.

    However, the problem is when I export the cube and that you want to import on another instance. Then, I get the same error for this measure "BM_PT" and impossible to import the cube.

    The only way I've found is to edit the XML code and remove the measure, then create it manually as mentioned above (type NUMBER then change it), but it would be really nice if there is another way to knit this tour. This is so my question, is it?

    * The example is just to help understand what I want to achieve and what is not correct.

    Re: #2

    If you use OLAP DML, if CUBE_DDS is the name of the cube and DOOD is the name of the measure then the expression to use in the formula of the OLAP DML is _.

    Try with CUBE_DDS_DOOD, CUBE_DDS_F0150, CUBE_DDS_DO0, CUBE_DDS_SF0213, CUBE_DDS_F0180 etc., in the formula.

    In AWM, you can open the OLAP worksheet and check if the following expressions are valid by publishing a

    > CUBE_DDS_DOOD DSC

    order

    Formula:

    > If nafill(CUBE_DDS_DOOD,0) eq 0 then na to another ((CUBE_DDS_F0150 + (CUBE_DDS_DO0 + CUBE_DDS_SF0213) * 0.2) - CUBE_DDS_SF0213 - CUBE_DDS_F0180) / end CUBE_DDS_DOOD

  • calculated measures

    Hello
    I want to create a measure calculated for the below case... can anyone help me pls on this?

    I rank as a dimension which will have values: good, bad. and I cluster as another dimension which will have values: cluster1, cluster2... now, I need the number of grades on each cluster by month and the percentage of grades on each cluster. is it possible to find it in a position calculated. ?? I have not any stored measure that calculates the number of grades. So, it is possible to obtain a measure calculated for the case above?

    The CALL_ID should have two levels, CALLS and ALL_CALLS say that you should add to a new hierarchy in the dimension. Once you have done this, you can map CALLS from call_id column in your table and map ALL_CALLS the literal text "ALL_CALLS".

  • How to create a simple calculated measure?

    Hello

    I'm having problems creating a very simple calculated measure within the OBIEE administrator. Let's say I have a dimension 'product' with the 'product price' attribute and a measure "number of sales. I'm trying to define in the layer of "Business Model" of the measure calculated 'total sales. To do this I have defined as as a logical column with the phrase 'product price' * 'number of sales.

    But OBIEE isn't calculating what I expect, this makes a Cartesian product of the products and the grand total of the sales, which makes no sense. To relieve that I tried to define the measure as partners at the product level, then I correct the calculations but sales per product are not added together in a total.

    In any case it seems to be a very simple thing to do, but I was not able to find any documentation about it; 'Help' internal documentation is extremely limited. Is there another source of documentation that I don't know?

    Thanks for your help,
    Chris

    Calculate the physical level itself at the logical level

    I would be more careful with possible calculations on the physical columns since the results are different
    But in this case, it seems a good approach,

    -> chris3110.

    If you want to try with physical columns, you can find detailed instructions in the tutorial (http://download.oracle.com/docs/cd/E10352_01/doc/bi.1013/e10312/repository.htm), Section 4.6.3 OBI 'Create a calculation measure using physical columns'

    It will be useful,

  • Measures at different levels of concentration

    I'm working on a cube. I have 6 dimensions and aggregations are supposed to do at different levels for me to get the correct results, but I'm unable to implement this. I I have a fact Table equipped with all measures, I need, including sales, quantity, amount Total savings, Total etc edits. The challenge is that these measures require complex calculations, so I have a level of data in the fact table, but I think that this is the origin of the problem. How can I build complex measures calculated in the Olap Cube using a sql statement. What are the functions I should use to do this.

    The challenge is that, I've separated the totals of the details and I don't know of a way to get consistent results with 2 levels of granularity of diff

    Thank you

    You must come with some examples to get a better answer.

    A few general points.

    *(#1). * for calculated measures, look at the Expression of OLAP syntax which resembles the features of relational analytical ROLAP.
    http://docs.Oracle.com/CD/E11882_01/OLAP.112/e23381/TOC.htm

    Use this syntax to create your measurements calculated (in minutes).

    In the "Calculation Type", select "Syntax of Expression of OLAP", and in the Expression box, type the logic.

    .
    *(#2). * If for any reason, an Expression OLAP syntax cannot be used because of some complexity, then you can use old fashioned OLAP dml syntax.
    http://docs.Oracle.com/CD/E11882_01/OLAP.112/e17122/dml_basics.htm
    http://docs.Oracle.com/CD/E11882_01/OLAP.112/e17122/dml_functions_1.htm#BGEGGBAE

    In the "Calculation Type", select "OLAP DML Expression" and in the OLAP DML type logic.

    .
    *(#3). * You can load the relational data into different levels of OLAP cube.
    Facts on multiple levels of loading

    .
    *(#4). * You can start the aggregation of the cube to a specific level in a dimension. It is very important, because the aggregation of the cube always go leaf-level and currently there is no way in AWM to set a higher standard as the starting point for the aggregation.
    For example, let's say your time dimension a YEAR-> QTR-> MONTH-> DAY levels, and you want to leave aggregation of quarter level and not at the level of the DAY.

    You can do DBMS_CUBE. Order IMPORT_XML and provide the following syntax, so that the cube is always aggregated level quarter.

    SUM WITH 'TIME' OF MEMBERS WHERE "TIME". LEVEL_NAME = "QUARTER."

    .
    .
    Regardless of the level of complexity are your calculations, it can be done by means of (#1) ou (2).
    Best is to use "syntax of Expression of OLAP.

    I mentioned (#3) and (4) just to make you aware of other available functions.

    .

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

  • How to create a cube from 2 tables of facts

    Hello

    I use awm11.2.0.3.0A. and my question is around the use of CUBES in OBIEE as the reporting tool. I created so many cubes, each fact table is essentially a cube to go with it, and this created a lot of areas in the Obiee. My question is this: is it possible to create a cube in awm using tables of different facts, for example... Fact 1, 2, 3. And then use the corresponding dimensions in the tables of facts as well as the measures.  Please notify. My fact tables usually has on average 10 dims and approximately 7 steps in them. So if I use like 2 tables of facts in a cube, I could end up with 20 dims and 14 measures. What is the right way to do it.

    Thank you in advance.

    It is certainly possible to map a single cube more than a table of facts, but in general I advise a cube by the fact table unless you have a very specific reason to do otherwise. If, as you suggest, your fact tables have no shared a dimensionality, then I see no good reason to put them in a single cube.

    Note that you can create a 'logic' cube that combines measures of several 'physical cubes' If this helps with the organization. The logical cube would not map to any table and contain only calculated measures. Despite this, I would only combine two cubes in this way if they shared all or most of the dimensions.

  • Methods available for the storage of custom measurements

    Just a general question.

    With the help of 11g. If I have a complex program of DML, which calculates the values using the existing measures stored in the cube and want to store the final result of the values calculated during the delivery of my program. What methods are available?

    My program must be run under the DBMS_CUBE package, part of a maintenance script? I appreciate any info on this.

    $LOOP_VAR is the name of a VARIABLE that is the basis of the loop. A simple example if your DML formula is

    SALES * 100
    

    $LOOP_VAR must be 'SALES', because ' SALES * 100 "has a value if and only if the SALE has a value.

    $LOOP_DENSE allows you to specify that one or more of the dimensions of the $LOOP_VAR should be closed densely even if they are not dense in the variable itself. This is useful for calculating the time of series which may have values even when the base variable does not. The simplest example is a DML formula which means "year to date SALES." (I won't give any real OLAP DML for this because there are many formulations and it would only mask the issue.) Now, let's assume that your variable base, SALES, has a value for Jan 1, 2012", but for any other day in 2012. If you simply set $LOOP_VAR to be 'DIRTY' and then 'year to date SALES' would be NULL for all other days in 2012. It is clearly false from a commercial point of view. The solution must also set '$LOOP_DENSE' to 'TIME', where TIME is the time dimension. The formula now return values for all the days in 2012. You can think of this in terms SQL as an outer join partitioned between the $LOOP_VAR 'table of facts' and the $LOOP_DENSE 'table dimension.

    SELECT ...
    FROM
      sales_fact
        PARTITION BY (...other dims..)
        RIGHT OUTER JOIN time_dim
        ON ...condition...
    
  • Dimension of the Cube

    Hello

    I recently received some excellent comments on how to load measurement data in the cube, but here's my stupid question but fundamental. If I am currently using views initially to aggregate my measurements in fact table, and table is indeed stretching across multiple dimensions, how can I properly build the dimensionality of my cube?

    Current measures are facts:
    Fact table has called dimensions Segment and product and called measure scale.

    I have a view for each dimension up to now:
    create or replace view vw_segt as
    Select the segment, sum (balance)
    the fact table

    create or replace view vw_prd as
    Select the product, sum (balance)
    the fact table

    Now my obvious obstacle arises when I map a measure that I created in the cube for these two dimensions, so please offer some additional guidance. The examples given in the documents of the Oracle make it look very clear cut by mapping the dimensions in the table of facts, but we know that its not easy (for me at least) that the values will not be replaced if dimension appears again.

    Thank you
    Mike

    Mike,

    Its better if you establish a level Top model for your two dimensions (as they are currently a list of unique level of values).

    Aggregation of the cube is on the edge of the hierarchies of dimension using the operators specified in the cube. If its wrong to wait for the fact to be grouped If the dimension is a single level (list of values). There is no placeholder (members) to the sum of all the calculated members and store.

    Also if multiple (or all) values of a product of dimension, say, are in a State, then an expression of measurement done with 1 single specified dimension - member of the Dimension of Segment Segment_1 - will give you the of fact value for the first product of the status.

    Note: If not specified, the value is the first product of the status, not the sum of all products in the State. Summary by the default behavior will do wrong when non-sommables measures such as "balance % variance" are used instead of just sales or the balance (which measures).

    If you have a high level along the product and segment side then the action to remove Viewer product to Segment Segment_1 dimension cube will be the user interface to use the upper level of the product dimension missing (usually the top member is the first element in the default status of the dimension list) and give you the sum aggregate of all Segment_1 products.

    -segment
    create or replace view vw_segt as
    Select your distinct industry, 'Segment Total' as HUBERT
    the fact table
    ;

    -products
    create or replace view vw_prd as
    Select distinct, product 'Total' as TPROD
    the fact table
    ;

    -View of fact
    create or replace view fact_vw as
    Select the segment, product, sum (balance)
    the fact table
    Product segment group
    ;

    HTH
    Shankar

  • Help with automatic calculation field


    I'm doing a form to include an automatic calculation for feet cubes (Lxwxh/1728).

    Even if this is possible in the simplified field notation I need to automatically round up for and decimal point. I tried to use the custom calculation script, but I have no experience with java.

    Event.Value = Math.ceil (this.getField("LENGTHRow1").value * this .getField ("WIDTHRow1") .value * this 1728/d("HEIGHTRow1")) .getFiel;

    It's like I had with Googling but I believe that there is some sort of error with the calculation. I would be very happy if someone can show me what should be the script.

    You are missing the part 'value' after the second getField command.

  • Automate the calculation against Essbase ASO through the calculation Manager

    Hi all

    Anyone know if I can automate the calculation stored in calculation on a cube Essbase ASO Manager?

    I need calculation automated directly against an Essbase cube as it is not a planning application.

    I tried to use CalcMgrCmdLineLauncher.cmd , but it seems not to be able to find the application. I'm assuming that she tries to locate a planning instead of an application of Essbase application.

    Currently I have a number of calculation parameters in the calculation Manager but I would like to automate the process, as well as on a daily basis, the cube is rebuild and recalculated.

    Any ideas if CalcMgrCmdLineLauncher.cmd should work or if there is another method, in addition to my calculations in MaxL.

    Thank you

    Jimmy

    What version? If it's so 11.1.2.3 for Essbase you use a launcher separated in % EPM_ORACLE_HOME%\common\calcmgr\11.1.2.0\lib, calcmgrCmdLine.jar file if it is an earlier version and then probably will need to use MaxL

    See you soon

    John

    http://John-Goodwin.blogspot.com/

Maybe you are looking for

  • Blue screen on Equium A60-155 - "Driver IRQ not less or equal" stop 0 x 0

    I have a model Equium A60-155 no psa67e-00300c8j and I got two years ago. She has always had a problem of crash with "IRQ_Not_less_or_equal. I did all the memory reinstall new habit, and updated the BIOS etc. In desperation, erased from the hard driv

  • I get an alert say8ing that my e-drive is full. I tried to delete unwanted files, but I still have the alert showing.

    I write on behalf of the client. The customer's question is on the E drive. The customer has indicated this way, "Hi, I get an alert say8ing that my e-drive is full. I tried to delete unwanted files, but I still have the alert indicating» The client

  • HP Pavilion dm4-3000en: Question about Windows

    For some reason any of my HP Pavilion dm4-3000en am full DPEP and what it me the BSoD and while I was looking for a place to download win7 Home premium iso original I noticed that the old links do not work and instead they send you here http://www.mi

  • N3048 cannot leave ssh sessions with firmware 6.3.0.3

    I recently updated a stand-alone switch N3048 for the latest firmware 6.3.0.3, A14 (filename = N3000_N2000v6.3.0.3.stk) 6.2.7.2, A10 and it seems, I can't leave a SSH session to the switch (via the OOB interface). I can connect with several configure

  • BBM add an Avatar

    Hello How can I put an Avatar photo in BBM? I tried the app but I found nothing can´t. Maybe it is called different here but with Avatar, I mean my "profile picture"? You understand me and help me? In Whatsapp, it's very simple to just go to settings