Dynamic calc problem while calculation another dynamic calc member

I have 6 dimensions. Two of them are dense and are tagged as Accounts and Time. The dimension I am having problem with is called "Metrics". It was originally dense. But because the calc scripts were executing slowly, I decided to make "Metrics" a sparse dimension. Now the calc scripts are all executing pretty fast. However, I now have data issues. For example: Within Metrics, I have a hierarchy that looks as follows: Metrics Input.Amount ~ BW.YAG.EQU Dynamic Calc, Two Pass Pct.YAG.EQU Dynamic calc, Two Pass. Both of these Members have a member formula associated with them. "Pct.YAG.EQU" member refers to "BW.YAG.EQU" within it's member formula. Also, notice "Pct.YAG.EQU" comes after "BW.YAG.EQU" Any other thoughts. Really appreciate all your help in this matter. Thanks

I have 6 dimensions. Two of them are dense and are tagged as Accounts and Time.The dimension I am having problem with is called "Metrics". It was originally dense. But because the calc scripts were executing slowly, I decided to make "Metrics" a sparse dimension. Now the calc scripts are all executing pretty fast. However, I now have data issues.For example:Within Metrics, I have a hierarchy that looks as follows:Metrics Input.Amount ~ BW.YAG.EQU Dynamic Calc, Two Pass Pct.YAG.EQU Dynamic calc, Two Pass.Both of these Members have a member formula associated with them. "Pct.YAG.EQU" member refers to "BW.YAG.EQU" within it's member formula. Also, notice "Pct.YAG.EQU" comes after "BW.YAG.EQU"Any other thoughts.Really appreciate all your help in this matter.Thanks

