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

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

  • Simple Javascript calculator of math - nearby!

    Hi, I am trying to build a simple mathematical calculator Javascript that will do the following on click of a button:

    -Add numbers of textfields imput

    -divide the sum by the number of entries

    -give the average.

    Here is my code. Work (gives rights to answer) but the only problem I have is that the value of the textfield response clears itlsef on the release of the button. But even once, the correct value is briefly indicated in the right textfield.

    You can see the page on:

    http://www.cazacommunications.com/nonTrad/testCalcl.html

    Any clue? Thank you!

    - - -

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"

    < title > Document without name < /title >

    < script type = "text/javascript" >

    function CalculateSum (Atext, Btext, Ctext, shape)

    {

    a. var = parseFloat (Atext);

    var b. = parseFloat (Btext);

    var valueC = parseFloat (Ctext);

    Form.REPONSE.Value = (a. + b. + valueC) / 3;

    }

    / * ClearForm: this function has 1 argument: form.

    It deletes the entry and the answer on the form fields.

    He needs to know the names of the elements of the order ENTRY

    to do this. */

    function ClearForm (form)

    {

    form.valueA.value = "";

    form.valueB.value = "";

    form.valueC.value = "";

    Form.REPONSE.Value = "";

    }

    end of JavaScript functions->

    < /script >

    < / head >

    < body >

    < do action = "" method = "post" > "

    < p > number 1

    < input name = "a." type = "text" id = "a" size = "4" maxlength = "4" / >

    < /p >

    < p > number 2

    < input name = "b." type = "text" id = "b" size = "4" maxlength = "4" / >

    < /p >

    < p > number 3

    < input name = "valueC" type = "text" id = "c" size = "4" maxlength = "4" / >

    < /p >

    < p >

    < input type = "submit" name = "btnMoyenne" id = "BtnMoyenne" value = "average" onclick = "CalculateSum (this.form.valueB.value, this.form.valueC.value, this.form.valueA.value, this.form)" / >

    < input name = 'response' type = 'text' id = 'response' size = "4" maxlength = "4" / >

    < /p >

    < p >

    < input type = "submit" name = "btnEffacer" id = "btnEffacer" value = "Erase" onclick = "ClearForm (this.form)" / >

    < /p >

    < / make >

    < p > < / p >

    < / body >

    < / html >

    The shape is erased because it is present to himself. Simply add a false back to the "submit call:

  • 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

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

  • Size of the measure from 8i to 10g

    Hi all
    I have a doubt about how Oracle will take care of the size measurement in case of export segments from a 8i database to a 10 g database.
    If the initial size and the next measure in a 200 GB 80 MB in 8i db table, when I import it in a 10g tablespace created with the management of the space segment and LMT settings = (default) o and uniform size = 1 M, I realize that once the import is complete, the initial extended aura table = 1 MB, and the other parameters will be null , metric because initial and following the 8i dump file is going to be profane. Is this right? In addition, according to the fragmentation of the table, it's going to shrink a lot.

    Can you guys comment how Oracle will take care of managing migration as in 8i for new features in 10g?

    If you use the LMT with uniform extent sizes, and then when you specify an INITIAL measure that said Oracle the minimum desired initially allocated. So if the uniform extent size is 1 MB and you specify INITIAL = 8 M Oracle will initially provide eight degrees of 1 MB. The measure FOLLOWS size will be 1 MB regardless of what you specify for the NEXT. This should be easily verifiable on your end.

    See you soon,.
    Brian

  • Simple Javascript calculation

    Hi - I need help with a calculation simple javascript. I wrote this javascript:

    disadvantages of the var = this.getField ("Text6.0")
    disadvantages of the var = this.getField ("Text5.0")
    If (plan.value! = 0)
    Event.Value = cons.value - plan.value / plan.value
    on the other
    Event.Value = «»

    However, the calculation does not well.  For instance, 105-100 / 100 must be equal to. 05%, however, the script goes out to 0.00%.  Is there a better way to write a script so that the answer comes. 05%?

    Thank you
    Connie

    You need to clarify some things. Your first two lines are if the same variable to the same value. I guess that one of them should be the 'plan' variable, but which?

    Second, you must specify it as the sholw calculation. There are:

    (105 100) / 100 = 5 / 100 = 0.05

    If so, the code would be:

    Event.Value = (cons.value - plan.value) / plan.value;

    But first you need to check to see that plans.value does not evaluate to zero before you run the line of code. This occurs when the plan field is empty, for example. What should be the value of the field when the plan is empty or zero?

  • Addition of simple mathematical calculations in forms

    How can I add a calculation to a field?  For example, I have a field called hours.  I would like to have a calculated field called minutes, that's all just hours * 60.  Any thoughts?

    Calculation of the second field in the Simple field Notation tab,.

    Enter this:

    Field1 * 60

    (field1 replace with the name of the first field, of course. In addition, this name

    It should not contain any spaces or points)

  • Simple sum calculation does not

    This calculation of amount doesn't seem to work, any idea why?

    There is a picture of my form.

    http://DL.dropbox.com/u/11608065/sum1.PNG

    I added $1, the left column works and the bottom is not.

    http://DL.dropbox.com/u/11608065/Sum2.PNG

    I added $1, the right column works and the bottom is not.

    http://DL.dropbox.com/u/11608065/Sum3.PNG

    Here I have added $1 to the column on the right first.

    http://DL.dropbox.com/u/11608065/Sum4.PNG

    And then the left. Same result. Thoughts?

    http://DL.dropbox.com/u/11608065/Sum5.PNG

    The order of computation of field is probably wrong. To define it, go into the mode of creation of form (forms > add or edit fields) and select: forms > edit fields > set field calculation order

    and set it to anything that makes sense for your form.

  • Simple mathematical calculations is incorrect

    I saw this topic here before but can't find it. When I do the following script it returns an incorrect value;

    var myNumber = 999.43
    trace(MyNumber-999) / / returns: 0.42999999999995

    So, how can I recover the valeur.43? I guess I can do that;

    var myNumber = 999.43
    var hundreds = myNumber * 100;
    var all = cent-99900;
    trace (whole*.01) / / returns:.43

    But is there a better way? And why is that Flash is the calculation like this?

    You are welcome.

  • The simple percentage calculation

    I have two fields: 1 field represents one amount (formatted as a number of 1,234.56) and zone 2 represents a percentage (formatted as a number with no decimal point).

    If the user enters 50 in zone 2, I want to calculate 50% of zone 1

    My results of current script is "1.0". What am I hurt?

    var v1 = getField("Field1").value

    var v2 = getField("Field2").value

    Event.Value = v1(v2/100)

    Thank you in advance!

    OK - got it understood

    I got a letter in my domain name... duh

    Thank you

  • 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

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

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

Maybe you are looking for

  • iMac with flickering of the screen crash

    Hello for two days my iMac starts flashing with green and bright stripes flashing until the screen is 5 cm off to the left. Finally, everything crashes. Sometimes with a blue screen, sometimes with a white screen as a window only to see a very small

  • Satellite 5200 903 does not detect the wireless adapter

    Hello everyone,I wonder if anyone can switch me to it...Since I reinstalled the operating system (my XP pro SP2) PC seems not detecting don't nor the wireless adapter in the device under network adapter Manager.Also the light of the flexibility wirel

  • Screen keeps going blank on Satellite Pro 4270

    I recently inherited a 4270 and keeps going blank screen, everything works in the background and the image comes back if I close and open the lid. However, the screen may go blank after a minute or seconds.Can someone advise?

  • deletion problems

    I'm trying to delete files from the application bearshhare (work) but he used to .saying are of course not protected right or be used programmatically oyher... which is not the case. How to find weather conditions or not, it is protected?

  • Large array of bytes sent via socket?

    Hello I have had this problem for a while and have never really stood under how to solve it properly. I don't understand how you are supposed to transfer arrays of bytes that are larger than the size of the buffer of the socket. I have semi overcome