Is it possible to have a many to many calc script equation?

Hi All,
I'm thinking there has got to be an easy way to do this - but I've tried a bunch of different ways, and I've only been getting error messages.
What I want to do is perform an allocation based on head count for a few dozen accounts. The allocation method will be the same for each account, and I wanted to write this in a single line rather than have dozens of lines, one for each account.
For Example, the following works correctly for me ( Takes Total indirect salaries loaded to "Region Items" and allocates based on headcount loaded to each child of "Operations")
FIX("Budget", @CHILDREN("Operations"))
"Indirect Employee Salaries"
= "Region Items"->"Indirect Employee Salaries" * "Office Staff - Employees" / "Operations"->"Office Staff - Employees";
ENDFIX
Because this allocation will be repeated for each account, I would like to have something similar to this:
FIX("Budget",@CHILDREN("Operations"))
@CHILDREN("Indirect")
= "Region Items"->@CHILDREN("Indirect") * "Office Staff - Employees" / "Operations"->"Office Staff - Employees";
ENDFIX
However this change to the command gives me "Calc Script Command is Incomplete" warnings.

You can do this with a "switch" on the fix etc.
FIX(@CHILDREN("Indirect") ,@CHILDREN("Operations"))
"Budget"= "Region Items"->@CURRMBR(Accounts) * "Office Staff - Employees" / "Operations"->"Office Staff - Employees";
ENDFIX
You will need to check the performance of this, especially if Budget is sparse - although it would remove create block issues.
You might also need to enclose the "CurrMbr" section in a SUMRANGE to validate, but it is a starter for you.
Hope this helps
Andy King
www.analitica.co.uk

