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.

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

  • 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

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

  • Error with action on the part of the CDA of AW OLAP in OBIEE

    I have created an AW using AWM 11 g, OBIEE repository that uses it, and I'm unable to get a calculated including measure to display in OBIEE.

    I created a measure called YTD_SHR_REG_PROF, which is the share of Profit of the CDA for the region, and I have included this measure calculated in my SPR file, as well as sales, profit and several other measures, base and calculated.

    Other measures can be displayed in OBIEE. For example, by selecting a month and sales of associated business, YTD_Sales and Profit works very well. However, including my YTD_SHR_REG_PROF measure causes my Oracle database instance stop. Ouch!

    Here's the definition generated by the wizard of the measure:
    (SHARE (UNITS_CUBE. YTD_PROFIT OF THE CUSTOMER. CUSTOMER SERVICE LEVEL STANDARD. REGION)) * 100

    I select month, region, warehouse, Sales, YTD_Sales, Profit and YTD_SHR_REG_PROF in my request for answers. If I omit YTD_SHR_REG_PROF, it works very well. If I understand this measure, it stops my Oracle service.

    I captured the OBIEE SQL and executed in SQL Developer and got the same result, shown here:

    Error from the 1 in the command line:
    Select
    T902. MONTH_LONG_DESCRIPTION C1,
    T858. REGION_LONG_DESCRIPTION C2,
    T858. WAREHOUSE_LONG_DESCRIPTI as c3,
    sum (T930. Turnover) as c4.
    sum (T930. YTD_SALES) as c5.
    sum (T930. Benefit) as c6,.
    sum (T930. YTD_SHR_REG_PROF) as c7,.
    T902. MONTH_END_DATE as c8,
    T858. CUSTOMER_REGION_ID as c9,
    T858. CUSTOMER_WAREHOUSE_ID in c10,
    T902. TIME_MONTH_ID as c11
    Of
    TIME_CALENDAR_VIEW T902,
    T858 CUSTOMER_STANDARD_VIEW,
    UNITS_CUBE_VIEW T930
    where
    (T858. DIM_KEY = T930. CUSTOMER
    and
    T902. DIM_KEY = T930. TIME
    and
    T902. MONTH_LONG_DESCRIPTION = ' (APR-01').
    Group
    T858. CUSTOMER_REGION_ID,
    T858. CUSTOMER_WAREHOUSE_ID,
    T858. REGION_LONG_DESCRIPTION,
    T858. WAREHOUSE_LONG_DESCRIPTI,
    T902. MONTH_END_DATE,
    T902. MONTH_LONG_DESCRIPTION,
    T902. TIME_MONTH_ID
    order of c8, c2, c3

    Error in the command line: 1 column: 0
    Error report:
    SQL error: IO Exception: connection reset

    Moreover, the measure shows very well in AWM with data display. The values are correct, no problem at all.

    If someone from the OLAP team monitors this forum, could I ask you to try to recreate this issue? I use the Global schema.

    I will also post the question in the OBIEE forum, but since the bombs SQL in SQL Developer, I don't think it's a question of OBIEE.

    Thank you!

    Published by: Mark Thompson on December 29, 2008 10:54

    Hi Mark,

    Thanks for the model.

    I see exactly the same behavior on my local 11.1.0.7 instance. I found a mistake in a trace file associated with a background thread ("qerfxGCol:KQFDTTIM - LdiDateArray conversion error"), but I can't be 100% sure it's related.

    Oddly, I found that if I remove the group_by/sum of my request, he succeeded, and the result seems reasonable

    for example.

    Select
    T902. MONTH_LONG_DESCRIPTION C1,
    T858. REGION_LONG_DESCRIPTION C2,
    T858. WAREHOUSE_LONG_DESCRIPTI as c3,
    T930. SALES in c4,
    T930. YTD_SALES as c5,
    T930. Take ADVANTAGE as c6,
    T930. YTD_SHR_REG_PROF in c7,
    T902. MONTH_END_DATE as c8,
    T858. CUSTOMER_REGION_ID as c9,
    T858. CUSTOMER_WAREHOUSE_ID in c10,
    T902. TIME_MONTH_ID as c11
    Of
    TIME_CALENDAR_VIEW T902,
    T858 CUSTOMER_STANDARD_VIEW,
    UNITS_CUBE_VIEW T930
    where
    (T858. DIM_KEY = T930. CUSTOMER
    and
    T902. DIM_KEY = T930. TIME
    and
    T902. MONTH_LONG_DESCRIPTION = ' (APR-01').

    I can only assume at this stage that you've discovered a bug - it's a big problem for you? and if so, are you able to open an SR?

    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

  • How to calculate time filter ADC for USB-4431

    I do a continuous measurement of the aregenerative AOAI.  I need to compensate for the delay of ADC filter both the delay in output filter

    The delay of output filter seems to be well documented in the manual NI DSA (link below)

    http://www.NI.com/PDF/manuals/371235g.PDF

    ADC filter delay is more difficult to find manual DSA says look at 443 x specifications.

    The specification gives a delay of "nominal" of 38 samples ADC filter.  I can't find a more precise definition (link below)

    http://www.NI.com/PDF/manuals/372485c.PDF

    I'm using labview 2010, on XP

    attached is a sample vi.  He uses a loop of producer consumer example that I modified

    I could manually find the total different sampling frequency offset, but I would have preferred a way to calculate it.

    Thank you

    Timm C.

    When you say 'calculate', mean you automatically measure, calculated by the formula, or search in the table?

    It's a good idea to measure the total delay (DAC + CDA + other) of the measuring device to each sampling frequency of measurement used in your application. Best practice is to run this measure whenever the system is powered up or rebooted.

    We recommend that you use VI provided by Sound and Vibration Toolkit to measure the delay and additional delays that may be introduced by the device under test:

    \vi.lib\addons\Sound and Vibration\svt_Calibration\SVL measure Propagation delay .vi (DAQmx)

    If you don't have a SVT/SVMS, you can recreate the measure of delay with LabVIEW complete edition features.

    Start to synchronize your AO and AI using the same implementation used in your application of measure.

    Use a test as a monopulse Gaussian signal and search for relaxation both the signal generated as well as the acquired signal. The difference between the locations of trigger is the delay.

    Or use a test signal as MLS or Chirp, and cross-correlation model to measure the delay.

    But I like to use the VI SVT ;-)

  • Select multiple columns into a single column group

    SQL dear Experts,

    I have a question related to pl/sql.

    I do query below. Please advice in right way.

    Select phone, firstname, lastname code
    of the customer
    Code group

    Group, but in the meantime, firstname and lastname.

    Please advice

    Thank you
    Angelique

    Billy wrote:

    I have a question related to pl/sql.

    You posted the SQL code. Not PL/SQL code.

    I do query below. Please advice in right way.

    Select phone, firstname, lastname code
    of the customer
    Code group

    Group, but in the meantime, firstname and lastname.

    Of course, you will also need to group by firstname and lastname for this SQL query.

    With a Group of SQL, you have basically 2 types of values that can be returned:
    -the value of Group of
    -l' aggregated/calculated the value of this group

    If you could watch the first name and the last name by code:

    select
      code, MIN(firstname), MAX(lastname)
    from customer
    group by code
    

    You can see the number of unique name and surname by code:

    select
      code, COUNT(DISTINCT firstname), COUNT(DISTINCT lastname)
    from customer
    group by code
    

    Think of the clause group by in size (for example the code in the SQL above) and measures (calculations by code in the SQL above).

  • Anyone know of a good tutorial OLAP DML/DDL?  (and NOT reference guide)

    In addition to the analytic workspace, I'm learning to build cubes by using just the OLAP DML / DDL language.

    Oracle and others have published many documents of reference on the language of the OLAP DML / DDL but I can't find a real tutorials that logically guide me through the process of creating cubes and everything that goes with it (definition of the dimensions, hierarchies, measures, calculations etc...) All the reference material is divided into pieces and difficult to learn effectively. Does anyone have a good OLAP DML / DDL tutorial links they could recommend? Thank you.

    John W wrote:
    Oracle and others have published a lot of reference material on the language of the OLAP DML / DDL but I can't find a real tutorials that logically guide me through the process of creating cubes and everything that goes with it (definition of the dimensions, hierarchies, measures, calculations etc...) All the reference material is divided into pieces and difficult to learn effectively. Does anyone have a good OLAP DML / DDL tutorial links they could recommend? Thank you.

    It is a very difficult task. The OLAP DML/DDL only supports relationships, dimensions (very primitive) and multidimensional basic variables. Dimensions and the visible cubes from the outside are a building a lot of components objects (a dimension has several primitive dimensions and relationships organized to create the DIMENSION of upper level that goes hand in hand with a cube, a cube a variable multiple and other pieces that get together) in the AW, more a bunch of objects of metadata in the dictionary of the Oracle.

    You really want to try to create your own and not expect to interact with OLAPI interfaces. It is possible to build your own version of things, but you also have to make your own view generation, etc. There are applications that are created from scratch, but they are completely from scratch (including whatever interactions they have through SQL). Everything you create will not work with all interfaces provided by Oracle, or the recently announced package of Simba MDX.

    Jim

  • measure to the block-level disk data-delta for the calculation of the replication bandwidth

    Hi community

    I hope this question isn't too stupid, or maybe I'm thinking too complicated.

    I want to measure the level of the disc data-delta time block time B to calculate the bandwidth for replication.

    How can you experts out there, such a calculation. is my common sense approach?

    Please share some light on this particular subject.

    Thank you, peter

    If you PM me I have a worksheet that may be useful

  • Calculation of measurement to DATE

    Hello:
    I would like to know other ways to calculate the QTD measures and for a YEAR without using the functions of the time to DATE series.
    Also, as for example, we may use certain functions and calculations available in BI answers. But I'm not sure that I get incorrect results when I try to use combinations of features like filtre/somme/c.v...
    Can someone give me some ideas on what can be done in BI answers to calculate the measures to DATE?

    Thank you
    Chavigny.

    Chavigny,
    > This means that we create another column which groups according to the required dimension? Right?

    Yes, use in Fx

    FILTER (C.V. ("other facts". "" Qty reserved "by"other Dimensions. " Market) USING (Time. "" Month "BETWEEN"(2007 / 01' ET ' 2007 / 08')) "

    (the dimension measurement) that's all

    Let me know if you need help

    Thank you
    Saichand.v

Maybe you are looking for