-DATE CALCULATION question - generate & calculate date

Hi all

I need a suggestion concerning the calculation of the date in essbase.

the case is:
-first of all, I need to generate date for each month, depending on the size of the period and the year. and uses the last date of the month in the date.
IE: If the year = FY11, period = Feb, then it generates members date1 = 20110228 (date1 member is considering membership with the date type)

- then I need to calculate the difference in days between each month.
IE: day_diff = date1 (20110228) - date1 of the month previous (20110131)


anyone has idea or an idea that will help you?

Thank you
Feri

You can use CDFs for the same thing, to first take a look at:
http://download.Oracle.com/docs/CD/E12825_01/EPM.111/esb_dbag/frameset.htm?dcaudfs.htm

Strings and Date for Essbase on SampleCode.Oracle.com functions:
https://www.samplecode.oracle.com/tracker/tracking/linkid/prpl1004/action/ExecuteQuery?sfLoginToken=6D547D1FA88748A089A3C63EC282807B&sfProj=codesamples&isLoggedIn=true&sfLoginToken=0D11D7FCD6438541703B23FFCF6B2AFA&sfProj=codesamples&jSessionId=93DB7560AE2FF2C5F9D9AD7DCA34D50B&isLoggedIn=false&query=essbase1&dapCheckedPassed=false

See you soon... !!

Tags: Business Intelligence

