Issue with Proportional Spreading Script. Please help !

Hello,
I have a requirement where I need to write a spreading script for a data form. On this form user will enter data at a parent level and what the script needs to do is spread the parent level input value to the 0 level members proportinally based on the values already existing in the 0 level members.
Say the account member is “X”. All the other members on the data form in the POV/Page/Rows and Columns are 0 level members except for one that is Product which is in the Page
Product
- A
- B
I came up with this basic logic for the proportinal spread. Ofcourse I will need to include some logic with IF statement or something else to check if the cell belongs to product A or product B. For now, assuming the value is being input for A so now we need to spread that value at A to 0 level members proportionally.
“X” = ((“X” -> (@CURRMBR(“Product”)*100)/(Previous Parent Value *100))*”X”->”A”
Example with numbers:
Current member cell value = 100 (0 level member for Product A)
Previous Parent Value = 200 (Value for A)
New Parent Value = 400 (User inputs this new value by overwriting the previous value 200)
So, X = ((100*100)/(200*100))*400 = 200
Now, the logic of the formula makes sense to me and would spread proportionally, but my question is how would we get the “Previous Parent Value to calculate the % as the user will overrite it with a new value = 400 before running the rule. So, we would not have 200 anymore and unless we have it we wont be able to know the % to do a proportional spread.
I apologize if this is confusing, but please help me with your ideas on how can I achieve this proportional spreading script. I would really appreciate your inputs.
Thanks!
~ Adella

Hi,
Have you not asked this earlier?
Business Rule - Allocation Script Logic - Not working ! Please help.
But in hindsight, I think there's a little problem with the script I had posted. This was what I suggested:
SET UPDATECALC ON;
FIX(“AccountMember”,”FY11”,”EntityMember”,”Local”,”Working”,”BU”,@LEVMBRS(“Product A”,0),@LEVMBRS(“Product B”,0),”Current”,@LEVMBRS(“Dept”,0),LEVMBRS(“Customer”,0))
&Currmonth
&Currmonth = @PARENT(Product)*(&Currmonth/@SUMRANGE(&Currmonth,@RELATIVE(@PARENT(@Currmbr(Product)),0)));
ENDFIX;The problem I see here, every time the script calculates a product, the total of the siblings of the product changes and when it calculates the next product, allocation is done based on a different different total. To overcome this, you can try it this way:
SET UPDATECALC ON;
FIX(”FY11”,”EntityMember”,”Local”,”Working”,”BU”,@LEVMBRS(“Product A”,0),@LEVMBRS(“Product B”,0),”Current”,@LEVMBRS(“Dept”,0),LEVMBRS(“Customer”,0))
&currmonth(
@calcmode(bottomup);
/*copy original values to somewhere else to make sure allocation base doesn't change*/
"AccountMemberAllocBase"="AccountMember";
Endfix
FIX("AccountMember",”FY11”,”EntityMember”,”Local”,”Working”,”BU”,@LEVMBRS(“Product A”,0),@LEVMBRS(“Product B”,0),”Current”,@LEVMBRS(“Dept”,0),LEVMBRS(“Customer”,0))
&Currmonth
@calcmode(bottomup);
&Currmonth = @PARENT(Product)*(&Currmonth->"AccountMemberAllocBase"/@SUMRANGE(&Currmonth->"AccountMemberAllocBase",@RELATIVE(@PARENT(@Currmbr(Product)),0)));
ENDFIX;
Cheers,
Alp

Similar Messages

  • Issue With Receiving Calls. PLEASE HELP!!!!

    For the past couple of months both lines on my account have been experiencing issues. Randomly, when someone attempts to call one of the 2 lines (me or my wife), they receive the "Thank you for calling Verizon Wireless. The number you have reached has been changed, disconnected, or no longer in service." They then have to call back (sometimes multiple times before they can get through). I experience it when I call from my mobile to my wife's phone as well. It is become quite a pain and VZW has been NO help at all!!! They claim I am in a marginal service area. There are multiple problems with that statement.
    1. I am in a great service area and I always have full service.
    2. The problem does not always occur in my home service area!!!
    The rep then changed her mind and said it must be equipment, however my wife has been through 3 different phones within the past couple of months.
    She then recommended I changed carriers!!!!! This really upset me as I have Verizon service for everything (VZW and FiOS).
    Can someone please recommend any kind of solution????

    jnd1020 wrote:
    For the past couple of months both lines on my account have been experiencing issues. Randomly, when someone attempts to call one of the 2 lines (me or my wife), they receive the "Thank you for calling Verizon Wireless. The number you have reached has been changed, disconnected, or no longer in service." They then have to call back (sometimes multiple times before they can get through). I experience it when I call from my mobile to my wife's phone as well. It is become quite a pain and VZW has been NO help at all!!! They claim I am in a marginal service area. There are multiple problems with that statement.
    1. I am in a great service area and I always have full service.
    2. The problem does not always occur in my home service area!!!
    The rep then changed her mind and said it must be equipment, however my wife has been through 3 different phones within the past couple of months.
    She then recommended I changed carriers!!!!! This really upset me as I have Verizon service for everything (VZW and FiOS).
    Can someone please recommend any kind of solution????
    First, you really should consider calling another representative and report your disatisfaction with that prior rep. Advising you to switch carriers was in poor taste. They are trained quite thoroughly to assist customers to the fullest and not advise leaving VZW. Secondly, if the issue has transcended the device in that it has happened through multiple esn changes (your wife has been through 3, you wrote), then it obviously is not the device. Next, if you are experiencing intermittent issues with this in an area that otherwise works fine, it probably has nothing to do with the service coverage; if the coverage was a problem, you either would be unable to make a call at all, would have multiple dropped calls, or would experience an increasingly degraded call quality. This tells me that it has to do with the phone's connection to the network, which an over-the-air program attempt might resolve (*228, option number 1 - you could even possibly get away with option number 2) like the prior individual explained above. The likelihood is that you are going to need to file a trouble ticket with your lines, which can only be done through technical support after going through the initial level of troubleshooting through customer care. You really should call them again, with this knowledge backing you up.

  • FLASH ISSUE WITH MY SITE! PLEASE HELP!

    I've uploaded a test site to see how it would look and it seems there is a problem with line spacing or something??!! Flash is not my strong point so I would love some help PLEASE!!! When I view the site running off my laptop (offline) it runs fine, everything is in order. Yet online the spacing issue occurs. Its a problem because the site is fitted into a rectangle type layout that is centered in the screen, because of the spacing issue the text rolls down past the border of the rectangle and even goes out of view towards the bottom of the browser. The flash site pulls the info for the gallery and text for the main sites pages from two xml files.
    PLEASE HELP I'M DESPERATE!!!
    Big thanks!!!

    From the screenshot: Is the spacing problem the space between the bold line of text and the regular text below it?
    When you import text from an .xml file, the literal text is usually put into a variable, then that variable is used to populate the dynamic textfield with that text. The htmlText that I was referring to is the text in the .xml file. You mentioned a break tag, so I'm assuming that you are using html formatting on the text in the .xml file. If this is true, then the problem is most likely in the way that the text is organized in the .xml file. Flash sees carriage returns and spacing differently than most current browsers. It works more like older versions of IE in that it incorrectly adds vertical space to text in seeminly random ways.
    For instance, if you have text set up like this:
    Line one of the text.
    <br>
    Line two of the text.
    Flash will see this as three carriage returns, not two. You may need to re-write the text like this:
    Line one of the text. <br> Line two of the text.
    Without seeing the layout of all of the files for your movie, I can't really tell where the problem might be with the loading errors. I usually put my external files in folders that are in the same folder as the Flash movie so that the relative path is short and simple.

  • Major DNS issue with my Partner Site PLEASE HELP...

    As a a business catalyst partner my partner site is completely down and all my corporate emails have been erased.  I built a new partner site using a business catalyst template and when I uploaded the new site to my partner site there were major conflicts with the default site-wide template and the files that I am unable to erase via FTP on the partner portal so the new template never fully worked. 
    So I moved on to Plan B - which was to open a new site as a "customer" under my own business catalyst account.  Uploaded the files and the site worked, now when I tried to take my partner account domain name and transfer it to my newly created customer account I ran into a second even larger issue.  It tells me the domain name already exists (as my partner domain) - please delete all files and try again (see screen shot for details.).
    It will not allow me to erase the partner account under my partner portal as the "Delete Site" feature is not there for my partner portal (see screenshots for example).
    Please help me straighten out this mess as my business site is completely down and all my corporate emails have been completely erased. 

    I actually had the exact same problem. If you are a premium partner and rebranded unfotunately the domain name can't be moved because your customer sites are tied to that domain name.
    So the only option is to create a new domain for your site. It sucks I know, but I can see why it has to be that way.
    If you have not rebranded, then contacting support might be able to change that for you.

  • Issue with Bean.. Please Help..

    Hi All,
    I have created a 2 Portal DC Projects (" A") and ("B").
    I am getting a Bean (Ex:->"ModuleBean") in Project "A" and then I am setting this Bean in a Session Variable using :
    ModuleBean mBean=getBeanData(x,y,z);
    HttpSession PageSession = request.getServletRequest().getSession();
    PageSession.setAttribute("DataBean",mBean);
    Then I am iterating the Data from Session Value using,
    session.getAttribute("DataBean") and iterating the Data from the Bean in the JSP of the Project "A". Then I am getting the data in JSP without any problem.
    In the above JSP, I have a link, on Click of this Link it will Navigate to another Project"B" having JSP DynPageComponent("CompB") . Here I want to get the same Bean Data from the Session.
    I did like below.
    HttpSession BPageSession= request.getServletRequest().getSession();
    ModuleBean bCompBean=null;
    bCompBean=(ModuleBean)BPageSession.getAttribute("DataBean");
    Note: The Same Variable Name I used in Project "A" to store the Bean Data. Please refer the code lines given above.(PageSession.setAttribute("DataBean",mBean);)
    When I print the Value of bCompBean--It is giving a Bean Object of type "ModuleBean"  (com.qp.erlc.modules.util.ModuleBean@1a7a4a4f) .
    But Now the ISSUE is:
    When I take some Value like bCompBean.getTitle(), then it is giving a java.lang.ClassCastException.
    Can anyone tell me how to resolve this Issue.???
    I already tried as below also in Project B to get the Value from Session.
    Object bObj=null;
    bObj=(Object) BPageSession.getAttribute("DataBean");
    ModuleBean bCompBean=null;
    bCompBean=(ModuleBean)bObj;
    When I print this is also giving a Bean Object of type "ModuleBean"
    (com.qp.erlc.modules.util.ModuleBean@1a7a4a4f) .
    But here also If get some Value using getterMethod , this way also giving the same java.lang.ClassCastException.
    Please Help me in solving this Issue...
    Thanks&Regards||
    Ashok Kumar M.

    Hi,
    i am also facing same problem.. Please help me if u resloved this issue?
    Regards,
    Satya

  • Issues with canvas crop. Please help!!

    I shot some video using a Canon D5. It plays fine in Quicktime and everything. But when I put it in Final Cut, it looks fine in the viewer, but is cropped really small in the canvas. Plenty of people have explained how to crop in the canvas, but what about how to uncrop??!! I want to see and work with the full frame! I know there must be some easy solution to this -- someone please help! Also, I am using Final Cut 5.1.4

    The D5 shoots AVCHD. You need to convert that so you can edit it.
    In FCP 5.1.4, your best choices are Apple Intermediate Codec or DVC PRO HD.
    >it looks fine in the viewer, but is cropped really small in the canvas.
    Your Sequence settings in FCP do not match the codec and pixel dimensions of the source footage.

  • Issues with Adobe Revel subscription PLEASE HELP

    I received an email 9 days ago that said my adobe revel premium subscription has been paid for. I am unable to upload my photos. Please help, this happened last month as well.

    Carly,
    I addressed this on another thread and sent you an email as well.  You should be set for now, though please also respond to my email.
    Thanks,
    Peter

  • Urgent :- Issue with OC4J component startup - Please help.

    Hello Oracle Gurus,
    We are facing a very strange problem with the startup of OC4J home and the component is not starting up.
    The application server we are using is Oracle 10G 9.0.4.
    Please could you guide me as to what could be wrong so that we could resolve this problem ?
    Thanks and Regards,
    Ramanan.
    We checked up the logs and we found the following errors -
    "06/05/09 14:38:19 Start process
    06/05/09 14:38:24 Warning: Error reading transaction-log file (/u01/gcube1/oracle/j2ee/home/persistence/home_default_island_1/transaction.state) for recovery: premature end of file
    06/05/09 14:38:24 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    06/05/09 14:38:24 Recovery completed, 0 connections committed and 0 rolled back...
    06/05/09 14:51:03 Start process
    06/05/09 14:51:12 Warning: Error reading transaction-log file (/u01/gcube1/oracle/j2ee/home/persistence/home_default_island_1/transaction.state) for recovery: premature end of file
    06/05/09 14:51:12 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    06/05/09 14:51:12 Recovery completed, 0 connections committed and 0 rolled back...
    06/05/09 14:56:11 Start process
    06/05/09 14:56:17 Warning: Error reading transaction-log file (/u01/gcube1/oracle/j2ee/home/persistence/home_default_island_1/transaction.state) for recovery: premature end of file
    06/05/09 14:56:17 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    06/05/09 14:56:17 Recovery completed, 0 connections committed and 0 rolled back..."

    Hello Deepak,
    Thanks very much for your prompt reply to my problem.
    I tried to do what you mentioned in your reply to me, but still could nt manage to get the OC4J component up and running. We suspect that it may be some installation issue and we are blowing up the existing installation to make a fresh one on a new machine.
    Will keep your suggestions in mind , they really help me out and am learning :-)
    Have a great day and thanks once again !
    Best Regards,
    Ramanan.

  • Hard drive issues with early 2011 13" please help!

    Hello everyone,
    I'm new here but I need immediate help! I'll try to make the story somewhat short:
    I have a macbook pro early 2011 13".
    - Closed my lid one day (I did not make any changes or installed anything new recently) and upon reopening many hours later, the system was frozen.
    - Did a hard shut off and upon turning it on, I get the crossed out circle.
    - Recovery HD also gave me the same crossed out circle.
    - Used internet recovery and formatted/partitioned the drive.
    (Note that the drive in the bay at the moment is a Kingston HyperX SSD, not the OEM Samsung HD as I am actually using that as my secondary hard drive in my CD drive bay, which has been working fine the entire time before and during everything)
    - Tried to reinstall Lion from internet recovery but it wouldn't detect the SSD.
    - Strange, so I decided to install Lion onto an external hard drive and installed Mavericks onto the internal drive from there, successfully too.
    - Same results (crossed out circle) upon booting into the internal drive (likewise for the recovery HD).
    - I pulled out the drive and popped it into an enclosure and it could boot up from there.
    - Took it a step further and purchased an additional SSD, partitioned it and installed Mavericks on it via the external hard drive (not the SSD in the enclosure)
    - I can boot up from the new SSD, however it is extremely sluggish and freezes every few seconds with the spinning beach ball.
    I am about to reinstall a newly downloaded copy of Mavericks onto the new SSD to see if it will fix the issue (which I doubt)
    Could it be a problem with the drives or is it the SATA cable that is malfunctioning?
    I'm not sure whether or not it is worth spending so much time repairing it because I've already spent a good three or four days getting this far.
    Are the parts, repairs, hard drive replacements worth it or should I just replace it?

    Did you format the external drive for use with OS X?
    Open Disk Utility. Does Disk utility see the connected drive?
    Format it to "Mac OS Extended (Journaled).

  • Channel unavailabl​e ONGOING issue with only 1 TV - please help

    I have had tech support out to my place no less than six times for various issues. The last time they tightened a cable and said it would be fine - again I am having problems and it is only on one TV.
    The problem:
    I turn to a channel - currently Weather and History  (sometimes others)- and it shows unavailable. I reboot, bla bla and get same result. This only happens on one TV. The scifi channel currently is pixelated with poor reception. I also had a problem with a show I taped that stopped in the middle and never re-started. I call but get the same - reboot, bla bla then send a tech. They can never fix it - it seems to correct itself at some point (of course always before they send a tech).
    The interesting thing is that it is only on my living room TV - not the bedroom. I am really tired of calling tech support or changing my schedule so a tech guy can come out and not find a problem. Does anybody have any ideas or thoughts? I could really use the help!

    "The channel being unavailable is usually caused by the box not being activate correctly. when the box was installed it automatically tried to activate."
    That is incorrect. 
    If it said "not subscribed" then that would be an activation type of an issue. 
    Currently unavailable is a signaling issue.  most commonly with the coax, sometimes with the splitter, and sometimes with the box itself

  • CDN issues with muse cc. Please help

    I've created a parallax design in muse cc I want to export the HTML to create a template for a proprietary CMS. Muse exports all the assets with relative links in the HTML. I have moved all assets to a CDN and modified the links to point to the assets. When I try to open the HTML page I get a security error.
    Further investigation has shown that the main CSS file is the cause...
    I am using a typekit font as well. Which I am able to change if necessary.
    Please any suggestions on how to utilize a CDN for the assets on a muse generated page.

    I've found that if I use a muse widget like a menu I get errors using CDN however if I just make containers and do those modules externally I can effectively use muse for template creation.  Adobe should think about letting you set a different domain/sub domain or CDN for asset storage and delivery in the site properties panel. Allowing this type of dev.

  • Issues With My Home WiFi (please help!)

    Hello,
    I have a 3 month old 16GB iPad. I bought it mainly for school, and so far it's been great. In order to use my school's WiFi, I had to go trough a series of login steps (Choose a Network/Other.../Security/WPA2 Enterprise/ Username-password/ etc); whenever I'm at school and wanna use the web, I just go to Safari and type in my username and password and done. The problem is when I come home after school and I try to use my own WiFi. It used to just automatically connect, but now it doesn't at all and when I go to settings, choose my network and type my password and click "join" it doesn't log in, but instead the same "Enter the password for newtwork" window pops up no matter how many times I enter my password. It's not the network, cuz I can connect perfectly on both my iPhone and my Macbook. The strange thing is that if I reset the iPad, it just automatically connects to my network as if nothing was wrong!
    I don't know what to do or how to solve this...I'd deeply appreciate your input on this! Thanks!!

    HI and welcome to Apple Discussions...
    Tap Settings / General then tap: Reset Network Settings
    Restart your iPad.
    Hope this helps.
    Carolyn

  • Issues with bootcamp partition. Please help!

    So I got the error that some files could not be moved when I tried partitioning my harddrive. I downloaded SuperDuper! and copied my disk to an external 500gb hard drive. I reformated my disk and my drive to Mac OS X Extended (Journaled). I felt confident that I had it, but upon partitioning my disk again I read the same error. What do I do? I read in another topic that I need to restore my disk once I back it up, but what do I set as source and destination? Help in concise, easy to understand directions would be greatly appreciated.

    You replied to yourself, so I guess that means you didn't read or digest, or perhaps look at the pdf manual for SuperDuper.
    A basic understanding of repairing a system, any system.
    Or clone from A to B, reformat, and clone back from B to A.
    In between, it is a good idea to do some maintenance.
    Invest in some other tools.
    I threw in some of the things you can do to make upgrades and backups more useful and better.
    The basics of how to test a system for and resolve problems.
    http://support.intel.com/support/motherboards/server/sb/CS-029657.htm
    Permissions (which are at the bottom of useful things to know and do)
    http://support.apple.com/kb/HT2963?viewlocale=en_US
    http://support.apple.com/kb/TS1541
    Apple Disk Utility also has ability to Restore. Click on Restore tab. Also, pull down Help menu, type in a couple words, there really is online built in help.
    Maybe time for a book on computer maintenance and repair, David Pogue's Missing Manual is highly rated.
    http://books.slashdot.org/books/08/02/27/1551206.shtml
    http://www.macfixit.com/staticpages/index.php?page=20031209121115375

  • Issue with Community Documents..Please Help

    I am deploying 5.0.1 and I have community documents on some of the communities. However in the gadget you cannot see the folder structure, you just see the documents. Anyway to view the folder structure so that you can actually see the folders and drill down to the documents???

    Hmmm, we had the same question of why the Manage Docs button would be available at some times and some times not and someone at Plumtree I believe gave a different answer.
    If you have the Project Selector portlet on the same page as the Comm Docs portlet, the Manage Docs button is removed....I guess this is because the developers figured you could manage the comm docs by using the Project Selector portlet, to do so, you choose the project that has the docs you want to manage in it from the portlet and goto the Documents area of the project. Make sense....I don't know if I explained that plainly or not. When you have the Project Selector portlet chosen, all docs from all the projects showing in the Project Selector portlet will show in the Comm Docs portlet (if after you select the project within the portlet and it is listed in the portlet and the checkbox next to the project name is checked).
    Although, this theory has its little "quirks". One such quirk that I have run across is that this all seems to work when you initially start to add these portlets to a page. Once on the page, the Manage Docs button can appear/re-appear depending on what projects are selected. For example, say I am in the Content Admin Community on the Content Mgmt page, and the Project Selector and Comm Docs portlet are both on the page, if I had ONLY the Content Admin project selected, then the Manage Docs button will appear. IF, I have that project and others selected, then the button does not appear.
    If interested in any other "quirks" I have run across, just give me a call at 480-557-1215.
    Theresa

  • N95 issues with menu etc..please help!

    Hi, firstly I am not technical so I apologise for any stupid questions that I ask. BUT, I am on my 3rd N95 and the latest has just seemed to suffer from exactly the same problem as the previous two.
    I was changing the background theme and when I selected one of them, the screen went blank. I switched the phone off and back on again and now I finally worked out I have to enter my security code (I can't see anything)then green call key and the phone starts. It shows that there is no charge or reception although I see the Vodaphone sign, I can make a call, not sure about receiving as yet. If I select the menu button I see menu at the top of the screen and options and exit at the bottom but I can't do anything else. I received a message and I can't get in to read it.
    It has switched itself off and ona few times too.....
    Tried the hard and soft reset. Tried connecting via PC Suite and it says phone not compatible and I get the error code 0x80044403.
    Any suggestions? Thanks
    Anna

    It is too buggy.
    May be another repair,
    http://www.nokia.co.uk/A4222229

Maybe you are looking for

  • How do I copy an App from my wife's phone to mine

    My wife has a free App from a 3rd party authorised provider that I would find very useful. Its a gateway to a government work related suite of password secured websites. She can't remember where it came from and no amount of searching can find it. An

  • Odd file access issues OES 11 SP1

    Hello, We're running a VMWare ESXi 5.1 cluster. On that we have an OES 11 cluster managing groupwise/iprint/nss/dhcp/dns services. Over the summer we updated to SP1 on the OES side. This school year we have seen some odd issues, particularly with our

  • Nikon D90 and CS2

    Now that I bought a new Nikon D90 camera, I started trying to take photos using Nikon's RAW mode (.NEF). However, my Photoshop CS2 cannot open them the .NEF files. I have read on these forums about downloads that are available for different Photoshop

  • Tacacs authentication problem.

    Hy, I have a network with several layer 2 (c2960) attached to a layer 3 switch (c3750). All these switches are behind a firewall (ASA 5510) and the firewall is connected to a router c3810. I have an ACS v.4.x to use as a Tacacs server. In all the equ

  • Startup keys won't work

    I'm having issues logging into my intel-based iMac, so I've been trying to boot up in safe mode, as well as boot from my Snow Leopard install dvd. But, whenever I try to boot up using the startup keys (shift for safe bode, option or C key for booting