Similar Messages

  • Problem while calculating time before 5 years

    Dear all,
    See the following code. Here i tried to calculate the time before 5 years.
    import java.util.Date;
    public class Test
            public static void main(String args[])
                    long threshold = -1;
                    long age = 5;
                    long currentTime = System.currentTimeMillis();
                    threshold = currentTime - (age*(365*86400000)); //  To calculate the time bef 5 years from now.
                    System.out.println("Threshold value(in Date) :: "+new Date(threshold));
    }The result is
    Threshold value(in Date) :: Mon Aug 06 05:42:55 IST 2007
    But when i change the code as follows
                    threshold = currentTime - (age*365*86400000); // Just removing the brackets before & after 365*86400000It's giving the correct result as follows:
    Threshold value(in Date) :: Thu Oct 31 09:12:21 IST 2002
    Why is it so?. Please explain me.
    Thanks.

    the problem is (I believe) due to int overflow.
    In your first calculation, your multiplication -- (365*86400000) is done with ints and will give an int result, an incorrect result because this will likely be greater than int allows, which on my system is 2147483647.
    the second calculation is a long * int * int, so the result will be a long which will not be corrupted.
    Try it yourself:
    public class Fubar2
        public static void main(String[] args)
            System.out.println(Integer.MAX_VALUE);
            int a = 100000000;
            int b = 500;
            System.out.println(a * b);
            System.out.println((long)a * b);
            a = 86400000;
            b = 365;
            System.out.println(a * b);
            System.out.println((long)a * b);
    }Edited by: petes1234 on Oct 29, 2007 8:53 PM

  • Problem while calculating date based on the selection

    Hi friends,
    On my selection screen i have 2 fields
    a) 1 WEEK
    b) 2 weeks
    now when the user enters value yes in 1 week it should display the data which are less than one week old from current date and if user enters yes in 2weeks field then it should display the data which are less than 2 weeks old from the current date.
    ie : in my internal table i have a date field zdate
    now i should check if the ZDATE is within one week range  ( for 1WEEK FIELD ) it should display only that data.
    similary i should check for ( 2week field on the selection scree)
    How can i do that...
    Any function modules available for the above requirment.
    Thanks in advance.
    Regards
    Kumar

    Hi Kumar,
    SY-DATUUM - X does not work when the month and year changes..
    for example if the current date is 02/01/2010
    now if i say sy-datum - 7 , the system will not recognise the month and year change here...
    I'm not sure what you're saying here is accurate.  I created the following piece of code to check;
    data l_var type datum.
    l_var = '20100102'.
    l_var = l_var - 7.
    Write: / L_var.
    The value of l_var at the end was 26.12.2009, which seems to work for me. Anurag's answer seems to be correct.
    Regards,
    Nick
    P.S. Your question actually breaks the forum rules, questions on manipulating dates have been asked many times before and the answers typically only require basic arithmatic

  • Facing problem while calculating the difference between the two dates?

    Hi
    I am using this code to calculate the difference between the two dates :
    import java.util.Calendar;
    import java.util.*;
    public class DateDifferentExample
    public static void main(String[] args)
    // Creates two calendars instances
    Calendar cal1 = Calendar.getInstance();
    Calendar cal2 = Calendar.getInstance();
    // Set the date for both of the calendar instance
    cal1.set(2006, 12, 30);
    cal2.set(2007, 05, 03);
    // Get the represented date in milliseconds
    long milis1 = cal1.getTimeInMillis(); // getting error here
    long milis2 = cal2.getTimeInMillis(); // getting error here
    // Calculate difference in milliseconds
    long diff = milis2 - milis1;
    // Calculate difference in seconds
    long diffSeconds = diff / 1000;
    // Calculate difference in minutes
    long diffMinutes = diff / (60 * 1000);
    // Calculate difference in hours
    long diffHours = diff / (60 * 60 * 1000);
    // Calculate difference in days
    long diffDays = diff / (24 * 60 * 60 * 1000);
    System.out.println("In milliseconds: " + diff + " milliseconds.");
    System.out.println("In seconds: " + diffSeconds + " seconds.");
    System.out.println("In minutes: " + diffMinutes + " minutes.");
    System.out.println("In hours: " + diffHours + " hours.");
    System.out.println("In days: " + diffDays + " days.");
    but i am getting this error :
    The method getTimeInMillis() from the type calendar is not visible
    Please suggest!!

    // Get the represented date in milliseconds
    long milis1 = cal1.getTime().getTime(); // getting error here
    long milis2 = cal2.getTime().getTime(); // getting error here Hope this works for you!!

  • Datacopy from Dynamic Calc member

    Hi All,
    Within a dense dimension(Accounts) I want to copy data from dynamic calc member to a stored member. Below is the structure of my dimension.
    Member X (~, Stored)
    Member A (Dynamic calc, TBLast)
    ----Member A1 (Dynamic Calc)
    ----Member A2 (Dynamic Calc)
    ----Member A3 (Member formula, Dynamic Calc, TBFirst)
    Now I want to copy data from Member A to Member X. I believe we cannot copy from Member A because it is a dynamic calc member, instead we can write a script which adds the children of Member A1, A2 and A3 provided A3 did not have member formula. I hope i'm right. Any suggestions will be highly appreciated. Using ver 11.1.13.
    Thanks

    Kevin,
    Unfortunately, I think this is the way it works. DATACOPY will not copy dynamically calculated members to stored members.
    Although it is not in the DATACOPY Tech Ref documentation, that's the way it works.
    Here are some older threads on the "other" board:
    http://www.network54.com/Forum/58296/thread/1184768427/DATACOPY+Help
    http://www.network54.com/Forum/58296/thread/1054220911/Datacopy+Problem
    You are going to have to come up with another way of copying the Scenario by summing the members into the target Scenario. It can be a pain because you're going to have to mind the creation of the blocks. SET CREATEBLOCKONEQ will be your friend on this one.
    Regards,
    Cameron Lackpour

  • 6.5 vs 6.2 Dynamic calc member in basis of @allocate function

    I just converted from 6.2 to 6.5 and have run across a problem in the @allocate function. It appears that it does not resolve the dynamic calc member. Formula is:"Curr Fcst"=@ALLOCATE("SumInput"->"Curr Fcst", @remove(@descendants(@currmbr(Accounts)),@Descendants(@CURRMBR(Accounts),-1)), "Consolidated"->"Curr Fcst"->&LactlmonTD, ,share); The problem is that &LactlmonTD - a substitution variable is "MAY YTD", which is a dynamic calc member. The formula works fine for a stored member "May" if you want to allocate based on last month only. This formula worked in 6.2, but does not work in 6.5 that I can see. Any ideas short of storing the data for YTD? I am logging it as a bug with hyperion.

    OK - Hyperion technical support has solved the issue with an "Undocumented feature". I needed to add the following statement to my Essbase.cfg file:CALCFGDEPOPT FALSEThe explaination was as follows:"This is basically to turn off EVENT 28 in Essbae 6.5. In Essbase 6.2 EVENT28 needs to be turned on manually in the config file, while in Essbase 6.5it is automatically turned on."

  • Dynamic Calc Member in formula not working

    Hello,
    I am having an issue trying to calculate a dynamic calc member in a calc script.
    Lets say this is our outline:
    OC_GRANDPA (Dynamic Calc)
    OC_PART1 (Dynamic Calc) (+)
    Child1 (Calculated at top of calc script - STORED member) (+)
    Child2 (Calculated at top of calc script - STORED member) (+)
    OC_PART2 (Calculated in middle) of calc script - STORED member [NO CHILDREN] (+)
    I need to use OC_GRANDPA in a formula
    Final = OC_GRANDPA * .05 Rate;
    It is giving me 0 when I run the calc the first time and works if i run it a second time. Is this issue two dynamic calc members? I tried making them twopass and no luck either. I really do not want to make them stored then do a calc dim (accounts) in my calc script. Any other ideas?? If I make my formula use the level 0 members and not the OC_GRANDPA it works but that is not good coding in case I added more Children Id like to automatically pick up. PLEASE HELP!!!! Thanks!

    Thanks Cameron! I think I actually posted my mini hierarchy incorrectly as I am trying to put a formula on a different member under grandpa that has no children. Regardless it kept coming up zero -- all of the level 0 members are also calculated in the script. After much trial and error I ended up using the calc script for fomulas for the level 0's then I put a member formula on the member that I could not get to calculate in the script and also made it two pass. So then my calc script has the formulas for the level 0, a Calc Dim (Accounts) to perform the agg and calc the member formula then a calc two pass to calc yet another formula that uses this member.
    I do however now have a different question regarding member formulas - do you know if they calculate top down or bottom up?

  • Data not rolling up of a dynamic calc member for a particular entity

    Hi,
    In my planning application data is not rolling up of a dynamic calc member for a particular entity whereas it is working fine for other entity.
    Please find below the sample Smartview Retrieve
    ----------------Member_ALL---Member_None---Member Top---Member_ALL---Member_None---Member Top
    ----------------Entity 1----------Entity 1------------Entity 1----------Entity 2----------Entity 2------------Entity 2
    Acc1------------100----------------#--------------------#---------------122---------------#-------------------122
    NOTE: # denotes missing
    Member_ALL and Member_None are children of Member_Top. Both Member_ALL and Member_Top are Dynamic Calc whereas Member_None is Store.
    As shown above data is rolling upto Member Top for entity 2 while it is not getting rolled up for Entity 1.
    Request you to please help in finding the error.
    Thanks in Advance'
    Joseph

    Hi Joseph,
    Is Acct 1 Dynamic Calc? In that case will it NOT calculate the combination MemberTop->Entity1 as Member_ALL->Entity1 + Member_None->Entity1.
    I beleive it'll calculate the Acct1 member again for Member Top based on the dynamic formula (whatever the logic). If you make it Acct1 Stored, then the aggregation will be correct by first calculating and storing the Acct1 member and then AGG the Member dimension.
    Cheers,
    Abhishek

  • Sparse Dynamic Calc Member

    All,
    Is it better to have a sparse store member and calculating in Calcscript/Rule or sparse dynmic calc member with formula?
    Thank You

    Here's a little background on why sparse dynamic calcs can sometimes (but not always) be bad for retrieval performance:
    - Essbase stores data in one of two types of files - the Index file and the Page file. (there can be many of each type of file, depending on how much data is stored in your cube)
    - The index file stores all of the combinations of sparse members (where there is data). Think of each sparse dimension as a column in the index file.
    - The page file contains "blocks" that are made up of your dense dimension members. Each "cell" in a block is 8 bytes. (a cell being a single combination of members from each dense dimension)
    - Each row in your index file points to one and only one block. (this is why you need one member from every dimension to get to a data value)
    So let's say we have three members in one of our sparse dimensions. For the sake of simplicity, let's say this is the only sparse dimension in the cube.
    - Member "A" is stored.
    - Member "B" is stored.
    - Member "C" is a dynamic calc equal to "A" - "B".
    Question - if you retrieve on member "C", how many blocks does Essbase have to pull into memory? 2 (the blocks for A and B), plus it has to create a block in memory for member "C". (at least I think it creates a block in memory . . . . ) Either way, that's a lot of I/O, relatively speaking.
    If "C" were calculated in batch and stored, the same retrievel would only have to pull a single block into memory - the stored block for C. This is less I/O.
    So why are some dynamic sparse calcs bad and others aren't? It all comes down to how many blocks the retrieval forces Essbase to pull into memory. (FYI this "memory" is really your database caches)
    This is why sparse dynamic calcs like variance scenarios are common. A sparse dynamic calc that compares Actual to Budget doesn't pull a lot of blocks into memory. However, if you set a sparse parent to be dynamic, and it had 100 children, this would be pretty bad for performance.
    If you can visualize this concept, you can performance tune a BSO cube. It's all about I/O.
    Hope this helps,
    - Jake

  • Dynamic Calc member has more than 100 children

    In my db, I've a dynamic calc member, in say hierarchy Accounts, that has more than 100 members under it (children).
    I'm using MaxL scripts to update the Accounts hierarchy i.e. adding new members, tagging UDA's etc.
    However, the MaxL command is erroring out with a Network Error: Cannot Recieve/Send data. I understand if I try doing the update via
    EAS and try to save the outline, it gives me the more than 100 children warning but still allows me to save it but via MaxL I cannot force
    it to do so.
    This is just a warning and shouldn't MaxL still save the outline? Is there something else that am missing or is there any solution for this issue.
    This is a Sparse dimension. More members will be added to the hierarchy monthly, thereby not reducing the count below hundred.
    Any help/advise is much appreciated. Thanks.
    @deepak

    I am envisioning an entire sparse Accounts dimension with all of the upper levels dynamic. If it is like most accounts dimensions I have seen it has a lot of level zero members and a lot of parent rollups. looking at top level members could be very slow (relative to if they were calculated or dense). We have all done interesting things in our cubes to gain some performance measure trading off calculation and retrieval performance. Doing something like this is an area where a testing is crital

  • Problem while assigning user dynamically!!

    Hi ALL,
    I am doing a process for my understanding, I have a problem while dynamically assigning a  user to a action. These are the steps that I followed.
    I have created a process with one seq block.
    -sec block
    --Action 1(WD Form containing 3 Input/output fields)
    --Action 2(WD form with some text,1 input-User Name)
    --Action 3(wD form with some text, 1 input-User name)
    --Action 4(wD form with some text, 1 input-User name)
    I have mapped the output of the first form to the respective inputs of the actions.
    I have also set the "Fill from context" with the input for the respective action.
    When I run the process I give the unique user id as input. I get a error "Cannot complete action: The activity could not be read." I did this thinking that the user given as input will be assigned to the processor of the respective action. Correct me if I am wrong.
    Kindly help me in solving this issue.

    Hi,
    Your main requirement is to assign the user to actions dynamically. But your way is not correct. Using sequencial block you can not do it. You need to use Parallel dynamic block and dynamic user assignment. Here is the clear step by step doc. Please open and go through it.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/fe43ced1-0c01-0010-10ae-bc49598b18f6
    I think your requirement will be solved.
    Thanks
    Chandan

  • Can i use a Dynamic Calc member as a Shared member

    Can i use a Dynamic Calc member as a Shared member in other hierarchy?
    is it mandatory to make a member as Stored type if we want to use the same member in other hierarchy as a shared member.?
    -KK

    Yes we can create a shared member of a Dynamic Calc member.

  • Problems with iPhone freezing when trying to answer while on another call?

    I am wondering if others are having the problem with your iPhone freezing when you are on a call and another calls comes in. I have had this problem repeatedly. If I try to answer a call while on another call, the other caller can not hear me. when I try and hang up the call...iPhone freezes and disconnects ALL calls.
    I do not have a problem if I initiate BOTH calls for a conference call. I am hoping that Apple is aware of this issue and are working on a fix in the next update. Whenever that will be???
    Oh well, if you are having this problem and know how to fix it...please let me know. Thanks

    I have noticed that during or at the end of a conference call when one party hangs up all parties have always been disconnected. I can tell you that if this is the way it works normally, this is not the way is should work. This is a pain in the butt when it is necessary to call one of the parties back since that party is also trying to call you back. You both get a busy signal.
    I do not have a problem answering a second call during a time when I am on a first call. It will place the first call on hold and I will only be talking to the second party. It should work that way. My iPhone works that way.
    It should also allow you to add the second call to the first call through the 'merge' feature so that both the first and second calls can be joined together. My iPhone works that way.
    My previous Treo worked great on these situations but I do have burps with the iPhone.
    I think that the problem is with the iPhone and AT&T interface in these conditions.
    I would provide your comments to Apple via:
    http://www.apple.com/feedback/iphone.html.

  • Problem while invoking a Stateless Session bean from another bean

    Hi,
    I have a peculiar problem while coding with Stateless Session beans. Maybe you guys can help me out over here. The scenario is as follows
    There are 3 Stateless Session beans. Let Us say Bean A, B and C. There are three methods, method1, method2, and method3 inside A, B and C respectively.
    From A.method1(), B.method2(), and C.method3() are being invoked sequentially. Each of these methods does some JDBC operation and then returns.
    The problem is this, if C.method3() throws and exception, then I am unable to rollback the changes made by B.method2(). Those changes get "Committed" to the database.
    All the 3 beans have Bean managed persistence property set. I am using WebSphere 6.1.
    Any insight on why this is happening would be greatly appreciated.
    Thanks In Advance
    Amardeep Verma

    Hi,
    This is a matter of calling all three methods in the same transaction context. Most easy way of doing this is having a 4th session bean containing a method calling the other 3. Make sure that the Transaction Attributes are REQUIRED, which is the default.
    If the calls a to different backends/databases, you need global transactions and therefor XA complient database and drivers.
    HTH Robert

  • Problem with Calculations created in Analyzer Views

    Hi,I have to create a view looks as follows Y2001 5000 Act Bud Variance=================================================Sales 200 100 100(Act-Bud)Margin 300 400 -100(Act-Bud)Expense 500 600 100(Bud-Act)Here i am bring row names from one dimension andAct and Bud members from scenarion dimension. I created a calculation field i.e "variance" on screnario dimension.Is there any way to create this variance field as shown above. While calculating for sales and Margin rows i want to use "Act" - "Bud" and for Expense i want to use "Bud" - "Act".This is very much important from business perespective. Did anybody got this type of problem?.Do you have any suggestion?.I would appreciate any help given or any suggestions.Thanks a lot in advance..Regards..Rao

    The easiest way to solve this is to add a dynamic calc member in the Essbase outline for the variance calculation. You need to use the @var function and set Expense reporting tag for all expense accounts in the outline.-Magnus---Message Posted by meetrao   3/29/02 07:41---Hi,I have to create a view looks as follows Y2001 5000 Act Bud Variance=================================================Sales 200 100 100(Act-Bud)Margin 300 400 -100(Act-Bud)Expense 500 600 100(Bud-Act)Here i am bring row names from one dimension andAct and Bud members from scenarion dimension. I created a calculation field i.e "variance" on screnario dimension.Is there any way to create this variance field as shown above. While calculating for sales and Margin rows i want to use "Act" - "Bud" and for Expense i want to use "Bud" - "Act".This is very much important from business perespective. Did anybody got this type of problem?.Do you have any suggestion?.I would appreciate any help given or any suggestions.Thanks a lot in advance..Regards..Rao

