Essbase calc script: try to use @RELATIVE in a formula of the cross-dimensonal
Hello. I am trying to use a @RELATIVE function in a cross within a FIX/ENDFIX and while checking the syntax allows me to do this, I get the error 'argument double' scalar of Essbase when I run the Calc.Here is the code block:
DIFFICULTY ("FY13", "Budget", "Input", "AF: ~ NA ~","U: ~ NA ~", @RELATIVE("DEPT:ABC",0), "S:535200", "Jan": "Dec")
VAR Var1;
("PR:ER1"
Var1 = "ST:SE2"->"Budget"->"product"->"sub-account"->"P: ~ NA ~"-> "DEPT:12345" / 100; "."
)
("PR:ER1"
"Account: NA" = "account: NA '->"S:535200' + @RELATIVE("NET_INCOME",0)->"S:510020" * Var1;
)
ENDFIX
The line where the error message I get is:
"Account: NA" = "account: NA '->"S:535200' + @RELATIVE("NET_INCOME",0)->"S:510020" * Var1;
What I basically want to do, is to say the Member account: NA S:535200 must be the sum of all accounts of level 0 net_income for S:510020, multiplied by the value stored in a variable.
Thank you
Tom
Published by: user9513294 on November 15, 2012 11:28
As you have discovered, you can't pass a list of members to a definition of the cross-Sun. One Member, that's all it takes.
What I suspect you want to do, it is something like this:
"Account: NA" = "account: NA"-> "S:535200" + @SUMRANGE ("S:510020", @RELATIVE ("NET INCOME", 0)) * Var1;
However, I bet that the net is already calculated and this might work:
"Account: NA" = "account: NA '-> 'S:535200' + 'NET PROFIT'-> 'S:510020' * Var1;
And I bet that this reference to 535200 is not necessary either as you in a pickle, then how about this:
"Account: NA" = "account: NA ' + 'NET INCOME'-> 'S:510020' * Var1;
BTW, that ":" in the middle of your member names pretty much blew my mind - colon is used, in general, to designate ranges, as 'Jan': 'Dec', which is also valid as Jan: Dec. I'm surprised that there is a legal character.
In addition, the precedence of the operators really works you like?
Kind regards
Cameron Lackpour
Tags: Business Intelligence
Similar Questions
-
Forms and Essbase Calc Scripts
I have several (not the rules of trade) calc scripts created in Essbase. When I create a form of some of these calc scripts will have the "members on data use" option grayed out while others are not. I can't see a difference in calc scripts.
What I'm missing or where can I go to learn more, most of the documentation I find refer to the rules of the company and do not apply to calc scripts.
Thank you.
Note: When you try to publish the services shared through Essbase calc scripts I succeed with most and some, I get:
com.essbase.eas.admin.defs.InteropCommands.PublishModel Failed: com.hyperion.interop.lib.OperationFailedException 9000: PUT failed for/Files/projects / [bbassiushy01] [FS] [hand]. Essbase/published/calculation Scripts/calc235.csc
Edited by: J on July 11, 2011 09:32You should not be able to use members of the option form with calc scripts, it's for use with business rules where you can pass members of the form variables.
See you soon
John
http://John-Goodwin.blogspot.com/ -
restrict the planning Admin see all Essbase calc scripts
Hi - I have a few ppl who are administrators on planning, and they see all my calc scripts in Essbase. Is it possible to block to see? I have these calc scripts to run things they did not need to run.
I use planning 3.5.1 Essbase 6.5
Thank you
CindyHi Cindy,.
I guess that calc scripts you want to block from are planning to the Admin in the applications they are directors of the correct?
The only way I can think to do is to put them in another directory on the server or on a share, you have access to and use them for Esscmd scripts run in a batch function.
for example
RUNCALC 3 C:\SERVER_DIR\mycalcs\calcAssuming the directory were on your essbase server and you plan this on your essbase server.
This assumes that your Admins planning have not access to your Essbase server. Of course, if it were UNIX path to the script would be different.
You may also only have the scripts on your local computer.
Kind regards
John A. Booth
http://www.metavero.com -
Essbase Calc Script using Exclude
I use the 'EXCLUDE' command in a script (see below) essbase calc
Fix (@relative("Entity",0), EXCLUDE (@MEMBER ("Canada") ENDEXCLUDE)),
@RELATIVE ("Type", 0), @RELATIVE("Net Income",0), @RELATIVE("BALANCE SHEET",0),.
@RELATIVE ("CASH FLOW STATEMENT", 0), & CURPER)
CLEARDATA "GL";
END FIX;
I keep getting the following error:
WARNING: parsing formula [statement of DIFFICULTY] (line 14) 1200315 error: invalid object type
No idea what's wrong with my script? 14 of my script is the line starting with the declaration of FIX. Any advice would be greatly appreciated.EXCLUDE is a simillar to FIX calc command and can be used within FIX ().
In your case, you can use function @remove as shown below:Fix (@Remove (@relative("Entity",0), @list ("Canada")), @RELATIVE ("fleet Type", 0), @RELATIVE("Net Income",0),)
@RELATIVE ("FINANCIAL REPORT", 0), @RELATIVE ("CASH FLOW STATEMENT", 0), & CURPER)
CLEARDATA "GL";
END FIX; -
Dataexport to Essbase Calc script format
Hello
We try to write a calc script to export the data from the BSO cube to flat file. We want all the dimensions (currents and Sparse) online and the data in the column. Currently, we have tried all the different options of DataExport but we continue Dense members in columns. Is it possible to get the flat file in the following format?
Outside dimensions:
(Dense) account
(Dense) period
Company (rare)
Year (rare)
File format: (order of dimension is not important for us)
Company, year, time, account, given
K1, FY15, Oct, sales, 123
Please suggest. Appreciate all the help.
Thank you
The only way I know to do would be to add a single dense dimension member (let's call it data) can make your dataexportcolumnheader if you can not change your existing cube, and then make a copy of it, add the dimension to export for the first cube in column format and use a load to load into the second cube rule. then you can do the dataexport
-
Essbase calc script to determine the number of occurrence
Hello
is it possible within a calc script to determine the number of occurrence of a value in the account dimension?
I have an account called ranks which can contain any value between 1 and 10. I would like to know how many times each value is repeated for a specific cost center. It's in a database of planning BSO.
Thanks in advance for your contributions...
CL
This isn't the typical calculation you would do in an OLAP architecture, but yes it is certainly possible.
you will need to create 10 accounts such as occurrence_of_1, occurrence_of_2 etc.
Then you increment them according to the value of the 5th year.
Don't forget to put in your calculation!
-
I use the pole NMH300 media and I want to create a backup process this file copies on drive Z (media Division) and Vista backup invites me for the username and password for the drive Z, which is funny because I never enter a username or password to access this disk , and the more I use a password only to access the media hub File Explorer but I've never had to enter a user name. What Miss me?
Thanks in advance.
Joey
The utility of backup Vista encrypts the data on the hard drive using the security feature of NTFS format and I think it will not be able to do that if you go back up to the mediahub since its already a different device with a different file for its Reader format. Vista Backup utility is intended only then to NTFS formatted disks so that it can encrypt/secure data being saved. Just use the NTI Shadow backup tool to backup your files, it's a good tool.
See you soon.
-
Hello
I want to create a new script to calc for my financial database. I first explain about my dimesion
Dim dense (fiscal period) opening Qtr1, Jan, Feb, balance...
Dim sparse (FY year), 2007, 2008, 2009
Dim sparse (scenario)
Law on the
EST (estimates)
Jan is
.........
DEC EST
Budget
FAB
Frost
I need to my opening balance (member of the period of the year), for fiscal year 2009, Frost scenario = current year (fiscal year 2008) Oct East, Dec.
I don't know how I can do, please let me know if any help.
Please help to create the script to calc.
Thank youYou have a 17 month period (BegBal, month, quarter and total year) year dimension and a scenario of 15 members?
And then you want to copy FY 2008-> Oct is-> Dec to FY09-> freeze-> opening balance?
I guess you could, in a database of the ASF:
DATACOPY "FY 2008"-> "Oct is"-> "Dec" to "fiscal 2009"-> "freeze"-> "Opening balance"; "."I would ask you if you really need all 12 versions of the budget (I guess the planning or Planning-esque app)? Really? Really? Good, but it's a lot of stuff to carry. You will empty once the year ended? If it is planning, you probably want to use command copy of internal planning data to support retail, cell Notes, has Annotations, etc. as the Essbase copy does not affect only the relational data.
If you really must have 12 versions of the budget in your database, you can look at how you can get rid of this stuff (deletion, archive to the cube mirror, etc.) to keep the amount of data as low as possible in the application.
Just my $0.02.
Kind regards
Cameron Lackpour
-
AGG and Essbase CALC script SUN has recently begun to cultivate our pag files
We have an Essbase script that does nothing but AGG and CALC DIM which ran fine for months because he has not pushed our cube of labour. From late January, he began to grow his pag files. Cube of labour was 7 GB in December 2010, and then it grew to 10 GB today. I tried running it and he grew up in our 170 Mo pag files 2nd time and then to 70 MB the 3rd time I ran it. Has anyone seen this?F
R
A
G
M
E
N
T
A
T
I have
O
NJust a guess. :)
Well, I'll throw another possibility here - if you are on a San, you'll never really know what is happening. I recently had a client whose SAN was... challenged for space. This thing was dynamically allocated disk space left, right and center. Who knew what disk pack Essbase db files were really. Who knew how much space was really there. As far as I know, they had grids of Commodore 1541 floppy drives (probably the most reliable and slow floppy drive never out - I went through several) a helping hand. The point being that sometimes the exact same Calc took 9 seconds, other times they took 5 minutes. And it was on a clear outside and loaded database. Certainly he did tuning calculations difficult, and that's an understatement.
But I bet on fragmentation. You say that when you have disabled the database above the zero level, it took minutes of agg it back up to the top where it normally takes seconds. This quick time as part of a clear is responsible, zero level and then environment DIM CALC? It would be a pretty darn close to 100% of defragmentation of database. If you already have the level 1, 2, 3, etc. blocks, then you are in at least some form of fragmentation. Check that it in EAS and you will see.
Check out this thread: Re: Fragmentation in the overall calculation
Ignore the war epic flame (pretty epic to OTN - people here are generally wise), and Kevin Cox explanation at the bottom read. I agree with him.
Kind regards
Cameron Lackpour
-
Hi, really appreciate any pointers anyone may have with what I'm trying to do here... the crux of the matter, I have is the following:
* Try to get the contents of a BLOB column directly in PL/SQL, zipped/compressed
Uncompressed data are XML... below is an example quite pinked...
<? XML version = "1.0"? >
<! DOCTYPE TaskConfiguration >
< TaskConfiguration >
< MapKeySet >
< macro keyboard Type = 'C' >
namespace < Key > < / key >
< value > B_O_BrokerChks < / value >
< / macro keyboard >
< / MapKeySet >
< / TaskConfiguration >
* I learned the information in the table of these pages & used all_directories + a pirated version of proc WRITEBLOBTOFILE (also from here) to get this data in a zip file. That worked fine and I can open the file that results with 7 - zip or explore (how I got the sample above)
* I tried a few tweaks to the functions provided here to try to get the data directly into the pl/sql (ideally I would like to be able to enter in a type of XMLTYPE data & query only). However, that's where I'm struggling
* I get the same error as I do with this 1-liner
SELECT UTL_COMPRESS. LZ_UNCOMPRESS (XML) FROM FooBooBazVendorTab where REFERENCE_ID = 19834
ORA-29294: A data error occurred during compression or decompression.
ORA-06512: at "SYS." UTL_SYS_COMPRESS", line 56
ORA-06512: at "SYS." UTL_SYS_COMPRESS', line 226
ORA-06512: at "SYS." UTL_COMPRESS", line 89
29294 00000 - "a data error occurred during compression or decompression."
* Cause: An error occurred during compression or decompression input source.
* Action: Verify that the source data is a set of data compressed or invalid.
Info * @desc to the col de BLOB XML is as follows
* I also read a ' UTL_COMPRESS. LZ_UNCOMPRESS cannot process the file gzip with FCOMMENT' thread here and I tried the potential workaround here who is trying to manipulate the content of the blob to remove the FCOMMENT... but nothing helps. I must say that I am not sure that it's actually my problem.
Details on the Zip file I can glean from 7 - Zip are as follows...
* Any ideas please? (If Oracle decompress may have a problem handling the XML data itself... with my way of thinking on the FCOMMENT being a bit of a furphy?)
* Don't know if the zip file hexview can help, but just in case where is >
I would be very grateful for any help you might be able to give me this.
Rgds Neil
UTL_COMPRESS use of LZ compression, which is a version less compression compared to normal ZIP files (that use LZW, often with additional ' Deflate' or other methods).
Anton Scheffer (member of the these for one) wrote a package to compress and decompress found related to this article on his blog:
Analysis of a Microsoft Word docx and unpack zipfiles, PL/SQL - Blog of AMIS
-
Try to use casStubs.jar classes and get the parameters of the analysis
I went into class files available in casStubs.jar and was trying to come up with a script in the AppConfig.xml to connect to the CAS server and get the State of analysis and measures. I tried this option because the com.endeca.eac.toolkit.component.cas.ContentAcquisitionServerComponent class gives me these features.
+ < id script = "CheckCrawlStatus" > +.
+ < bean-shell-script > <! [CDATA [+]
Import javax.xml.namespace.QName;
com.endeca.cas.wsdl import. *;
final String wsdlUrl = "http://" "${cas.host} '+': ' + ' ${cas.port} ' + ' / case? WSDL "; +
final name of QName = new QName ("http://endeca.com/itl/cas/2010-07", "CasCrawlerService");
CasCrawlerServiceLocator service = new CasCrawlerServiceLocator (wsdlUrl, name);
CasCrawler robot = service.getCasCrawlerPort ();
String crawlName = "myFirstCrawl";
CrawlId crawlId = new CrawlId (crawlName);
Metric [] metricArray = crawler.getMetrics (crawlId);
+ / / rest of the code to retrieve the crawl settings.
+] > < / bean-shell-script > +.
+ < /script > +.
Unfortunately, I still get connection refused to exception: ' java.net.ConnectException: connection refused ". My wsdl case load properly in my browser.
Any ideas on gaps in the code or the missing configuration in the CASE or DT or platformservices?
Thank you
DevTry to explicitly set endpoint to service before obtaining the port. So, if you connect to localhost:8500:
service.setCasCrawlerPortEndpointAddress ("http://localhost:8500/AR"); ")
You can substitute your host/port settings. This call is normally done through the box tool component wrappers, but since you are directly using the stubs of service, you will need to set the end point. Without this, the stubs use a test port that do not match your.
Best
Brett -
Don't get all codes java error or notifications! I'll use system very well and all of a sudden to abruptly PART of page. If I roll the page with the mouse, it will return to normal. Help
Hello
Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.
(If you use it, switch to the default theme).
- You can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
- Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.
Once you get the pop-up, simply select "" boot mode safe. "
If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .
To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.
When find you what is causing your problems, please let us know. It might help others who have the same problem.
Thank you.
-
the laptop had windows xp originally... I've updated to Vista. He worked for a long time
Hi ashenstar,
Welcome to Microsoft Answers Forums.
We would like to get more information about you to help solve your problem. You better, please answer the following questions.
· When you get this error message?
· When was the last time it worked?
· Remember to make changes to the computer recently?
· You have security software installed on the computer?
· How many accounts do you have on the computer?
This happens especially if the user profile is damaged.
If you have all the other user accounts on the computer, try to connect to this account and check if you are facing a similar question.
First suggest to check if you can boot to the desktop by using the procedure in safe mode.
Steps to start in safe mode with networking
1 restart your computer if it is running.
2. tap on the F8 key after your initially on powers computer.
3. Once you see the menu Advanced Boot Options, you can stop tapping.
4. use the up/down arrow keys to highlight your selection.
5. Select Mode safe mode with networking and press ENTER.
6. you should see loading drivers and wait please.
7. you should then be at the Welcome screen.
8. connect to your computer using an account with administrator privileges.
Start your computer in safe mode
http://windowshelp.Microsoft.com/Windows/en-us/help/323ef48f-7b93-4079-a48a-5c58eec904a11033.mspx
If you are able to boot to the desktop in safe mode, first create a new user account.
Then suggest running a virus scan online on the computer, the mode safe mode with networking.
Check the link below for the online virus scan
http://OneCare.live.com/site/en-us/default.htm
If you are able to connect to any other user account on the computer and cannot connect to an account, you will need to transfer the settings from the user profile of the user account corrupted to a new user account.
How to copy data from a corrupted to a new profile in Windows XP user profile
http://support.Microsoft.com/kb/811151
Difficulty of a corrupted user profile
http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile
Try the following steps only if the computer has more than one user account.
Error message when you log a computer Windows Vista-based or Windows 7 by using a temporary profile: "the user profile Service has no logon. Unable to load the user profile.
http://support.Microsoft.com/kb/947215
Halima S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
I also get the error code 80070005 when you try to use Windows Update to check for the updates
I get this error code as soon as I try to check updates. It does not even say there are updates tells me to enable updates, but when I try it gives the code. I used Microsoft Fix and now it says everything is fixed and ok but it is not. So now what?
Hello
1. what Microsoft fixit did you run?
2. don't you make changes to the computer before the show?I suggest you try the steps from the following link:
Error: 0x80070005 when you try to install updates by using Microsoft Update or Windows Update
http://support.Microsoft.com/kb/968003Note: When you perform a virus scan Malware, you will lose data that are affected by the virus. Microsoft is not responsible for the loss of this data.
-
Please can someone give me some tips or advice to help me with this problem is annoying.
As I mentioned I saved my recovery key (RK) because I think it's a great tool, but when I tried to use it for the first time on my brand new computer, I was quickly told - bad recovery key. So I clicked on the "I lost my other device" to get one new/another one? RK, I put the key in the box only to tell the same story again? RK hard. What I'm doing wrong, I can't make heads or tails of it.
Any suggestions would be grateful...
The link "I lost my other device" to reset the key of the synchronization only works if you have entered the user name and password of an existing synchronization account.
To find your key (must be device with synchronization already install)
- At the top of the Firefox window, click the Firefox (Tools menu in Windows XP), and then click Options
- Select the Sync Panel.
- Click on manage the account, then select my recovery key. It will open a window that displays your recovery key.
To generate a new key
See: replace your synchronized data
See: How to choose what type of information to synchronize on Firefox?
Maybe you are looking for
-
Satellite L500 - wireless network adapter is missing in Device Manager
Hi guys, I have read a lot of discussion but not found a job of answer to my problem and yet, although this doesn't seem to be a common problem, so I was wondering if someone can help out me. Model laptop is L500-1VT. There is no switch on / off exte
-
Can not download explicit content in music, itunes store
Why is my explicit content (music), albums and single buy, disappeared? I discovered that they are marked as "already downloaded" and I can down load them now. change something?
-
After 8.1 Upgrade Windows, Lenovo Yoga 13 blocks when I close the lid and reopen
After I opened the lid and the Tablet starts to come out of standby mode, the blue screen appears with the following error message: SYSTEM_THREAD_EXCEPTION_NOT_HANDLES (rtwlanu.sys) Any ideas what is the cause and how to fix?
-
Try to configure the Server Active Directory rights management failed. Exception has been thrown by the target of invocation. to System.DirectoryServices.Configuration.ProvUtils.EnsureGroupMembership (StringstrTargetComputer, String strUserName, stri
-
Product key Windows Vista lost
Hello I have lenovo thinkpad t400 with sticker i of windows vista (I think) I bought in a thrift store, he had a top windows product key sticker, but the sticker got wet and him comes from numbers off is there anyway I can get a product key without h