Creating blocks in an IF statement

I have a calc script this logic of features runs only on certain months. However, I need to create blocks before this logic can calculate and store these values. Currently, the script creates all the blocks for every month with a datacopy, then clears the data in these blocks. However, I would only create and delete blocks a month specific. What is the best way to do it if I can't run a datacopy inside an IF statement? (I prefer is not to use a batch script to check the month)

Hello

You can try something like

SET EMPTYMEMBERSETS

Fix (@List (Mar, Jun, Sep) and & CurMonth))

DIFFICULTY...

DATACOPY...

It copies only the data that is in & CurMonth if the month variable is set to March, June or September made sure command of emptymembersets if the month is say January the entire patch is ignored, i.e. it never reaches the datacopy command.

See you soon

Tags: Business Intelligence

Similar Questions

  • How to create blocks

    Hi guys,.

    I am developing a script that creates blocks under certain conditions.

    Firstly - my plan looks like this:

    2 dense dims (measures, period) and 4 (employee, activity, entity, data area)

    I use a specific measure called "Block" and I'm assigning a value of '1' to create a block if the condition is true. Script looks like this:

    FIXPARALLEL (@RELATIVE(employees,0))

    Fix (@relative(Activity,0), @relative(Entity,0))

    ("data_area1"

    IF (the condition is true)

    'Block'-> ' day 1 '->' data_area1 ' = 1;

    ENDIF

    )

    ENDFIX

    ENDFIXPARALLEL

    This script creates blocks, but it takes too long (I have more than 2000 employees, cca 130 entities and activities more than 10000 - over 2.5 billion possibilities of combinations). I use FIXPARALLEL on employees, but it takes more hours...

    The question is: are there at - it anyway better to create blocks?

    Appreciate any help!

    BR

    Vladino

    Hello

    There is no way you can get the data at the level of the Emp-Ent-Act and then load it? Maybe use a database technology to join the employee and bring back the activity, so that you have then the employee entity and activity.

    the @ALLOCATE function, take a look at the tech REF.

    @ALLOCATE (amount, allocationRange, basisMbr, [roundMbr],

    method [, methodParams] ([, [, numbers] [, roundErr]])

    The basisMbr should be where your data that you want to allocate by for this range of metadata. If the @CHILDREN is where you want to allocate to the and the basisMbr is the location of data for the way in which you want to assign. So no need for the IF condition

    Thank you

    Anthony

  • Problem creating block

    Hi Experts,
    Here, everyone should be aware on the problem of creating block in Essbase in the blocks for scattered members are not created when we try to set a value that is not constant. But when I'm trying to reproduce this problem, I cannot not replicate and blocks created for me.
    I even checked the setting of CREATEBLOCKONEQ at the level of database as well as in ESSBASE.cfg file is DISABLED.

    I use the Demo.Basic application with a slight modification where I added the dimension of the year containing FY10 and FY11.

    The dimensions are:
    Accounts - Dense
    Period - Dense
    Market - sparse
    Product - sparse
    Year - sparse
    Scenario - sparse

    Now, I have data loaded New_York-> FY10-> sale-> Budget to 5 products and all periods. Database statistics show me even 5 blocks.

    Now, I try to run the following script to calc to replicate the problem of creation of block

    CREATEBLOCKONEQ OFF SET;
    Fix ("budget")
    "Denver" = "New_York" * 1.5;
    ENDFIX;

    But I'm able to have created new blocks and the number of blocks celebrates 10 years.

    Is someone can please help me replicate the "issue of creating block"?
    SET UPDATECALC OFF ;
    SET AGGMISSG ON ;
    SET EMPTYMEMBERSETS ON ;
    SET CREATEBLOCKONEQ OFF ;
    FIX("Budget")
    "Wyoming" = "New York" ;
    ENDFIX
    

    Hey Cameron,

    In Essbase 9.3.1 also, I think that your code is good in creating blocks for the Member of the formula "Wyoming".
    Creating block problem arises in a complex real world scenarios. See a sample as below
    CREATEBLOCKONEQ OFF SET;
    Fix ("budget")
    "Wyoming" = "New York" + 300;
    ENDFIX

    Member of the formula here Wyoming supposed to sum up the New York and 300.
    This works if New York has block and not if not.
    But the result is 300 if not.

    I hope that this problem is still there in 11.1.2.1 also. I've known some discrepancies in the formula still fixed with CREATEBLOCKONEQ ON calcs.
    How to test close tomorrow.

    Tim,

    Top-Down is not the default behavior. But Essbase will select Top Down calc whenever he needs to get the blocks needed for the calculation.
    No girl b/w Topdown calc and block creation of question.
    Forcing down the high yield erroneous results.

  • The script "SET CREATEBLOCKSONEQ ON" don't not creating blocks

    Hello

    We used the script "SET CREATEBLOCKSONEQ ON" in a business rule, but new blocks are not created.

    Anyone can guide us in this regard?

    Thank you.

    You can correct IMGs who have 900 and 1500 members and create blocks for them based on another dimension ex:
    We have more sparse dims: entity 1000, 1000 products, 5 years, 5 Sen, Version 5 and now you want to create block for entities and products for FY11, Budget, Version1 then

    DIFFICULTY (@RLEATIVE ('entity', 0), @RELATIVE ("products", 0), Fy11, Budget)

    Version1 is Vesrion1 + 0.;

    ENDFIX;

    This will create all the block for you; It is once again a problem all the blocks of potential will be packed you can restrict the same in condition to create blocks and this condition will be dependent on the logic for ex: If the profit is > 0 then create block

    DIFFICULTY (@RLEATIVE ('entity', 0), @RELATIVE ("products", 0), Fy11, Budget)
    Veresion1
    (
    IF ("NetProfit" > 0) / * this logic may vary according to your requirement * /.
    Version1 is Vesrion1 + 0.;
    ENDif;
    )

    ENDFIX;

    Or if you have connected this BR to a web form and that you have selected use member on the data form you can use SPTR to create blocks. The room no. above may use RTP for members to make it more useful.

    See you soon... !!!

  • Creating blocks

    Hi Experts,

    I'm new to Essbase please help.

    How many ways can we create blocks by using the calculation script?

    Thank you and best regards,
    Badin

    Hi Bader,

    Say
    A, B, C, D are sparase and E, F are dense
    and D has two childs D1 and D2 and two want to create blocks for D1 and D2.

    and you want to create blocks for

    SET createblocksoneq
    FIX (A, B, C)
    D1 = d1 + 0;
    D2 = d2 + 0;
    ENDFIX;

    OR
    / * No need to create blocks on eq on * /.
    FIX (A, B, C)
    D1 = 0;
    D2 = 0;
    ENDFIX;

    or

    SET createblocksoneq
    FIX (A, B, C)
    D / * members scattered block * /.
    (
    )
    ENDFIX;

    or

    simple but delicate
    SET CREATENONMISSINGBLK
    creates block by itself...

    See you soon... !!!

  • How to create a cursor on a statement select union?

    Hello
    Using Oracle 10 g RAC + ASM (VERSION 1002000300)
    What is the right way to create a cursor on a statement select union?
    Is this possible?

    lines, results in code error PLS-00201: sT: = crsR.STATUS; sS: = crsR.TIME;

    Procedure below:
    -----
    CREATE OR REPLACE PROCEDURE BUILD_SUMMARY IS

    CsrO CURSOR IS
    SELECT
    STATUS,
    TIME
    DE)
    SELECT
    STATUS OF SUBSTR (DESCRIPTION, 1, 50),
    To_char (TIMESTAMP, "MM/DD/YY hh12:mi:ss'") TIMES
    OF GLOBALSALES. CUBE_STATUS
    UNION ALL
    SELECT
    "BUILD TOTAL TIME."
    TO_CHAR (TO_DATE('00:00:00','HH24:MI:SS') + (MAX (TIMESTAMP) - MIN (TIMESTAMP)), 'HH24:MI:SS')
    OF GLOBALSALES. CUBE_STATUS);
    Scrr csrO % ROWTYPE;
    sT LONG: = ";
    sS LONG: = ";
    BEGIN
    FOR Scrr IN csrO
    LOOP
    sT: = crsR.STATUS;
    sS: = crsR.TIME;
    DBMS_OUTPUT. Put_line(St ||) ' ' || sS);
    END LOOP;
    END;
    /

    The results of changes in the same PLS-00201 error messages stating the: identifier ' CRSR. STATUS must be declared
    and the identifier ' CRSR. STATUS must be declared
    ...
    FOR Scrr IN csrO
    LOOP
    sT: = crsR.STATUS;
    sS: = crsR.TIME;
    DBMS_OUTPUT. Put_line(St ||) ' ' || sS);
    END LOOP;

    You are not running what I posted here.

    Please replace this line here:

    FOR csrR IN csrO 
    

    to do this:

    FOR crsR IN csrO 
    

    It helps if you name your variables and objects after something more meaningful and less complicated, for example:

    FOR cur_rec IN csrO
    LOOP
      sT := cur_rec.STATUS;
      sS := cur_rec.TIME;
      DBMS_OUTPUT.PUT_LINE(sT || ' ' || sS);
    END LOOP;
    
  • What is the difference btw: block.item and $item.block.item.value in State of form customization


    Hello

    What is the difference btw: block.item and $item.block.item.value in the customization of the form State section

    I've seen this condition as

    triggering event

    the point at which instance

    : PRESS RELEASE. PICKING_RULE not in the ('US_CB_1', 'US_CC_1', 'US_CA_1', 'US_CU_1')

    and

    When the point instacne

    ${item.release.picking_rule.value} not in ('US_CB_1', 'US_CC_1', 'US_CA_1', 'US_CU_1')

    the two are the same or different

    Thanks in advance

    In the particular example that you use, no difference, you are getting the value and comparing it with a set of values.

    The second form of the syntax, however, take into account what follows, while the first only retrieves the value of the field:

    Conditions can refer to properties of objects using a SPEL (simplest Possible Expression Language) syntax. For example, allows you to create a Condition that tests whether a field is displayed or not. These expressions take the following general form:

    ${objectType.objectName.Property}

    Internally, the expression of SPEL is a cover for Oracle Forms builtins like GET_ITEM_PROPERTY, GET_BLOCK_PROPERTY, etc. In addition, expressions of SPEL are supported recovery values of profile, the dictionary of text messages and local Variables (described later).

  • Muse: Text blocks the lower graphic States

    I created buttons with rollover States: Normal with a 30% opacity. Rollover, Mousedown and Active: shadow 100% more drop. It is related to the landing page. So far so good.

    I want the text for each button to be 100% opacity all the time (he has a shadow too) so it is easy to read (not spent 30%), so it is in a separate text block, also linked to the landing page.

    button1.jpg

    In preview mode, when I rollover, mousedown, etc. the button background works as it should (go from 30% to 100%).

    button2.jpg

    Until he hits the block of text. He text block "shields" (for lack of better term) the State and the button returns to its Normal state:

    button3.jpg

    I tried to solve this with layers without result. So... my question is the following:

    How can I get the text above the button in a constant state of 100% and do not have the text block are interfering with the States below.

    Of course, I forgot something. What Miss me?

    Thanks in advance.

    The easiest way to do this is to use the "status button" comes with Muse widget.

    Here is a small tutorial: The Mighty State button Widget - Video Tutorial - MuseThemes.com - YouTube

  • How to create a button in the State with two different images?

    What I mean is... I have a picture that is conveyed as a button that has not been pressed, and I also have an image that expresses the same key but this time it is pressed. Is there a way to ensure that when the button is normal I seized the image of the button upward and then make sure that when I roll on or press the Enter key, the image of the button down?

    Thank you, Ben Charter

    Hi Ben,

    Just create a Menu and with the Normal State is selected, use the fill options to fill an image in the Menu item. Select the rollover / the mouse to the bottom of the State in the States Panel, then assign an image by using the options to fill again. This is a swap of base image using normals and States of Muse down mice.

    Kind regards

    Akshay

  • Impossible to select the connection pool when creating block init for current_month

    Hi all

    I use OBIEE 11.1.1.6.0 Version,

    I'm tempted to create a session variable (current month), but I found I could not choose the option of pool connection, is disabled, do not know why

    Anyone encounter this issued before?

    Your response will be much appreciated!

    Thanks in advance

    Kind regards
    Anne

    Hello

    try to make
    In the administration tool go to tools-> Options-> general tab and check "allow first connection Pool for blocks. Init option."
    After the checkbox activated, then save it and then try again.

    Thank you
    Deva

  • creating a relationship on a statement

    Hello
    I have a relationship master detail
    at the master, I have a year_no(number 4) and week_no (number2)
    in detail, I have a date of production

    what I'm trying to do is
    blk1.year_no||blk1.week_no = to_number(to_char(blk2.production_date,'rrrriw'))
    error FRM: 15004: error while parsing the join condition

    has anyone who ever joined a master/detail relationship this way or did you use WHERE clause when you query detail records?

    Forms [32 bit] Version 10.1.2.3.0 (Production)

    Thank you

    You could encapsulate the concatenation in master and to_number part in detail. Create a view for each block with each having a column including this logic and then base your blocks on the view.

  • Create table in the select statement.

    Hello Oracle gurus,

    I am creating a table using select * in the other table.

    The procedure I am following is as follows: -.

    I have a temporary table whose signature is on delete rows commit.

    I insert records into this table.

    When I select * from temporary_table, perm_table, I get a few lines.

    so I try to create a result_table the use of this

    CREATE TABLE result_table
    AS SELECT * FROM temporary_table, perm_table;

    I see the created array, but the number of records in 0. Please can someone explain where the validation is performed while the sequence in this query occurs.

    Thank you

    Published by: user10696492 on November 10, 2009 08:47

    Hello

    When you perform DDL like CREATE TABLE implicit validation takes place just before and just after the statement.

    Concerning
    Peter

  • Cannot create Index with an If statement

    Hello:

    I would run the code to create an index on a given table, but only if the index does not exist. Here's what I have so far...

    DECLARE
    c_Count NUMBER;
    BEGIN
    SELECT COUNT (*) FROM c_Count
    OF DBA_INDEXES
    WHERE TABLE_NAME = 'SOME_TABLE_NAME '.
    AND INDEX_NAME = "SOME_INDEX_NAME."
    AND OWNER = 'SOME_OWNER. '
    AND TABLE_OWNER = "SOME_OWNER";
    IF c_Count = 0 THEN

    CREATE INDEXES SOME_OWNER. SOME_INDEX ON SOME_OWNER. UNE_TABLE (SOME_KEY);
    END IF;
    END;

    The SELECT INTO statement works well alone.
    Boredom comes with the IF statement. I get the following error message:

    PLS-00103: encountered the symbol "CREATE" when waiting for one of the following values: begin case declare exit for goto if loop...

    This is the typical error saying that the syntax is incorrect, and that the parser was expecting something else after the IF-THEN statement. Any ideas on what may be a problem? Thanks in advance.

    Jerry

    Hello

    You must use EXECUTE IMMEDIATE to the DDL in PL/SQL.

    DECLARE
       c_Count NUMBER;
    BEGIN
       SELECT COUNT(*)
         INTO c_Count
         FROM DBA_INDEXES
        WHERE TABLE_NAME = 'SOME_TABLE_NAME'
          AND INDEX_NAME = 'SOME_INDEX_NAME'
          AND OWNER = 'SOME_OWNER'
          AND TABLE_OWNER = 'SOME_OWNER';
       IF c_Count = 0 THEN
          EXECUTE IMMEDIATE 'CREATE INDEX SOME_OWNER.SOME_INDEX ON SOME_OWNER.SOME_TABLE(SOME_KEY)';
       END IF;
    END;
    

    Kind regards

  • Settings for the account blocked in the United States

    I encounter this problem by which I am unable to update my account settings that the 'Billing address' section I have to choose a 'State' even if I'm not from the USA. I noticed that the format of mobile phone number is too different. I'm from Singapore (Asia) and I can't seem to change the location of origin of my phone on my background.

    For this reason, I am stuck without being able to install anything new on my phone, and regardless if it's a paid or free app, because I have to "Check payment information" before I can install anything. I have no idea how this change in the USA even happened, didn't know it until I got the notification update settings. I use the phone for more than 6 months now.

    Would be very happy for any help I can get, or if this has been asked before. I tried Googling on this issue and explore the settings on my phone, nothing helps...

    Thank you!

    -Chance

    What are your settings under the tongue and the region?

  • Flickr Create blocks Firefox 34

    Can anyone confirm that it https://www.flickr.com/create/ of opening with the latest beta version of Firefox 34 accidents? I tried with a new profile and the same happens.

    Crash reports are:

    BP-1685075f-F311-4603-A2D5-d79d12141118
    BP-d025af3a-668b-4663-a44d-9b41c2141118

    It seems related to the graphics (MPEG4).

    However, today, I've updated to beta version 10 and now it works without accident! I have not touched anything, I guess I wasn't alone.

Maybe you are looking for

  • HP Compaq nw8240: HP Compaq nw8240 - upgrade to the ATI Radeon X 700 graphics card

    P/N EB956EC #ABU Running Win 7 Professional, 32-bit version, Service Pack 1. Windows 10 upgrade fails because it states that the ATI Mobility Radeon X 700 graphics are not compatible with Windows 10. So I would like to know; (1) the ATI Radeon X 700

  • Sounds do not work in Windows XP

    Original title: sounds How can I fix my sound on my computer it will not work

  • Choppy/Jerky video streaming in Windows Vista

    We have Windows Vista and find that more often than not, streaming video is choppy and are not smooth.  This happens with almost anything that has movement - even the bubbles screensaver.  Also when I look and sports.  We know that some things are in

  • No audio from speakers

    original title: audio No. I removed my speakers to my s 580 Dell Inspiron and when I hooked them back - no sound?  I haven't tried reinstalling the driver still no signal audio through speakers or computer?

  • missing position2 and position4

    I'm on page 101 on APEX 3.1.1. I see position4 and region position2.When I exported my app on APEX 4.2.3 position4 and region position2 left. How can I put these areas of return in.The reason these position 2 and 4, is that there is an image and logi