Similar Questions

  • calculator will not calculate

    When you try to calculate what percentage one number is another number, the calculator does not give the right answer. It's something that started the month last in my IPhone 6. For example, dividing 5 by 10 and press the percent key. The answer given est.1. Divide 10 by 5 and the answer given est.05. Of course, I know how to get the right answer, but since it is a recent change in the IPhone calculator, I wonder if a key has been changed in an update or if there is something else wrong. I could any ideas or suggestions on something, have done to cause the problem?

    sblasdel wrote:

    For example, dividing 5 by 10 and press the percent key. The answer given est.1.

    The calculation you just described is 5 divided by 10% (e.g. 0.1). To complete the calculation, you must press the = button.

    http://www.percentagecalculator.co/percent-button.html

  • Calculation question

    Hello

    This should not be a difficult question, but I can't seem to understand.  If I have a setup of calculation as follows: input for the height field and entry field for the weight.  This through a calculation = BSA.  What happens if the BSA is 2.02 and I want on the type of form in 2.0 rounding.  Is it possible to configure the field so that you can change it after a calculation is performed.

    Thanks, Chris

    Well, you could provide a provision allowing the substitution of the calculation, think to check and when this element is enabled the calculation and what is typed is not overridden.

    A bit like giving a placebo in writing.

  • Tabular presentation - calculation question

    Hello

    I have a simple tabular presentation that shows the hours of work per month, role, the amounts of report by month, by the role and has a Total of hours report. Output looks like similar to this:

    JAN FEB MAR... TOTAL
    Administrator of 100 50 20 170
    100 40 20 160 developer
    Manager of 100 30 20 150

    300 120 60 480 total

    Our client would like another added line (cost) which is a calculation of each of the columns * 110. In other words:

    JAN FEB MAR... TOTAL
    Administrator of 100 50 20 170
    100 40 20 160 developer
    Manager of 100 30 20 150

    300 120 60 480 total

    Cost $33 480 $13 200 $6 820 $52 800


    Can anyone advise on how / where I have add this line 'Cost' to the State?

    This is the code for the report: (and I checked for each month and the total AMOUNT in the attributes of reports section)

    Select
    ROLE,
    JAN,
    FEB,
    MAR,
    APR,
    MAY,
    JUN,
    JUL,
    AUG,
    MS,
    OCT,
    NOV,
    DEC,
    TOTAL
    of PM_BUDGET_TOTALS;


    Thank you
    Laura

    Ah ok I see. It's a little different than what I thought.

    You can create items of individual page for COST fields several, fill it with SQL (using the type of source = SQL Query (single return value)) and put them on your area of report. If you then change the region and ensure that it is "the body of Page Template (1.» (les éléments ci-dessous le contenu de la région) ' to the Point of the screen, which can imitate so what you are looking for?

  • Calculation question script

    Hello-

    I'm trying to write a script of datacopy as follows:

    SET AGGMISSG
    GAME CALCPARALLEL 2;
    SET HIGH LOCKBLOCK;
    SET CACHE HIGH;
    DIFFICULTY ("L_Allocation Rate - Lo", "L_Allocation rate - Reg", "rate of L_Allocation - Go",)
    "E1."
    "E2."
    "P1."
    "L1l."
    "Final."
    "Unallocted,"
    "HSP_InputValue,"
    @Relative("Entities",0)
    & ActYr)

    & CurMth
    (
    IF (& CurMth == Jan)
    & CurMth = (@MDSHIFT ('Real', -1, "Years", 11, "periods of time,"));

    ELSEIF (& CurMth == (@ISMBR (@Remove (@Relative("YearTotal",0), @List ("Jan"))))
    & CurMth = @Prior (Actual);

    ENDIF
    )

    ENDFIX

    For the period P1 it works fine but when I run for the other periods it dosent come with all values. I guess I know why its because of the command (@ISMBR (@Remove (@Relative("YearTotal",0), @List ("Jan"))). If I hard code the

    name of the era (ex Feb, March to December) it works fine. Is there a way where I can modify this command so that I don't have to metion period name 11 times.


    Thank you!

    The above post will attempt to get your original syntax to work...

    But why not put & CurMth in trouble and then if statements... its much more simple...

    DIFFICULTY ("L_Allocation Rate - Lo", "L_Allocation rate - Reg", "rate of L_Allocation - Go",)
    "E1."
    "E2."
    "P1."
    "L1l."
    & CurMth,
    "Unallocted,"
    "HSP_InputValue,"
    @Relative("Entities",0)
    & ActYr
    )

    "Final".
    (
    IF (@ISMBR ("Jan"))
    'Final' = (@MDSHIFT ('Real', -1, "Years", 11, 'periods'));

    ELSEIF (@ISMBR (@Remove (@Relative("YearTotal",0), @List ("Jan", "Feb", "mar")))
    'Final' = (@MDSHIFT ('Real', -1, "Years", 11, 'periods'));

    ON THE OTHER
    "Final" = @Prior (Actual);

    ENDIF
    )

    ENDFIX

    I rotated finals out of the solution just to make it easier to understand.

    PS I think "Unallocted" is misspelled in your jam.

    do not trust validations in System 9... they will often validate when it's an incorrect syntax

    -Matt

  • Questions about the collection of personalization data.

    I am currently working on a form which is presented as an xml file using a submit button by email.  There are several things that I wonder if you can customize and if so, how?

    1. Is it possible to have the calculated time field that is included in the exported data?
    2. IF SO... Is it possible to change the date/time calculated field to calculate when the e-mail button is clicked rather than when the form is started?
    3. Is it possible to have the file by e-mail named something other than * name * _data?  Maybe something that includes the date, or another domain specified for point more precisely what form it is?
    4. Finally, is it possible when you import data to import xml data into an Excel file which already has other data collected in it?

    Responses to the foregoing would be greatly appreciated!

    Thank you!

    Kayla

    Hey Kayla,

    Yes, most of it is possible.

    1: select the date/time field and go to object > tab. Liaison depending on the version of LC designer you have, you want the drop-down list of data binding to have 'Normal' or 'using the name '. This means that the value is exported to the XML file. If the drop-down list says "No data binding" or "None", the value will not be exported.

    2: the date/time field probably has the script initialization or docReady. That's fine, the date and time will be filled when the form is opened. In order to refresh the time at the time wherever the user submits the form, you must include the following line in the mouseDown event of the submit button.

    DateTimeField1.execEvent("initialize"); 
    

    This will trigger the DateTime field Initialize event and update the date / time just before submitting the form.

    3: it's tricker, the name of the XML file is set automatically to reflect the name of the file of the form. You can write the script to change the name of the file of form (and by extension the name of the XML file), however, this requires a function of trust in a separate javascript file. This JS file will have to be on all computers which would be used to access the form and to be honest not worth the (significant).

    4: adobe do a good job, if you are distributing your form via Acrobat.com. Additionally, Acrobat version 9 allows you to select the individual xml files and export them to an Excel spreadsheet (under the menu options). You can also compile returned forms by selecting the answer file and the individual xml files. I don't think that you will be able to export a new XML responses in an existing worksheet. Using Excel, you may be able to import the new XML into the existing file. If all else fails, I export the new xml to spreadsheet files, this open in Excel and copy the data back. Open the existing worksheet, and then copy the data back at the end of the table.

    Hope that helps,

    Niall

  • date fill in the dimension with the correct values

    Hi all

    I have a 'simple' problem, but can't get it resolved! The calculations of the CDA in the cube not 'reset' at the right moment in time (they should 'reset' on the exercise, but it actually seems to happen on the normal calendar year).

    Our dimensions and cubes are MOLAP. There is a relational table that contains columns with values for both a calendar hierarchy as well as a hierarchy of exercise. This table tells the date dimension (only the tax hierarchy as MOLAP, we have just a fiscal hierarchy). The result seems correct in the data viewer.

    The cube is filled with both relational sources. A perspective provides the measurement values and CODE (distinctive signs of business) values for each dimension involved. In the case of the date dimension, it provides the code for the involved level value in which we cube (months).

    I made a very simple testcase with only 1 dimension (date) and 1 small cube. The cube uses only the dimesion of date (to load the cube on the fiscal hierarchy at the month level) and has 1 base measure that is loaded with a simple number and 1 calculated measure that calculates the value of the CDA for this basic measure. The calculated measure is added to the cube designer OWB by using the button 'generate calculated measures' and choosing the function 'Year to Date'.

    When complete the cube and using the data viewer to verify the results, CDA values don't 'reset' at the end of the year. They seem to reset at the end of the normal calendar year!
    After some tests, I have concluded that this has to do with the values I provide to fill the date dimension, but I can't figure out what should be the change, and I can't find examples anywhere.

    Someone out there a calculation for a YEAR of work in MOLAP?

    Any help much appreciated.
    Kind regards
    Ed

    Hi Ed

    It can be an inherent behavior of the time dimension in the AWs where the CDA on financial is not supported out of the box, see the OLAP thread below. Have you tried just build your simple case in AWM recreate? If you can get around using a custom expression, you should be able to define this custom OWB and still keep the design you have.

    Calculated against calendar CDA CDA tax measure

    See you soon
    David

  • Process of calculation to calculate the value after submit after all validations

    Hello

    Please help with a possible approach or suggestions for the calculation process.

    I have a calculation process after submit I want to calculate its value after that all validations are handled. Because this process of calculating trim is off of the first part of the input string of the user for the P3_USES element. Thus, for example consider; the user selects a value for P3_USES (point list manager) to be "TAC"... BCA... BCA... BCA... 0.CA BC... "CA IT BC. So my calculation process just stripes off the coast of the first portion of the string and computes the value will be "BCA"... BCA... BCA... 0.CA BC... "CA IT BC. It works fine when all postings on the page are placed without cooking.

    The problem occurs, then the validation fails on the form. Once the validation fails, the calculation process; already calculates the value and the P3_USES value form element is set to "BCA"... BCA... BCA... 0.CA BC... "CA IT BC. So, here the user solves the problem of validation and sends it again the form, but at this point the value is calculated again but this time that my string is "BCA"... BCA... BCA... 0.CA BC... CA IT BC"which is not correct, because my initial user string entry was"TAC"... BCA... BCA... BCA... 0.CA BC... "CA IT BC.

    So my question is how they treat the value of my calculation after all validations. While I can keep the original value of the P3_USES element. I'm using the version of Oracle APEX 4.0 and Oracle 10 g R2 database.

    Thank you

    Rambeau

    Hello

    Combine code of calculation and validation?

    Perform the calculations in the process?

    Use another element to contain the value 'real '?

    Kind regards

    Jari

  • Calculation of length of Service - splitting of the months in the years

    Hi people,

    I was wondering if someone might have the answer to a small length of Enigma of service employee. I'm currently building a calculation that will calculate the seniority of the employee in years entire worked only. I also need to produce a second calculation to calculate the length of the month service integers worked only, but with the whole years of a month deducted value it.

    For example, if a date of hiring people is calculations on 5 February 2001 the two would return:

    7 years of service
    Length of the train 6 months

    The following calc will generate seniority as a decimalised number:

    MONTHS_BETWEEN (SYSDATE, Hire Date) / 12

    As for my person example I get 7,64 years.

    I need a way around this down in the nearest 1 for all years of service. I can't use the ROUND function because it rounds to the nearest, so when a number is no. 5 or above, it goes round and round only low when the number is n.49 or lower. Grrr.

    My next mission is to work on the months of service based on whats after the decimal. If I could round up the length of the years of service, I think that I could achieve this goal. I just have:

    ROUNDING (((MONTHS_BETWEEN (SYSDATE, Date d'embauche) / 12)-(+ ARRONDI + (MONTHS_BETWEEN (SYSDATE, Date d'embauche) / 12)) * 12))

    ROUNDOWN as my nonexistent function!

    Any opinion on this is greatly appreciated.

    Lloyd

    Use FLOOR() or tronque() instead of ROUND() to round down

  • Help with tab script and auto custom calculation

    I have implemented a two-page order form in Acrobat, based on an InDesign exported to PDF and filled it with the fields for 30 items that can be ordered.  Each item can be ordered has a color, size, quantity, unit price and Total point (the last two are read only) field.  To the point Total, I used "value is the product of Quantity.x, Price.x of the unit") calculation and to calculate the subtotal, "value is the sum of the Total of the order of the day.

    My first problem is that the scope of subtotal does not reflect the exact amount I have label off a quantity field and enter additional data on the order form.  I would like for the date to be included in the subtotal as soon as it is seized.  I read a script custom hits (tab the cursor on the following fields after the form data of types of recipients in an area of the car) which could deal with this problem, but one) I can't find the script and b) which should be formatted custom for a field that must be the number in the format.

    My second problem is coming up with a custom to variable shipping rates, calculation script based on the subtotal:

    up to $25 - $6; 25.01 $ - $75 = $11,50; $75.01.00 - $125.00 = $15.00

    125,01 $ - $200.00 = $20.00; 200.01 $- $300 = $25.00; $300.01 - $400 = $30.00

    $401,01 - $600 = $50

    I would like to have two radio buttons, one for select Pickup (no charge) and the other to select priority mail delivery - the option button that selects priority mail shipping will show the amount of shipping in a separate, called text box shipping charges.

    I also need a calculation that adds 5% of the subtotal more ShippingFee, if people pay by credit card.  I was hoping that a calculation simple field would take care of it.  (Subtotal + ShippingFee) *. 05)

    For any help or suggestion would be appreciated.  If I need to download the form, I can do this, even if I need to know how to do this.

    See what Bill.

  • Refresh Materilaized views without generating archive logs

    Hello gurus,

    I am faced with a situation of emebarassing,
    I have a job every night to perform a dbms_refresh on several points of view materialiled, but there are 2 Mviews who take almost 30 minutes each but another thay question generates almost 10 GB of data and my file system becomes full in one minute.

    I did an Mview Nologging alter, but that does not change.

    Soemon has an idea how to make a refreshment without generating logs archiving - or
    without logging in?

    thxs in advance
    C.

    10 default g made a DELETE and INSERT to a FULL refresh.

    It is the part of DELETION, which can generate significant cancellations and redo. You can change the behavior to TRUNCATE and INSERT if you do the update with the ATOMIC_REFRESH flag is set to FALSE.

    for example

    DBMS_MVIEW.REFRESH('MY_MV',ATOMIC_REFRESH=>FALSE);
    

    However, if your discount is FAST refresh you can compare the difference between a QUICK and a COMPLETE. (You don't have to delete and recreate the MV, you can refresh the MV with COMPLETE manually, while the other automated referesh coming FAST).

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • Add a minimum value in a calculation script

    I'm working on a new form and add a minimum for a calculation script that calculates the amount of the loan, but if the calculation is <$ 175, it fills as $175 and is no less than that.

    Current script is:

    function MyRound (nValue, nDec) {}

    var nRound = util.printf ("" %, 1-1. "') + nDec + "f", nValue)

    Return Number (nRound);

    } / / end MyRound funciton.

    custom calculation script lenderstitlebase;

    lenderstitlebase = (loanamount *. 0030) circle until neareast 0;

    calculate the value;

    var lenderstitlebase = this.getField("loanamount").value * 0.0030.

    round the value;

    Event.Value = MyRound (lenderstitlebase, 1);

    Thank you!

    Add this line at the end of the code:

    If (event.value<175) event.value="">

  • Quiz question: why Captivate address most of my slides as quiz questions?  Captivate 5.5

    I have a project that includes two interactive simulations and a short questionnaire in the middle.  The project includes most of my question slides slides, so I am unable to get accurate results.  I can not even the page of results to follow the slides in question, because it deals a much later blade as the "final question".  I looked all around the property, but found nothing.  Can I make a link to the files separate quiz in order to get the questions to calculate correctly?  Any help would be greatly appreciated.  I use Cp 5.5

    Hello and welcome to the forum,

    Not only the question slides can be marked but also all the interactive objects (click boxes, buttons, TEB) that you probably have in your simulations.

    Check the advanced Panel (F9) Interaction where you will find a summary of all the marked objects. You will need to delete the partitions and add it to the total (and reports). This can be done in the Panel itself, but it is dynamically linked to the properties pane. If you select an object with a score in the Interaction Panel, its properties will be displayed. Go to the accordion of Reporting.

    Lilybiri

  • Just starting out with calculations between fields

    I would include some text fields where numbers are entered, and then you press a button, and the mathematical results of the fields are displayed.

    In Adobe Acrobat 9 Pro, I opened forms... Start the wizard form and place all items - three numeric fields and a button. I want to add Javascript to the button to calculate the fields, but I see not possible to add the script to the button. Can someone tell me what the procedure is to add a script to the button? Can I use something other than the form wizard?

    These results (multiplication and division) must simply show in the digital field. They will not be saved anywhere. I have the Javascript code that already work on mobile devices and create a PDF version for other smartphones.

    Thank you!

    The first thing you need to know is that Acrobat uses a model of object completely different than a browser. For more information, see the Acrobat JavaScript documentation at: http://www.adobe.com/devnet/acrobat/javascript.html

    The result field can be configured with a custom calculation script that calculates the result, if the button is not necessary. Try following the calculation script customized to the result field:

    (function () {
    
        // Get the field values, as numbers
        var v1 = +getField("spurGear").value;
        var v2 = +getField("pinionGear").value;
    
        // Set this field's value
        event.value = (v2 !== 0) ? v1 / v2 : "";
    
    })();
    

    If you really want to use the button, the code would be:

    // MouseUp script for button
    (function () {
    
        // Get the field values, as numbers
        var v1 = +getField("spurGear").value;
        var v2 = +getField("pinionGear").value;
    
        // Set this result field's value
        getField("result").value = (v2 !== 0) ? v1 / v2 : "";
    
    })();
    

    You can place these functions at the level of the document and call them, in which case the first would be:

    function calcGearRatio() {
    
        // Get the field values, as numbers
        var v1 = +getField("spurGear").value;
        var v2 = +getField("pinionGear").value;
    
        // Set this field's value
        event.value = (v2 !== 0) ? v1 / v2 : "";
    
    }
    

    and it would be called like that in the case of calculating:

    calcGearRatio();
    
  • How can I perform this simple calculation?

    Hi all

    I rarely dabble in Acrobat script and Javascript is completely foreign to me, so I'd appreciate any help on this.

    I have a PDF form to order Christmas cards. I have already created fields so that people can enter a quantity for each card, and a field called "TotalPacks" which summarizes these fields.

    I need now to create calculations in two areas:

    1 CardCosts

    Each pack 4 costs, so all I have to do is to create a Javascript script that automatically gives the answer to this simple equation:

    TotalPacks x 4 =.

    2 PostageCosts

    I need a separate field to see the shipping cost, along these lines:

    IF TotalPacks = 1-6, PostageCosts = 2.5

    IF TotalPacks = 7-12, PostageCosts = 4.5

    IF TotalPacks = 13 >, PostageCosts = 6.5

    How can I automatically do this in Javascript? I know a language exist to achieve this, but is not a language I know, so I'm completely lost. Any help or advice would be very welcome. Thank you all.
    Best wishes
    BBT

    When you create a text field, you can assign the number of properties for the field, including the format and calculation. I if I had to design the form fields for each item of ' description # ', ' packs # "," cost # "," TotalCost # "and fields of totals for 'totalPacks', 'total', 'port', and 'totalDue '. The "#" should be replaced by the line number of detail.

    The description will have a format of none, the 'packaging' and 'total Packs' as a 'number' and 0 decimals. For the "TotalCost', 'total', 'port' and 'totalDue' use a format of 'number with 2 decimal places, the monetary unit is optional.

    For the calculation for the TotalCost ' # ', can be used is the "product of" and select the "packs #" and "cost #" for the line input. The "sub-total" field will be ' the sum of ' and select all fields ' TotalCost # The 'totalPacks' will be ' the sum of "all fields" packs # Postage will require a custom calculation script:

    calculate the form of shipping costs higher in the smaller number of packs
    If (this.getField('totalPacks').value > 12) {}
    Event.Value = 6.5
    }
    If (this.getField('totalPacks').value< 13)="">
    Event.Value = 4.5
    }
    If (this.getField('totalPacks').value< 7)="">
    Event.value = 2.5;
    }
    If (this.getField('totalPacks').value< 1)="">
    Event.Value = 0;
    }

    The totalDue ' "is" the sum of ""subTotal","port"and"totalDue ".

Maybe you are looking for