Help on Crossjoin Syntax Please on ASO Allocation

Hi,
Tyring to run an ASO Allocation via MaxL. I always have trouble with syntax on CrossJoins for some reason. When I run the below I get an error:
ERROR - 1260052 - Syntax error in input MDX query on line 1 at token ')' .
ERROR - 1241192 - Allocation terminated with Essbase error 1260052 in AMOUNT.
execute allocation process on database appname.dbname with
pov
"Crossjoin(Descendants([Total Year],[Year].levels(0)),
Crossjoin(Descendants([YearTotal],[Period].levels(0)),
Crossjoin(Descendants([Version],[Version].levels(0)),
Crossjoin(Descendants([Total Product],[Product].levels(0)),
Descendants([Total Employee],[Employee].levels(0)) ))))"
amount "([NET INCOME/(LOSS)],[Actual])"
target "([OH_Per_Unit],[AllocAct])"
range "Descendants([Total Entity],[Entity].levels(0))"
basis "([Funded Units],[Actual])"
share;
logout;

This is something which I've done
execute allocation process on database smp.smp with
pov 'Crossjoin(Crossjoin(Crossjoin(Crossjoin(Crossjoin(Crossjoin(Crossjoin({Descendants([AC_10000], [Accounts].Levels(0))},{&ActualMonth}),{&ActualYear}),{Descendants([Input Currency], [Currency].Levels(0))}),{Descendants([no entity], [Entity].Levels(0))}),{Descendants([Country Code], [Country Code].Levels(0))}),{Descendants([cost center], [Cost Center].Levels(0))}),{Descendants([Source], [Source].Levels(0))})'
amount '([PRTOT], [Actual], [All Clients], [Act_Tot], [Final])'
target ""
range 'Crossjoin(Crossjoin(Crossjoin(Crossjoin({Descendants([Working], [Version].Levels(0))},{Descendants([Plan], [Scenario].Levels(0))}),{Descendants([100-10], [Product].Levels(0))}),{Descendants([cl_cola], [Client].Levels(0))}),{Descendants([act_12121], [Activity].Levels(0))})'
spread;You cannot paste your code, calc manager provides a GUI version of allocate command where you can just type in your members.
Regards
Celvin
http://www.orahyplabs.com
Please mark the responses as helpful/correct if applicable
Edited by: Celvin Kattookaran on Apr 11, 2013 2:16 PM