Maybe you are looking for

  • How can i make my mobile me account email my primary email?

    I have an apple id and a mobile me account. I want all of my apple mail such as purchase receipts from the itunes store to be sent to my mobile me account address instead of the primary email adress for my apple i.d. Ever time i go into account setti

  • Unable to connect to the itunes store on my laptop after upgrading to ios 7.

    I have Windows XP - Service Pack 2 and after upgrading my itunes to ios 7, I am unable to connect to the itunes store.  Every time I click on the itunes store I receive a message that says "itunes could not connect to the itunes store.  An unknown er

  • Perforamance Measuring of BPEL process for Job schedular

    Hi All, I have developed & deployed a bpel process as a job schedular. This process hits two web services & calls another BPEL process. I wanted to measure performance of both the bpel processes. Kindly let me know how shall I proceed. Also wanted to

  • I did not receive my serial number

    I did not receive my serial number and it is not showing up in my products and services, even though I paid for it and received an email and it is showing on my bank account statement.  Let me know. Thanks

  • AFP on OES2.2-LX and MAC's

    Hello all, Running AFP on OES2.2-LX box. Been running great. However I've identified a bit of a glitch. MAC 10.6.6 cannot see their folders when they login. If I give them Supervisor rights to the folder that works fine. But we don't want to give the