Similar Messages

  • Is it possible to have too many keyframes in one project in Premiere?

    Hi all,
    I'm using Premiere 6 on a Windows 7 ULT machine.
    Is it possible to have too many keyframes in one project in Premiere?
    I'm getting app crashes when I try to re-open a certain project in Premiere 6 and it seems that if that file has over 93 keyframes, then it will not re-open.  But I can re-open that exact same project file with 93 keyframes in it, no problem.
    But if I go any further and create any more keyframes than 93 in a new re-saved version of the exact same file, then that file will not re-open and I get an app crash... you can see screenshots of the two Windows app crash info panels below that I'm getting from three different bad Premiere project files that I've created so far.
    I've tested and tested what is going on here and this seems to be what is causing the bad files.  I've re-created the scenario and re-created files with over 93 keyframes from the same base project file that will still open... as soon as I get more than 93 keyframes in this file, then that newly saved file will not re-open after I close and try to re-open it.
    This is 75 keyframes in one still image clip, 14 keyframes in another still image clip and 2 keyframes each in two other still image clips in a single project file... that is the limit... if I create any more keyframes in the clip that has 75 keyframes, the new file will save and render, but it won't re-open once it has been closed.
    The two slightly different app crash info panels show, in the first one below,
    "Fault Module Name: StackHash_e98d"
    ... and the second one shows,
    "Fault Module Name: PREMINFO.dll"
    ... both messages with a little more different info in each one.  I get either of the two error info panels when trying to re-open all three bad files that I've created with over 93 keyframes in them.  That is, two of the files alternate between giveing "StackHash_e98d" and "PREMINFO.dll" when trying to open them and one of them always shows the "Fault Module Name: PREMINFO.dll" error.
    So even the error messages are inconsistent with two of the bad files.
    I've searched the internet for this error in association with Premiere and I've also searched on this forum and found nothing.  Can anyone shed any light on this?
    Thanks,
    digi

    Bill,
    Even though I figured out a work around, I was still interested to know if these file opening crashes are related to Virtual Memory.
    So on the topic of Virtual Memory... a few months ago I was troubleshooting a different problem in Premeire and I found this information...
    "To improve performance in Premiere Pro, adjust the size of the paging file to a maximum of twice the amount of installed RAM."
    Previous to that time three months ago or so, I had my Virtual Memory settings at the default automatic setting, but I tried setting my VM to twice the amount of installed RAM, and I've had it set that way ever since, just to make sure I'm optimizing the VM performance for Premiere and other apps.
    But that isn't making any difference in this case.  Today I also found information in a search that says to troubleshoot StackHash crashes, one should turn off "DEP" in the system settings for the application with the crash problem... according to the paragraph below, from the second post down by Chris on this tdistler.com page... http://tdistler.com/2009/04/10/stackhash-and-application-crashes-on-windows
    Even though this was written in 2009 with Windows Vista in mind, many things for Vista work in Windows 7... it says,
    "Here’s how 99 percent of Vista users can fix a StackHash failure. I’ll walk you through it step by step:
    Method A:
    1. Open your Start menu and click Control Panel
    2. Browse to “System Maintenance” then “System”
    3. In the left panel, select “Advanced System Settings” from the available links
    4. You should now see the System Properties Window, which will have three sections. The top section is labeled “Performance” and has a “Settings” button. Click this button.
    5. Select the “Data Execution Prevention” tab.
    6. Select the option which reads “Turn on DEP for all programs and services except those I select”
    7. Use the “Browse” button to locate the executable file for the application you were trying to start when you received the StackHash error, and click Open to add it to your exceptions list.
    8. Click Apply or OK to commit your changes."
    But I tried this and none of the three problem files that I encountered would open... I still got the StackHash_e98d or PREMINFO.dll crash errors.
    So anyway, I'm a ways past that in my project now, just continuing with more keyframes over the number of 78 in separate but identical still image clips... that allows me to successfully work with this project with as many keyframes as I need.
    Thanks again,
    digi

  • Why does Firefox have so many unresposive script errors?

    Firefox 22.0 (on Mac) seems to be a dog. It continually stops responding and gives so many "A script on this page may be busy, or it may have stopped responding" errors.
    Either Facebook have done something, or there is an incompatibility between Flash, Firefox and Facebook or something. (Flash 11.7.700.225)
    I have had this before with other Firefox builds - but this time it is occurring multiple times each time I am on Facebook
    Thinking of trying Chrome if this keeps up - although I am reluctant to hand yet even more privacy info over to Google.
    The only plugin I use is Flash. I run the default theme, and the only add-ons I have are Adblock Plus 2.2.4, Adblock Plus Pop-up Add-on 0.8 and the English (Australian) Dictionary 2.1.2
    I wish each so-called 'security upgrade' came with a message that 'this version is a dog' - it is not only causing issues it is not compatible and has disable my "Easy Youtube Video Downloader 6.8"
    As per the Mozilla Help I have disabled "hardware acceleration" and also changed the value for "dom.max_script_run_time" to 20 - neither helped in any way.
    Far from happy Mozilla

    Thank you for your "copy and paste" reply. It is very obvious that you did NOT read my original post.
    If you had you would have noticed:
    a) I stated: "I run the default theme"
    and that
    b)I stated: "I have disabled "hardware acceleration""
    c)I stated: "changed the value for "dom.max_script_run_time" to 20 "
    (both of which are in response to the linked help article that you recommended - and neither of which did any good)
    d) I also stated: "The only plugin I use is Flash"
    (which is the latest up-to-date version and if Firefox cannot run with Flash it is of no use as a browser)
    I will try "Safe Mode" and post how that works after browsing Facebook - but it should not be necessary to do this.
    I had reported similar issues with Firefox two or three builds back (Firefox 19.0.2) then the issue was fixed for a couple of builds - and now with the release of Firefox 22.0 (on Mac) it is as bad or worse than ever.

  • Is it possible to have a keyboard shortcut run a script with CS6?

    I see there is an option for it to go to "other scripts" with a keyboard shortcut, but that really doesn't help much. I want it to play a specific script that is already loaded. Thanks in advance!!

    I'm working on something very similar right now.
    Written in AHK.
    so win only sorry Macsters...
    Scans a folder of your scripts and displays them in a panel (see above)
    you can click any one like a button.
    or you can eg. 3 enter.
    Panel can be dragged to where ever you want it.
    Still playing with the finishing touches and will post the finished result once I am done.
    That will be next year some time, as I am finished work for the year.
    Run, % "[Full path to]\Illustrator.exe " Scriptlocation JSName
    this is my AHK line to run the script.
    any reason for the cmd.exe section

  • Is it possible to recover my data from iCloud backup without working wifi? I have as many other upgraded my iPhone 4S to iOS 7.0.2 with the result that the Wi-Fi or Bluetooth no longer works. However, i can connect to iTunes via cable but there is wrong v

    Is it possible to recover my data from iCloud backup without working wifi? I have as many other upgraded my iPhone 4S to iOS 7.0.2 with the result that the Wi-Fi or Bluetooth no longer works. However, i can connect to iTunes via cable but there is wrong version of backup.

    Answer is no.
    If you want the iCloud backup you have to have n internet connection, thus WiFi.
    The not working WiFi has happened with quite a number of users.
    It is not exactly clear what is the cause but there are suggestions to clear it up:
    Some people have had success by removing an apostrophe from the iPhone name. If your iPhone is called something like “John’s iPhone” then this might work. Go to Settings > General > About > Name and change it to something with no apostrophe.
    Some people have reported success by putting the iPhone into Airplane mode and then going to Settings > General > Reset > Reset Network Settings, but the problem may return.
    You could also try going to Settings > Control Center and disable Access on Lock Screen then turn your iPhone off and on again.
    Make sure that your router firmware is up to date.
    Try backing up your iPhone and then restoring it. Check how to factory reset an iPhone for details.
    If nothing is working for you, try contacting Apple or take your iPhone into an Apple Store.
    Succes, Lex

  • Is it possible to see how many COGI errors I have cleared in previous month and in which transaction I can able to see that record?

    Is it possible to see how many COGI errors I have cleared in previous month and in which transaction I can able to see that record?

    Mukundan,
    Refer Below SAP Note 1868084 - FAQ: Transaction COGI
    Question:
    Is it possible to log the actions in transaction COGI?
                  Answer:
    SAP Note 309050 provides a modification but it can only be used temporarily. Also refer to SAP Note 1894587 in this context. It provides a report for displaying and deleting the data records in the log table AFFWPRO.
    BR
    KK

  • Is it possible to have a notification of how many unread emails each user has show on the logon page in lion?

    I use my mac air  mainly for work but also have logins for each of my children.  Their email accounts sit on my computer because I really like lions parental controls (our other computer is a pc running windows xp and the parental controls suck!).  Does anyone know if it is possible to have a notification of some sort on the login screen which shows when a user has unread emails?  My kids don't use the computer that much and sometimes don't receive emails for days because we don't remember to check (they are only 9 and 7 yrs so don't get alot of emails as yet).  I would be really grateful for some help with this.  Thanks

    I don't believe that is possible.  There may be some kind of tool you could use to display unread counts for their accounts in the menu bar or somewhere similar on your account...  but I'm not aware of what tool might do that.  A quick look only turns up tools that work with Mail or other mail clients, rather than being able to connect to a separate IMAP account and check the mail there, independent of any mail client.

  • Jst got a iphone 4s and my itunes is not picking it up at all i have tried many things from the internet but still not working

    Please help ... Stressed new iphone user!!!!!!!!!! lol.
    i got a new iphone 4s on friday, people told me i needed to connect this to the itunes asap.
    i have had a ipod for 4 years and had no problem connecting to itunes before.
    at first my computer would not find the iphone so i looked up tips from apple and other internet sources ... after deleting temp files my computer picked up my iphone but itunes didnt... i kept getting a pop up when going on to itunes saying "this iphone cannot be used because the required software is not installed. Run the itunes installer to remove itunes, then install itunes again.
    So i did i did this serveral times and the pop still keeps coming up and everytime i reinstall itunes i have to delete temp files for my computer to pick my iphone up. i contacted apple and an adviser sent me a link to follow to delete itunes and other in a order which i did several times and still not worked.
    i tried my iphone on my mums computer and it has picked it up but in my mums itunes i want my itunes as i have purchased many songs. now my ipod wont even register to itunes. i also get a pop up from windows saying Host process for windows services stopped working and was closed ... i ahve followed all the advice for that even a clear up on my computer and still nothing. you can even find apple mobile device anywhere on the computer tho my mobile is charging when plugged in. i have tried everything that apple reccomends anyone able to help
    Thank you

    Try this article if you haven't already
    This is the only possibility that came to my mind when reading about your issue:
    "If an iPhone, iPad, or iPod touch is not recognized in iTunes on Windows, the Apple Mobile Device Service (AMDS) may need to be restarted"

  • Since upgrading to FF6 and now through FF7 web pages need repeated refreshing to load this does not happen with other browsers. I have tried many solutions. None have worked. Any ideas?

    Problem began after a Firefox 6 update (i do not remember which one) and has continued through current use of Firefox 7.0.1. Almost all '''web pages load only through repeated refreshing'''. If I do not refresh the web page it will just continue to try to load (as seen by the green rotating ring continually revolving) in a new window with a new tab (as I have set it to do). Nothing stops, nothing crashes. Once the web page completes and opens (after the refreshings) I can close the window click on the bookmark icon or originating link and the web page will load and open quickly (as it should). I have searched for solutions on the Mozilla site and have done many of the possible solutions (deleting history and caches, etc.) Problem seems to be communication in origin (my FF browser talking to web page server). I do not use a proxy. My set up to the internet is: laptop thru Verizon USB modem to internet. Operates as a wireless dial-up with speeds averaging 55 kbs (fast enough for me). I have used this set up for years with no previous trouble. Anyone have similar trouble, ideas or solutions?

    Thanks for your reply cor-el. I had never heard of nor seen the pref network.http.max-connections until I read about it in some of the replies in this support forum. People were saying 256 was the old setting and a new setting of 48 would correct my problem. When I followed the instructions to get to - see - and change the setting I discovered that my network.http.max-connections was already set to 48. I never did this. The only way I can think of that this setting was changed is that it happened by an automatic update to my Firefox browser. So, the problem I have was probably happening while this setting was at 48 all along. It is still set at 48 and I am still having the same problem. I will try as you suggest and set it to 30 and see what happens. I'll let you know the results. That's again for your response.

  • Is it possible to have two USB drives for the IPad?  I want to bring RAW photo files from my camera, through the IPad and back to an external hard drive.  One of my cameras does not use an SD card.  How can I do this?

    Is it possible to have two USB drives for the IPad?  I want to bring RAW files from my camera through the IPad and out to an external hard drive.  One of my cameras has an SD card but the other one doesn't have a card that would fit in any of the camera devices I've seen on line.  Realted to this, I bought the IPad camera accessory.  Can I put the SD card in the device and also hook the external hard drive to the USB port of the accessory and download from the camera to the hard drive?  Can I put Lightroom or the Nikon photo editing software on the IPad?  Right now I carry a PC laptop and external hard drives with me on wildernes trips.  Internet and WiFi are not available.  Because I shoot so many photos and they're in RAW I need to download from the camera to the external drive because I run out of memory on the PC (and it has much more memory than the IPad).  I have Nikon NX software and lightroom on my PC.  I'd love to be able to reduce the weight I carry by using the IPad to edit my photos each night while on trips.  Is this possible and how would I do it?  I'd appreciate any guidance.

    No, the camera connection kit only supports the copying of photos and videos to the Photos app, it doesn't support copying content off the iPad. For your second camera instead of the SD reader part of the kit, does the iPad to camera cable not work with it for direct transfer to the iPad ?
    For Lightroom and Nikon software again no - you can only install apps that are available in the iTunes app store on your computer and the App Store app on the iPad, 'normal' PC and Mac (OS X) software are not compatible with the iPad (iOS). There are some apps that perform fairly basic editing functions that are available in the store, but nothing as sophisticated as, for example, Lightroom.

  • I have copied many photo's from another laptop to my Mac.  The older photo's are in directories with names that help me select what I need to view. I would like to have all my imported new photo's also bee added to the directory structure I have in Finder

    I have copied many photo's from another laptop to my Mac.  The older photo's are in directories with names that help me select what I need to view. I would like to have all my imported new photo's also bee added to the directory structure I have in Finder but my new photo's are all in iPhoto.  I want to use directories for storing and iPhoto for viewing.  Is this possible or do I need to have all my photo's in iPhoto??
    Mitch

    iPhoto is not a Photo Viewer. It's a Photo Manager and designed for looking after the files while you organise the Photos. It really works much better if you let it manage those files. If you use iPhoto you never go near those files because iPhoto is your start point for anything you want to do with your Photos - the point of the pplication.
    You can run iPhoto in Referenced mode, where it does not copy the files to the Library, but I caution you that you are making life a lot more difficult for yourself by doing that.
    How to, and some comments on why you shouldn't, are in this thread
    https://discussions.apple.com/thread/3062728?tstart=0
    Regards
    TD

  • Is it possible to have more than one event/project in Imovie at the same time?

    Let me see if I can shorten this. I am working on a project for a review. It's going to take quite awhile and I'm half way through it. However, I need to work on another project, one thats short and I can dish out fairly quickly. My problem is that I cannot start it without discarding my current project. Which I cannot do because I will lose a weeks worth of data. And I cannot save it because it will combine all the clips and I would have to re-split them (half a days progress).
    So in short, is there a way to save my project as-is? Or possible create a new event and start a new project while maintaining my current work? Thank you for your help!

    Version 10.0.3 is the latest version of iMovie. iMove '11 (as in 2011) is version 9.
    iMovie saves your Projects automatically. So you can just choose to create a new Project. Your existing Projects will remain available for you to go back to whenever you like.
    You can have as many Projects as you like. You don't need ot finish one before you begin another.
    Post back if you have specific questions.
    Matt

  • Is it possible to have a PDF form flow to a second page IF the user needs to type in a lot of information? ( Like a Word Doc would)

    Is it possible to have a PDF form flow to a second page IF the user needs to type in a lot of information? ( Like a Word Doc would)
    An automated second page.

    There are two approaches.
    If you wish to use AcroForm technology, then you would need to write a bunch of JavaScript to enable this.  It has been done, but it’s not trivial.
    If you wish to use XFA technology, then it can be setup to happen automatically.
    Be aware that in both cases, even though both technologies are part of the PDF standard, that the forms will only be usable in this manner in Adobe’s viewers as many others don’t support JavaScript or XFA.

  • I have a MacBook Air w/ 64 GB. I have hours and hours of music/vids/etc. Is it possible to have an external drive specifically set-up for my iTunes? If so, what do I need to do? Thanks!

    I have a MacBook Air w/ 64 GB. I have hours and hours of music/vids/etc. Is it possible to have an external drive specifically set-up for my iTunes? If so, what do I need to do? Thanks!

    Yes, many people do just that. Copy your iTunes folder to the external drive. Once done, open iTunes with Option held down and select the new location of the library file.

  • Is it possible to have Different Interval Ranges for the same Doc Type

    Dear All,
    Here is the issue.Is it possible to have different interval ranges for the same document type according to certain condition.Like my client , wants his interval ranges  be divided according to region(which are many)
    Regards,
    Sameer Jalees

    Hello,
    As you know we can only assign one number range for External and one number range group for internal in the sales document type.
    If you want different number ranges based on the regions, then as Jignesh suggested, you need to go for an enhancement.
    Use the exit USEREXIT_NUMBER_RANGE in program MVA45AFZZ, include a Z table with region as a critera and number range group for different numbers based on the regions. Talk to the business and get more details, get the help of ABAP team for technical details.
    Regards,
    SAM

Maybe you are looking for