Similar Messages

  • Help with MM_editCmd.CreateParameter insert syntax please

    In the past (I guess older ASP version maybe?), the
    automatically generated code that DW created using the "insert
    record" wizard allowed for easy editing and debugging within the
    SQL. I just installed CS3 and created a similar page and the code
    used to build the insert statement is quite different.
    Unfortunately, I'm not versed well enough in it yet!
    I can see how the SQL insert is being built:
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_wp_STRING
    MM_editCmd.CommandText = "INSERT INTO test (FName, LName,
    Company, Email, BPhone, BFax, MPhone, Props, regDate, Password,
    MBroker, MBID, Status, ARID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
    MM_editCmd.Prepared = true
    ...and then it appears to uses some scripting functions to
    build the values and replace the ?'s in the CommandText line:
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202, 1, 255,
    Request.Form("FName")) ' adVarWChar
    What I'm struggling with is the values inside each Append
    line (202, 1, 255) and what the relate to AND more importantly, how
    I can insert my own variable here instead of the form field data.
    ex:
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202, 1, 255, StrMyStringValue)
    ' adVarWChar
    I need help with the syntax. Would it be different if the
    variable holds a number value vs. text (assuming the field it's
    being inserted into hold numbers)
    Also, i USED to be able to add a handly little Response.Write
    before the execute insert line that would write the SQL insert
    statement to the screen and stop so that I could SEE where the
    issues were. I've tried:
    Response.Write(MM_editCmd.Parameters)
    Response.Write(MM_editCmd.CommandText)
    Just can't get the SQL text to display. Is the SQL insert
    statement not stored as a variable that i can call?
    Thanks VERY much for any help!

    You can use the concatenate() function to build up your string, as you no doubt know.
    As far as the wildcard goes ... your intention must be to try to SET the call variable and later on test the call variable with an IF node. Is that right?
    You would be able to test parts of the string using the substr() function - which is based on character position. If that is a fixed value that you know, it's easy. If it's not, you can first use the find() function to locate something (like the "_9"), returning the position, and then use the substr() function to pull it off.
    Can you write some pseudo-code here to define exactly your intention? You can set up a dummy script and send a dummy call through using Call Tracer and watch the output to see how your code is working.
    Regards,
    Geoff

  • Help me in Conerting BSO to ASO cube

    IF(@ISLEV("Time Service",0)) @SUMRANGE("# of Requests",@CURRMBRRANGE("Time Service",LEV,0,,0))/"# of Requests"->"Time Service"; ELSEIF(@ISLEV("Time Service",1)) @SUMRANGE("# of Requests",@CURRMBRRANGE("Time Service",LEV,1,,0))/"# of Requests"->"Time Service"; ELSEIF(@ISLEV("Time Service",2)) 1; ELSE #Missing; ENDIF;
    ASO ONE IS
    CASE
    WHEN
    IsLevel ([Time Service], 0) Then
    Sum([ # of Requests], CurrentMemberRange([TimeSerive],[Lev],0,,0)]/[# of Requests],[Time Serive]
    When
    IsLevel [TimeService], 1) Then
    Sum ([# of Requests], CurrentMemberrange([TimeService],[Lev]1,,0)/[# of Request],[Time Service]
    When
    IsLevel([Time Service],2) 1 Then
    [# of Missing]
    End
    cAN ANY ONE HELP IN FIXING ERRORS PLEASE.

    Try this instead. This should be correct for syntax. See if it returns the correct result.
    CASE WHEN ISLEVEL([Time Service].CurrentMember, 0) THEN
    SUM(CROSSJOIN({[# of Requests]},
    {OPENINGPERIOD([Time Service].levels(0), [Time Service]) : [Time Service].CurrentMember})) /
    ([# of Requests], [Time Service])
    WHEN ISLEVEL([Time Service].CurrentMember, 1) THEN
    SUM(CROSSJOIN({[# of Requests]},
    {OPENINGPERIOD([Time Service].levels(1), [Time Service]) : [Time Service].CurrentMember})) /
    ([# of Requests], [Time Service])
    WHEN ISLEVEL([Time Service].CurrentMember, 2) THEN 1
    ELSE MISSING
    END

  • Essbase ASO Allocation

    Hi, all,
    I am writing an ASO allocation script, which is working now. However, I wonder whether there is any way to easily have some mathematics operations on some of the fields. For example, in the following allocation script, how can i use the negative figures of the amount to allocated out? For example, "([East],[Total_Expenses])" is a positive 1000. However, I would like to have the negative 1000 (e.g. -1000) to be allocated amount?
    execute allocation process on database DemoASO.Basic with
    pov "Crossjoin(Descendants([Year],[Year].levels(0)),
    Crossjoin(Descendants([Product],[Product].levels(0)),
    Descendants([Scenario],[Scenario].levels(0))))"
    amount "([East],[Total_Expenses])"
    target ""
    range "CrossJoin({[Sales],[Cost_of_Goods_Sold]},
    Descendants([South],[Market].levels(0)))"
    spread;
    Is there a easy way to do such amount calculation in the ASO allocation script? Or I have to created additional members in outline to do such reversal of the sign?
    Appreciate any suggestions/ideas?
    Thanks a lot

    Major caveat - I haven't used the function - but have you looked at the Technical Reference?
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/maxl_execalloc.html
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/maxl_alloc_numeric.html
    The example there says that 'amount' is a numeric expression, i.e. you don't just have to list a member or tuple there. It looks like you can use an arithmetic expression, but if you do all members must be from the same dimension - so your {[East], [Total_Expenses]} might be problematic. But that's obviously a sample rather than your actual use case.

  • My Mac was updated to Ÿosemite OS and since then the PS5 software doesn't open. I need help on this subject please.

    My Mac was updated to Ÿosemite OS and since then the PS5 software doesn't open. I need help on this subject please.
    They error message I get is "An unexpected and unrecoverable problem has occurred. Photoshop will now exit."
    This only started after I upgraded my OS to Yosemite.

    The upgrade has been know to break Photoshop CS5 installs. An Uninstall/Reinstall may be necessary.

  • If you want to access the PowerShell 3.0 Help in another language please vote for my Connect suggestion!

    All my Windows operating Systems are set to use the UI Culture: German
    With Update-Help or Save-Help you can download PowerShell help in different (any) language by use of the –UICulture parameter.
    Update-Help –UICulture en-US
    Because my Windows OS is set to use the German UI Culture and the Cmdlet Get-Help depends on it, I cannot access PowerShell help in a different Language (English) with Get-Help.
    There is still no translated German PowerShell help and even if I have installed the en-US verbose Help files I cannot use it (easily)!
    I made a suggestion on Microsoft Connect to add the –UICulture Parameter to the Get-Help Cmdlet, to make it possible to call Help in a different language then the Windows Ui Culture.
    As a workaround until then you can use the  .NET Class [System.Threading.Thread]::CurrentThread.CurrentUICulture to set the UI Culture and get Help in a different language.
    Function Get-HelpUICulture {
    param (
    [String]$HelpSearchString,
    [String]$UICulture
    # remember the UICulture
    $OldCulture = [System.Threading.Thread]::CurrentThread.CurrentUICulture
    trap
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldCulture
    # set thread to given UICulture
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $UICulture
    # call powershell help in given language
    Get-Help $HelpSearchString -Full
    # reset UICulture
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldCulture
    # Example: call PowerShell en-US help in verbose English:
    Get-HelpUICulture -HelpSearchString Get-Command -UICulture ‘en-US’
    If you want to access the PowerShell 3.0 Help in another language please vote for my Connect suggestion!
    https://connect.microsoft.com/PowerShell/feedback/details/767899/please-add-uiculture-to-get-help
    Please click “Mark as Answer” if my post answers your question and click
    “Vote As Helpful” if my Post helps you.
    Bitte markiere hilfreiche Beiträge von mir als “Als Hilfreich bewerten” und Beiträge die deine Frage ganz oder teilweise beantwortet haben als
    “Als Antwort markieren”.
    My PowerShell Blog http://www.admin-source.info
    [string](0..21|%{[char][int]([int]("{0:d}" -f 0x28)+('755964655967-86965747271757624-8796158066061').substring(($_*2),2))})-replace' '
    German ? Come to German PowerShell Forum!

    Hello JosKW
    Thank you for your suggestions!
    In my 3 Part Blog Series about the new 3.0 PowerShell,  I offer a full blown Proxy Function for the Get-Help cmdlet to solve this better.
    For now I have the first two Articles Published at my Blog, the Third Part will follow soon:
    PowerShell 3.0 updateable help Update-Help, Save-Help und Get-Help Basics
    http://www.admin-source.de/BlogDeu/497/powershell-3-0-updateable-help-update-help-save-help-und-get-help-grundlagen
    PowerShell 3.0 updateable help Update-Help, Save-Help und Get-Help using
    http://www.admin-source.de/BlogDeu/523/powershell-3-0-updateable-help-update-help-save-help-und-get-help-anwenden
    The Articles are written in German. I think you as a Dutchman can read this.
    Or you can use the Translate Button on my Page, to use Google Translate Service to read this in the Language of your choice. ;-))
    Cheers Peter
    Please click “Mark as Answer” if my post answers your question and click
    “Vote As Helpful” if my Post helps you.
    Bitte markiere hilfreiche Beiträge von mir als “Als Hilfreich bewerten” und Beiträge die deine Frage ganz oder teilweise beantwortet haben als
    “Als Antwort markieren”.
    My PowerShell Blog http://www.admin-source.info
    [string](0..21|%{[char][int]([int]("{0:d}" -f 0x28)+('755964655967-86965747271757624-8796158066061').substring(($_*2),2))})-replace' '
    German ? Come to German PowerShell Forum!

  • I need a help !!! Please  ,I dropped my iPhone 5 in toilet and I didn't get fast  maybe 5mins before I get it because I didn't notice drop it and it won't work now  it's almost 1week I'm waiting it  still  it don't work ...

    I need a help !!! Please  ,I dropped my iPhone 5 in toilet and I didn't get fast  maybe 5mins before I get it because I didn't notice drop it and it won't work now  it's almost 1week I'm waiting it  still  it don't work ... But when I plug my charger it goes light and show up apple logo and die again I don't know what to do and it's so expensive here at Japan pls.. Help maybe there still way to get it work again
    Thank you ,Rean

    At this point it's clear that it's been damaged and will need to be take or sent to Apple for replacement.
    Regards.

  • Im stuck with this message "no bootable device, insert boot disk and press any key". Now i want to go back to mac os but everytime i turn on my laptop that message appear..kindly help... Please

    Im stuck with this message "no bootable device, insert boot disk and press any key". Now i want to go back to mac os but everytime i turn on my laptop that message appear..kindly help... Please .... Im using my usb as bootable device but it cant be detected..

    Reboot, hold the option key down, select OSX when the startup manager appears.

  • Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help

    Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help if you've the knowledge.
    Many Thanks

    Yep, i just did it again. The entire scroll-bar widget, complete with formatted text, graphics, etc., pasted itself nicely in another book. Two different files, the same widget.
    I use the scroll-bar widgets for most of my texts. (I have audio buttons on the side, and the scripts are within the widget, to the side). My only text is within widgets, and text boxes, naturally. 
    I am following your recommendation: cleaning files, etc. I am remaking the book anew. I need to convince the EPUB bot or whatever that my file looks and works nicely on all my devices. You would expect an error message when previewing the book: 'Hey Amigo, your file is flawed, stop working on it, and get back to the drawing board." Should be able to try again next Monday.

  • My iCloud is disabled. I've reset my password numerous times, but that doesn't help. Can someone please tell me how can I log onto my iCloud

    My iCloud is disabled. I've reset my password numerous times, but that doesn't help. Can someone please tell me how can I log onto my iCloud

    If your ID is disabled, you'll have to contact Apple for assistance, either by going to https://expresslane.apple.com, then click More Produces & Services>Apple ID>iTunes Store, App Store or Mac App Store>Disabled Apple ID, or by contacting the Apple account security team: http://support.apple.com/kb/HT5699.

  • I am trying to buy mitril for hobbit kom but it always gives me error i have already added my card information to store but i cant buy it.Could u help me about it ,please?

    I am trying to buy mitril for hobbit kom but it always gives me error i have already added my card information to store but i cant buy it.Could u help me about it ,please?

    Wish I could help. My wife is having the same problem.  Same computer for 2 years and all of a suddent it thinks this is her first purchase.

  • HT3775 why can't i play .wmv file in quicktime even after i download codec from windows? can anyone help me wit this please!!!!!

    why can't i play .wmv file in quicktime even after i download codec from windows? can anyone help me wit this please!!!!!

    Have you done the obvious things to try to fix it: quit Quicktime then start it back up again, log out then back in, reboot.
    Edit: Just read one of your later posts. If VLC won't play it, this is unrelated to Quicktime and Flip4Mac. Are you sure these wmv files are okay?

  • TS3276 I am not able to Mobile Me email account to connect with iCloud or my Apple Mail program. Don't know if my settings are correct or not. Can anyone help me with this please?

    I am not able to Mobile Me email account to connect with iCloud or my Apple Mail program. Don't know if my settings are correct or not. Can anyone help me with this please?

    http://support.apple.com/kb/HT5922
    If you want to mirror your desktop, see:
    http://support.apple.com/kb/HT5404
    Regards.

  • TS3276 can anyone help on the following please. When I have been away from the office for a few days and check for emails it only supplies the most recent 100 emails and the ones before that are never received. thanks

    can anyone help on the following please. When I have been away from the office for a few days and check for emails it only supplies the most recent 100 emails and the ones before that are never received. thanks

    Does your server have a limit?

  • I have a brand new MacBookProo and I can not open PDF files from my desktop. Can anyone help me with this please?

    I have a brand new MacBookProo and I can not open PDF files from my desktop. Can anyone help me with this please?

    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273

Maybe you are looking for