Running Calculations

Hi All,
Can anybody help me out how to over come the following scenario..
I have created a request which consists of ROW_SEQ, OPERATOR and YTD columns. I need to perform the operation(+/-/*) depends upon OPERATOR column on YTD.
My requirement is like RSUM functionality but need to perform all operations based on OPERATOR column rather than only SUM. How to implement this functionality?
ROW_SEQ OPERATOR YTD GROSS_YTD(I need to include this col)
10 + 10000 10000
20 + 20000 30000
25 - 15000 15000
How to implement GROSS_YTD calculation?
Thanks in Advance,
-Vency

One of the main problems with this kind of a report is that we do not have aggregation functions for / and *. Generally aggregation is defined for functions like average, sum etc. Also, i am not sure whether this would return uniform results for multiple reports. Do you have an uniform order by clause in your report? If the order of the *,- etc varies your entire report output would be wrong. If you only have +, - the order does not matter since they are in the same level in BODMAS. But we are dealing multiple levels of the BODMAS here. One way i can think of is to have a database function and call that function using EVALUATE.
Thanks,
Venkat
http://oraclebizint.wordpress.com

Similar Messages

  • Running calculation totals when adding pages

    http://www.funkylogic.co.uk/equity.pdf
    In a nutshell what I want to achieve is this: a cleint may own several properties, and have different percentage holding on each. Each property has a separate page of questions (the PDF above is that page). The first part of the equation is to calculate up the total equity in the property (TotEquity), and then based on the percentage holding (TotInterest), work out the individuals equity share for that property (TotalB). The form has the option to tell us about another property (addInstance), and we then have a second page with its own calculations and a new TotalB. This TotalB then becomes a running total for all pages added. Please can anyone help??

    Hi,
    Here is a version of the form: https://acrobat.com/#d=b*01ko6g2gn8Jqns9D1Hhg
    It shows how to loop through the instances of Page1. It does not appear to be working correctly (by my eye anyway). I am not convinced of multiplying the two values in the script.
    Hopefully it will give you a direction.
    A couple of things: I would not be inclined to name pages with a capital 'P' (Master pages are 'Page1'), I tend to name design pages as 'page1'. The font you are using is adding to the file size. Something like Myriad Pro is much smaller.
    Niall

  • Running calculations BSO versus ASO

    which architecture is better to use if you have to run large calculations? (Essbase Version 11)

    Allocations were introduced in ASO in 11.1.2. They are done in memory and create data slices. In theory, this could be quicker than an allocation done in BSO especially if you have to agg the cube to get what is being allocated. Plus you are not bringing in whole blocks just cells. I cant give you an honost answer because I've not tried large allocations in ASO yet. I will say if they are complicated, it will take a lot more work to set them up in ASO than in BSO. Also, if you actually use the allocation function in BSO it can be quite slow. You also get the block creation issue at time.
    I guess the onl;y thing I can advise is to set up tests in both ASO and BSO and see which performs better.

  • Running calculation on the global variable

    Hello All,
    I'm facing some requirement with OBIEE answers. I'll try to explain.
    I have following table:
    Name,    Amount,
    Beer,     1500,     
    Car,       2400
    Laptop,  2000
    During the draw above table, there is one calculation work on Amount field. For example:
    if(Amount < 1500 )
         GLOBAL_VARIABLE = GLOBAL_VARIABLE + 1;
    if else (Amount >= 1500 and Amount < 2000)
         GLOBAL_VARIABLE = GLOBAL_VARIABLE + 2;
    if else (Amount >= 2000 and Amount < 2400)
         GLOBAL_VARIABLE = GLOBAL_VARIABLE + 3;
    else
         GLOBAL_VARIABLE = GLOBAL_VARIABLE + 4; etc...
    After we need to show GLOBAL_VARIABLE on the analysis.
    BR,
    Eba

    case when Amount < 1500 then
         GLOBAL_VARIABLE + 1
    when Amount >= 1500 and Amount < 2000
    then     GLOBAL_VARIABLE + 2
    when Amount >= 2000 and Amount < 2400
    then     GLOBAL_VARIABLE + 3
    else
         GLOBAL_VARIABLE + 4
    end
    other way also can do
    GLOBAL_VARIABLE+ case statement and just 1, 2, 3. instead of adding to GLOBAL_VARIABLE

  • I am looking for a way to incorporate Mathcad 11 into labview...that is export data straight to Mathcad to run calculations

    If anyone has any ideas..please email me at [email protected]

    Hi Zvezdana, that link appears to be dead, as does this one, which search NI returns
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B799BC00B8835510E034080020E74861&p_node=DZ53027&p_source=external
    Paul.S

  • Error MRP run calculation for PO subcontracting

    Hi,,
    PO subcont (Subreq)  items was GR completely but the MRP still create the PR.
    Please let me know why it is happening
    Regards
    VR

    hi,
    Few check points:
    1. Maintain Proper settings for MRP field in the source list.
    2. in the MRP 2 tab, use special procurement indicator for subcontracting.
    3. while planning for MRP, check for the creation indicator ...the priority will be opp for PR and subcontracting, so check properly...
    Regards
    Priyanka.P

  • Hp10b11+ calculator error message "running" when using INPUT and Shifted AMORT keys- why?

    above describes the issue. Any ideas why? I've tried resetting methods, batteries removed,etc.

    Thanks, Yes I understand that the calculator message "running" should be a brief event. It's definitely not. Many minutes can go by and no change.  And the display does not show what my course manual states should be coming up.
    Its a mortgage calc. using the following sequence:
    KEYS USED:                                        DISPLAY:
    6 I/YR                                         6              
    12  shift P/YR                          12
    60000 PV                                  60,000
    240 N                                          240
    0 FV                                             0
    PMT                                           -429.858635087
    then rounding payment up:
    429.86 +/- PMT                      -429.86
    N                                                    239.998529245
    36INPUT shift AMORT          PER 36-36                     *This is what is supposed to display, but this is where "running"
                                                                                                        displays and does not solve.  I left the calc. alone for a very long time.
    So I have removed both batteries, and tried to run different clearing options that the manual outlines. Nothing is mentioned about the functon of the INPUT key or what to do with this error. The calculator had done numerous other functions without a problem, so I am wondering if there is some value stored that creates a long running calculation, or if there is indeed a glitch with the actual calculator that presents itself with these calculations. 

  • OBIEE 11g write back to Essbase and run calc script feature

    Hi,
    I have a requirement to write back into Essbase Cube and run calc script from OBIEE dashboard.
    From what i have search on google, we must deploy additional Java Script into weblogic, but that is before OBIEE 11.1.1.6.
    I have 2 question:
    - Does OBIEE 11.1.1.6 already supported native write-back to Essbase and running calcscript?
    - Anyone has example of the custom java-script for write back and running calcscript?
    And another, if there are requirement like this, is it better to install Essbase Add-in on Microsoft Excel and do the what-if analysis there, then just display the report on OBIEE dashboard? (based on user-friendliness and the complexity on maintenance)
    Thanks in advance.

    Hi,
    Even I am trying to achieve the same thing as you have mentioned but think that it is not possible to achieve easily in obiee 11.1.1.6, though we do have a work around to perform a writeback in Essbase cube using JAPI as mentioned below.
    Also we can call Hyperion reports from OBIEE using Action Links and also pass parameters to the same but dont know if it runs calculation script.
    Below link could be useful for you for write back workaround.
    http://oraclebizint.wordpress.com/2009/05/25/oracle-bi-ee-10-1-3-4-1-writebacks-to-essbase-using-japi-and-custom-html-part-1/
    Let me know in case you have found out anything else related to same.
    Thanks,

  • Not seeing value of any function in calculator

    Hi, please help me,
    I using a function pixel count in my inspection. In a main window i can see a count of pixels, which is 171698. But if I try to debug calculator function, the value is 0,00E+0. Any idea why the values are not the same. Thank you dor any helping answer

    Hello,
    in general there is a big difference between editing and running calculator step. Values of controls coming from previous steps are not automatically updated (while creating calculator step). You need to click "compute results" button on the Measurement tab to force update of inputs . After that you will be able to debug your code with proper control values.
    Regards,
    Ondrej K.
    NIEE AE

  • Date Difference Calculation in BSO Cube

    Hello,
    need help with Date Calc
    I have a Dim. Called Inv Date and another Dim. Check Date( which is Time Dim.)
    I will like to do this calculation Inv Date - Check date and store the difference in a Measure member called days outstanding
    This should return how many days difference between both dates.
    will really appriciate if some one could help.
    thkx
    mits
    Edited by: user12527998 on Jan 28, 2010 1:43 PM

    Hi,
    I always find a post by John Booth's a useful guidance when you are wanting to run calculations with dates, have a read at :- Calculations with dates
    If you are using Version 11 you also have a look at the new date functions e.g. @DATEDIFF - http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/calc_datediff.htm
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Discoverer plus running totals

    hi,
    any help will be appreciated.
    I use Oracle discoverer plus. recently I tried to build a running total (average) calculation using the template provided. I defined 10 previous observations for this purpose. discoverer performed the calculation but the problem is with the first 9 (in this case) observations of the new calculation, because it averaged the first first observation, than the first two, than the first three and so on. when you get to the tenth observation it becomes correct, but you can imagine it is problematic, especially the graphic presentation. if I could present the graph only from the tenth observation and on it would be an acceptable compromise. any other suggestions are welcome too.
    Thanks.
    Mark.

    Hi,
    I am afraid it is not at all clear what you are trying to do here. If you think of your results as a table of data do you want your calculation to be the same for all rows, a group of rows, or a running calculation changing for each row. Any graphical representation must be based on this underlying data.
    Rod West

  • Upper-level Essbase data gets deleted on running CALC ALL

    Hi,
    We have a need to aggregate missing values (#Missing) to the parent level and so this is what we did. Go to EAS->Expand Essbase Servers->Expand the concerned application->Right-click on database->Edit->Properties and check the option to "Aggregate missing values". After doing this, we are having a peculiar issue when we execute "CALC ALL". We see that some of our upper-level data (non-level 0 data) gets deleted, and so we have to re-run all our business rules to calculate upper-level data. To be specific, we are having this issue of data going missing in accounting statements/reports such as Balance Sheet/Income Statement. In this reports, the rows are members of Account dimension (Dense) and the columns are members of Company dimension (Sparse). All other dimension are made POV. We did NOT have this problem when the 'Aggregate missing values' option was UNCHECKED. Does CALC ALL work differently when AGGMISS option is ON?
    We are using Hyperion Planning, Essbase and Financial Reporting (version 11.1.1.3).
    Thanks for any advice.
    Regards,
    ABG

    Hi John,
    Now that you mentioned your point about upper-level data, I double-checked the Account dimension members (for which the data was being deleted) and you are right that I am seeing a different behavior than I posted originally. Sorry about that. So this is what I am observing:
    The Account dimension has 'Balance Sheet' as one of the children. This member, 'Balance Sheet', has children: Cash, Receivables, Payables so on, and all children of 'Balance Sheet' are level 0 members. Now, we run calculation scripts to calculate the values of these members. These members form the rows of Balance Sheet report. After all the relevant calc script have been executed, I am running a script that has just CALC ALL in it. I am observing that the values of Cash, Receivables, Payables etc (level 0 children of Balance Sheet) are getting deleted when we have the option "Aggregate Missing Values" as checked in EAS.
    Then, I inserted SET AGGMISS OFF before CALC ALL in the script and now the values are intact! I am trying to understand why CALC ALL would delete those values when AGGMISS is ON?
    You said that most people do not use CALC ALL. What is the better alternative to aggregate the database then? Is it CALC DIM?
    Thanks and regards,
    ABG

  • Missing data during calculation

    Hi guys,
    I have problem in calculation:
    ELSEIF(@ISUDA("Produkt","PRD_TAB"))
    IF("Minimalny stan zapasów (tys. tabletek)" < 0 OR "Minimalny stan zapasów (tys. tabletek)" == #Missing)
    "Minimalny stan zapasów (tys. tabletek)" = 0;
    ENDIF
    IF("Seria minimalna (tys. tabletek)" <= 0 OR "Seria minimalna (tys. tabletek)" == #Missing)
    "Seria minimalna (tys. tabletek)" = 1;
    ENDIF
    "Stan zapasów BO (tys. tabletek)" = "Stan zapasów BO (tys. tabletek)"->"BegBalance";
    "Rozchód sprzedaż (tys. tabletek)" = "Ilość produkcji tech dla PPR";
    /*"Zapotrzebowanie produkcyjne (tys. tabletek)";
    IF(@REMAINDER(("Zapotrzebowanie produkcyjne (tys. tabletek)" + "Minimalny stan zapasów (tys. tabletek)")/"Seria minimalna (tys. tabletek)") == 0)
    "Plan produkcji magazyn (tys.tabletek)" = "Zapotrzebowanie produkcyjne (tys. tabletek)" + "Minimalny stan zapasów (tys. tabletek)";
    ELSE
    "Plan produkcji magazyn (tys.tabletek)" = "Seria minimalna (tys. tabletek)" * (1 + @TRUNCATE(("Zapotrzebowanie produkcyjne (tys. tabletek)" + "Minimalny stan zapasów (tys. tabletek)")/"Seria minimalna (tys. tabletek)"));
    ENDIF
    IF((-1) * "Zapotrzebowanie produkcyjne (tys. tabletek)" >= "Minimalny stan zapasów (tys. tabletek)")
    "Plan produkcji magazyn (tys.tabletek)" = #Missing;
    ENDIF;
    "Stan zapasów na koniec okresu (tys. tabletek)";
    "Ilość produkcji tech dla PPR" = "Plan produkcji magazyn (tys.tabletek)";*/
    ELSEIF (...)
    Sorry for the polish lang, everything is a name of an account.
    As you can see part of the code is commeneted. And this is a problem. If I uncomment anything calculation do not work and i lose data. After I run calculation every account value is set to #Missing.
    Even two I set in two if's at the beginning.
    When it is commented like that everything works fine.
    Does anyone see any errors in this code fragment?
    Best regards

    hello
    i can't really figure out your diagram. However, you may wanna try create probes to those expected outputs and debug your program. This helps in some cases!
    try it. hope others may provide you better solutions
    regards
    ian
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com

  • Email alert using calculation script in essbase

    Hi,
    I am doing email alerts using run calculation script.
    I have created calculation script as per provided guideline but here I am facing problem.
    RUNJAVA com.oracle.essbase.cdf.SetEmailProp "target:target1" "subject:subject_line";
    RUNJAVA com.oracle.essbase.cdf.SendMail target:target1: server:smtpservernamel.om
    from:emailid.com to:toemailid.com "body:body of test mail";
    here instead of target & target1 i m not getting what should i write here.
    & it gives me am error like:
    Error: 1200456 Problem running [com.oracle.essbase.cdf.SetEmailProp "target:starget1"][Can not find class com.oracle.essbase.cdf.SetEmailProp]
    I have created SetEmailProp.java files & also created other files from the provided site.
    is their any need to do changes in this file according to requirement?
    Could you help me out from this.
    Thanks
    Edited by: 949936 on Nov 2, 2012 6:17 AM

    The Detailed Process is :
    I have downloaded CDF_Email .zip here,I got CDF_Email.jar and , SendMail.java,SetEmailProp.Java,AlertFunctions.java classes.Then I have downloaded CDF_export.jar.
    After that I have followed all the process that written in document guide (adistrategies.com) from "KB26_Email In Calculation Script".
    I placed all these .java files and .jar files in ARBORPATH java folder . here I have created one "udf folder" and put all the files in this folder as per the guideline provided in this document.
    About udf.policy I haven't did any changes in this file. could you tell me what is the neccessary changes are required in udf.policy file to achive this task.
    Thanks

  • Error while replicating data from MSSQL to HANA

    Hello Colleagues,
    I have created SLT configuration where the replication has to happen from MSSQL database for NW BPM for 4 tables. I have also applied a transformation function to convert date columns in the BPM tables to right desired format while replicating in HANA.
    Now when I use the SAP HANA Data Provisioning Editor to replicate the data from these BPM tables, I am getting following error :
    Conv.obj. Z_BC_BPEM_EL_RDS_021: Calculation job in sender system could not be started
    In the configuration I have used Job Options as No of data Transfers Job : 003 , Initial Load Jobs : 002 , No of Calculations Job : 001
    We are using SLT 2.0 and BASIS release 740.
    Please suggest what could be done to remove that.
    Regards,
    Archana

    Archana
    There could be number of reasons for this issue. We need to first start filtering one by one and take out the possibility. Please check the things in the following order.
    1. As everyone mentioned, check if you have free available WPs. System is going to use Background WP for running calculation job in the Source system. Normally Basis define sufficient number of WPs but sometimes they are occupied.  You can check using TCode SM50 ( you need to do that on each host in a multi App server environment ).
    2. Try increasing your calculation jobs in SLT using TCODE LTRC --> Administration Data --> Change no of Jobs. Make sure you have enough free background WP in your SLT and Source system.
    Incase the above methods do not work, provide the following information.
    1. Where exactly you see the error message. Are you able to add the table to Data provisioning from LTRC.
    2. Are you able to add any more tables and do the replication.
    Mahesh Shetty

Maybe you are looking for

  • Images Change Colors between monitors while the UI stays the same

    Hey! Im having an issue where photoshop changes the colors when I move the window between my monitors, seen here: http://sta.sh/04y5s60vf3j This isnt due to the monitors themselves being different, it actually changes after a few seconds of moving it

  • WHEN-VALIDATE-ITEM Restrictions???

    How we overcome the restriction next-item,go-item under WHEN-VALIDATE-ITEM? My requirement is once something entered into text box it should validate with the database for correctness and then if info is correct then it should move to next item else

  • Why does file sharing with OS 10.8.3 fail only in one direction?

    I'm having trouble getting file sharing to work in both directions. I have a late 2012 Macmini and an early 2013 MBP, both running OS 10.8.3. I can get my mini to connect to the MBP, access the public folders, and even share screen. Going the other w

  • ORA-13516

    Hi SQL> select snap_interval from dba_hist_wr_control; SNAP_INTERVAL +40150 00:00:00.0Can anybody please explain me what is "+40150" in above snap interval ? Can i understand from above output that snapshot interval is set to zero ? because of above

  • AP Div tag properties

    I have two AP div tags on a page and I want them to have different font colours. In the AP Div properties I can change the background, the font and the font size but not the font colour. I sure there must be a simple solution but I cannot find it! Ca