Use Period member in Calculation
I have a Hyperion Financial Report which has members in the Period dimension as Jan, Feb, March, etc. In my report, I need to make a calculation based on this month, for eg., If Month = May (I need the number of the month which is 5). For example, lets say I need to divide 12 over the current month number (12 / 5 <-Month number of May). So I need to convert the Month members to the appropriate numbers as Jan=1, Feb=2, Mar=3 and so on some how, and then use it in the calculation. How can this be achieved in Financial Reporting, if at all?
Edited by: 969915 on Nov 6, 2012 5:36 PM
Hi
I agree with the previous post, you should look to do this in the underlying database (Essbase?) but unlike the previous post I think you only need 1 account.
This is the way that Oracle did it for Capex and Workforce planning modules:
- Create a dyn calc account called TP-Index
- Set the formula to be:
IF (@ISMBR(Jan)) 1;
ELSEIF (@ISMBR(Feb)) 2;
ELSEIF (@ISMBR(Mar)) 3;
etc
ELSEIF (@ISMBR(Dec)) 12;
If you need a calendar and fiscal TP-Index then create a second account, e.g. if your year end is Mar then Apr=1, May=2 etc on the fiscal while the calendar remains Jan=1, Feb=2
I use this a lot! If you are looking to do run-rate calculations as your example of how you want to use this for May suggests then you could look to put that in the database as well (depending upon how many accounts you need to do that for). Generally speaking it is quicker to have a dyn calc in the database and simply retrieve the results than to have lots of formulae on the report.
Hope this helps
Stuart
Similar Messages
-
Hello everybody
I have a Geography dimension (Country -> State -> City) and 2 related Fact Tables: "Revenues" (with measure Revenue) and "Revenue Goal" (with measure Revenue Goal) and created a dummy measure into the Revenue Fact table
(in the dsv) to calculate the Revenue not planed (by city) using Scope.
The calculated measure "NotPlannedRevenue" is defined using a Dummy measure on the Revenue FacTable with null like default value, later using Scope I have calculated the values in order to get correctly Totals Values over the a Geography hierarchy
which is working properly. The MDX script for the measure is
SCOPE([Measures].[NotPlannedRevenue]);
SCOPE ([Geography].[GeoHier].[City].Members);
THIS=iif([Measures].[Revenue Goal]=0 , [Measures].[Revenue] ,0 );
END SCOPE;
SCOPE( [Geography].City.[All]);
This =sum( Descendants([Geography].[GeoHier].CurrentMember,,LEAVES),[Measures].[NotPlannedRevenue]);
END SCOPE;
SCOPE( [Geography].State.[All]);
This =sum( Descendants([Geography].[GeoHier].CurrentMember,,LEAVES),[Measures].[NotPlannedRevenue]);
END SCOPE;
END SCOPE;
When I check the data, I get "Totals" well calculated.
The issue is when I filter Cities from the Geography dimension, the total values are not being calculated using only the selected cities. I have problems in the totals by City, State, Country.
The total for the State "Karnatak" must by "0" and the grand total must be "10".
Please someone could help me to solve the way which I must write this MDX or maybe I have to use another strategy.
Thanks in advanced.
Gelder de la OssaYou shouldn't need the second and third SCOPE statements (on the All members of City and Country) if the first one has been configured correctly - what happens if you remove them?
Chris
Check out my MS BI blog I also do
SSAS, PowerPivot, MDX and DAX consultancy
and run public SQL Server and BI training courses in the UK -
HI,
I am using V11.1.2.2 Hyperion Planning. I am currently getting an error:
Error : Period dimension 'Period' is missing a Base Time Period member 'Jun' that has been deleted since the last deployment. Base Time Period members cannot be deleted once the dimension is deployed
This is what i got when i tried to add alternate hierarchy to my shared dimension. I tried to delete it and it messed up.
NOw it wont deploy my application.
Can any one suggest.
Thanks in advance
Cheers,
XXXEPMA!!!!! EPMA!!!!
I'm playing around with it to write a blog post and it is crazy. Only possible workaround (till now i'm not able to figure out a solution to it) is to copy the application and deploy it as a new one. Take copy of all objects (forms, tasklist etc). Delete the corrupted application and rename the new one to old.
Regards
Celvin
http://www.orahyplabs.com -
Unable to use runtime prompts in calculation manager
Hi All,
I am unable to use runtime prompts in calculation manager (11.1.2.0).
In Variable Designer I have selected global and created a Replacement variable with name "Entity" and selected Type as "Member" and Default Value as "Entity" from dimension list, checked the check box "rtp".
In FIX (i.e., Member Range) I’m selecting this variable for Entity dimension, and validating this rule without any errors. And during deployment it is not prompting for Entity and directly a message appears that deployment was successful.
My requirement is i should select a Entity member during runtime. Please help me out.
Thanks.Are you accessing workspace url remotely on client machine?
Can you try accessing the url on the server and check whether you can see the app in the Calc manager?
Thanks
Madhavi -
Unable to use Periodic as a View frequency in EPMA
Setup: we have recently configured an EPM 11.1.2.1 environment and have migrated over two HFM applications from current production system. Both applications are accessible from within EPM Workspace. I have "Transformed" the classic applications to EPMA models and can view/modify them within Application/Dimension Library.
Issue: When attempting to Validate the consolidation applications within EPMA, I keep getting the following error in the validation report:
Error : Member 'ACTUAL' in dimension 'Scenario' failed validation 'DefaultFreqCantBeNullOrPeriodic' for the following reason(s): Default Frequency cannot be empty or Periodic.
EPMA is not liking that my View dimension has the "Periodic" frequency and having it set on the "Default Frequency" for scenarios. Is there a reason why "Periodic" cannot be used?
Periodic is commonly used and described within HFM documentation and I have yet to see any documentation stating that EPMA cannot use Periodic as the base month frequency.
The other user defined view frequencies that I use are QTD and YTD. They are aligned with quarters and [Year] within the Period dimension.
I'm looking for a solution that does not require a full rebuild of the HFM applications where I would then define the base frequency as "MTD" instead of Periodic.
Any insight or solution is greatly appreciated!!I will do my best on your comments and may be repetitive (I am also getting tried and am sleepy). I get the impression that the result looks fine in Acrobat OR Reader. I an not sure reader can e-mail the PDF, but if it can the results often depend on the client e-mail setup (typically requiring MAPI to be active. Many folks (even my on some machines) just can't get the e-mail option to work. I would suggest that they simply attach the PDF to an e-mail directly, though I think you are trying to streamline the process. At least that may give a working process as you are trying to find out what is happening.
Howver, you also seem to suggest that the e-mail works (that would mean that the PDF was attached to the e-mail). In that case, my guess is that the e-mail package on the client machine is not set to encode attachments properly. I would suggest that encoding (typically MIME) be activated in the client for all attachments. Outlook has problems in that it often reads a PDF as a text file and does not encode it unless you force the encoding. When that happens the PDF gets corrupted.
If that is not the problem, then it may simply be that the fonts are not in the PDF or present on the receiving systems, causing a messed up font substitution, particularly if something like the MAC PDF viewer is being used rather than Reader.
I may still not understand the problem, but that is my best guess at this point. -
How to use data function using characterstics variable for calculation on
how to use data function using characterstics variable for calculation on attribute as key figure
Hi Gayatri
Did you not see my answer for CASE because CASE does indeed offer the use of the BETWEEN clause, but DECODE does not. Let me give you a little synopsis of DECODE.
In its most simple form it takes 4 values and looks like this: DECODE(A, B, C, D)
This essentially means, IF A = B THEN C ELSE D
The trick to solving BETWEEN in a DECODE is to work out algoriths where A = B. Because we don't know how many values are between 00 and 99, although I could guess there were 100 we could of course have 100 parts in the DECODE but that would be awful. How about if we look at it another way and say this:
IF PART_NUMBER < 'SDK00' THEN pay_amount
ELSE IF PART_NUMBER > 'SDK99' THEN pay_AMOUNT
ELSE pay_amount + 100
This statement only had 2 hard coded values, but how to make DECODE work with less than? Easy, we use the LEAST function. The LEAST function takes 2 values and returns the one with the lowest value. So I use LEAST(PART_NUMBER, 'SDK00') then whenever the PART_NUMBER is lower than SDK00 it will be true. A similar situation exists for the opposite function GREATEST. Putting all of this together then, you can do this:
DECODE(PART_NUMBER, GREATEST(PART_NUMBER, 'SDK00'), DECODE(PART_NUMBER, LEAST(PART_NUMBER, 'SDK99'), PAY_AMOUNT * 100, PAY_AMOUNT), PAY_AMOUNT)
In English this can be read as follows:
IF the PART_NUMBER is greater than or equal to SDK00 and the PART_NUMBER is less than or equal to SDK99 THEN PAY_AMOUNT x 100 ELSE 0
Best wishes
Michael -
ASO question using Level0 member in a condition
Dear friends,
Issue with a ASO Formula, here case statement when using level 0 is not working,
we need to use one of the dimension(Entity_) all level 0, rest of the dimensions using one member.
Thanks in advance.
Regards
Jay
Case
when (([Dim1],[Dim2],[Dim3],[Dim4]) = 1) /*Here the code verifies for a condition for the combnitation of Dim1,Dim2,Dim3,Dim4 to value 1*/
and
Islevel([enity].[PB],0) /* Here it has to work for all entities*/ (having issue at this point)
else
[01] /* If not 1 the value is set to 01*/
endYou might try:
Case When Islevel([enity].currentmember,0) Then
Case When(([Dim1],[Dim2],[Dim3],[Dim4]) = 1) Then
I don't see what you want to claculate here
Else
1
End
End
A couple of things,
1. you don't have a formula if the embeded case is true
2. What do you want to do if it is not level zero? In some cases you will need to add a else between the two end statements and have a formula like
sum([Entity].currentmember.children,[this member name])
3. you referenced [entity].[db]. IS that a level 0 member? do you want all level 0 entity members, or just the ones under it? Depending on what you want, the syntax of the first case statement changes. -
Calculating Average then using it in another calculation.
Hi,
I would be grateful if someone could point me in the right direction - as I'm clearly being daft!
I have a report that summaries the SalesValue measure (which is an aggregate function in the universe)
Week 1 £1000
Week 2 £1500
Week 3 £900
I have created a variable TOTAL SALES (sum(salesvalue)) which successfully displays £3400.
I have created a variable for average (Total Sales /3) which displays £1133.33.
What is the best way to create a variable for each week to show the difference between the average (£1133) and the sales for the week i.e Week 1 = +133, week 2=+367, week 3 =-233.
Whenever I create this variable (SalesValue-Average) and put it next to week it doesn't calculate based in the total sales (£3400)
I'm sorry if this is one of those easy simple things but I am new to WEBI and I'm struggling.
Many thanks in advance.
JudeHi Jude,
Prashant gave a good suggestion, you need to use calculation contexts.
PS: If you are new you would benefit from the official guides, especially Using Functions Formulas and Calculations that can be found at https://help.sap.com/boall_en
There are also tutorials Official Product Tutorials – SAP BusinessObjects Web Intelligence
Thanks
Simone -
Using AGO function in calculated fields in Analysis
Oracle BI 11g.
Hi!
I have time-hierarchy and try to use function Ago in calculated fields. I created Analysis and add columns Year, Revenue, Revenue (1 year ago). In formula of column "Revenue (1 year ago)" I wrote:
AGO("Sales"."Revenue", "H Calendar"."Year", 1)
"H Calendar"."Year" - is level in my time Hierarchy "H Calendar".
But when I clicked [OK], I got error: [nQSError: 27037] Unresolved level: "H Calendar"."Year".(HY000)
What I do wrong?Hi,
I think it's a bug, try this.
If Analysis you have a time folder with this object dimension:
Time Hierarchy
Total Time
Year
Quarter
Month
Week
Day
And a measures 1- Revenue try to calculate the criteria like this (write in the level the formula "Time"."Time Hierarchy".Year)
For example:
AGO("Base Facts"."1- Revenue", "Time"."Time Hierarchy".Year,1)
If you have the sample sales of the 11g installed try this on A - Sample Sales
SELECT s_0, s_1, s_2 FROM (
SELECT
0 s_0,
"A - Sample Sales"."Time"."T05 Per Name Year" s_1,
AGO("A - Sample Sales"."Base Facts"."1- Revenue","Time"."Time Hierarchy"."Year",1) s_2
FROM "A - Sample Sales"
) djm ORDER BY 1, 2 ASC NULLS LAST
For me it works.
Regards,
Gianluca -
How to use javascript in a calculated column field in SP2013
Hi All,
I'm trying to use the code below in a calculated column but i can't get it to work.
any time i add it in it strips out all the quotes etc..and it doesn't show the open dialog.
Any ideas how i can use this in a calculated column field?
Thanks in Advance
="<div><a href='#'
onclick='openInDialog(500,600,true,true,false,'http://www.SharePoint.com');'>MS
SharePoint Site</a></div>"Your problem is with the single quotes which both open de onclick event and are used for the javascript string variable.
You want " and need to escape those in a SharePoint string as ""
So this
="<div><a href='#' onclick=""SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');"">MS SharePoint Site</a></div>"
Evaluates to:
<div><a href='#' onclick="SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');">MS SharePoint Site</a></div>
Once SharePoint dumps the HTML code in the Client Browsers
(provided you have set the Datatype of the Calculated column field to Number!) -
Possible to use local variables in Calculation Manager
Hi,
I'm using calculation manager in EPMA for the first time. Have not found any function for using "local variables", i.e. variables that can be used for fixing on the current members a user has selected in a form. Do someone know if it is possible to use that functionality in calculation manager? And in that case, how do I find it?
Thanks!
Regards
MatsHi,
I guess you are referring to local variables in Essbase Administration Console. When you are in calculation manager (System View), you can go to Tools->Variables. There you can create variables at application, database (global) or business rule level (local variable). You can use these in Business rules by placing the name in curly bracket {...}.
The usage of the variables in the forms is the same as before.
If however, what you meant to say by local variables is substitution variables, yes you can use them in Calc manager the same way you use in calc script.
Cheers,
Alp -
BUG? Invalid use of an Aggregate Calculation
Please Help:
I am trying to create a mandatory Filter in a BU that is
COUNT_DISTINCT(ID) > 3;
When Mandatory an error pops up:
Invalid use of an Aggregate Calculation
If Optional filter works and can be used in a workbook.
This should be allowed. The filter will require that all rows be based on at least 4 Individuals (required for privacy) and no single individual be retrieved.
Is this expected behavior?
Thanks
A
Platform:
iAS10g (904) Solaris
iDS10g (904) WinJust a follow-up: I did post a TAR.
Yes this feature is documented, AND no it is not important enough to change. (I added the last part of commentary).
I will post a snip of the TAR just in case others run afoul of this "Feature".
==============================================
17-MAY-04 15:45:48 GMT
UPDATE:
~~~~~~~
A:
Unfortunately you cannot use analytic functions in Mandatory conditions, you can see this in the Oracle Discoverer Administrator Administration Guide, I'm copying what is documented and the complete reference:
"When you create a condition based on an analytic function (i.e. a function that computes aggregate values based on a group of rows), you must designate the condition Type as optional. If you choose mandatory, a message is displayed informing you that analytic functions are not allowed in mandatory conditions."
"What restrictions apply to aggregate calculated items?
When creating aggregate calculated items, note that a number of restrictions apply to aggregate calculations. Aggregate calculated items:
cannot be used in a mandatory condition
From:
Oracle® Discoverer Administrator
Administration Guide
10g (9.0.4)
Part No. B10270-01
Chapters:
11. Creating and maintaining conditions, page 11-6
10. Creating and maintaining calculated items,
Section: What restrictions apply to aggregate calculated items?, page 10-4
A way to workaround this, could be creating a view in the database based on the select count distinct, then create a folder in your Bussines Area using that view and create the Mandatory condition based on that Folder.
Let me know if you have any additional questions regarding this.
Best regards.
TECH
STATUS:
~~~~~~~~~~
@CUS (Waiting for Customer)
17-MAY-04 15:45:59 GMT
17-MAY-04 20:00:00 GMT
New info :
We will be unable to use Discoverer, again. This may be the last chance for its Implementation in our Organization. With Apache, Tomcat, php, etc, it is looking bad for Oracle Application Server in general.
Thanks for your help.
A
END OF TAR Communications -
Delete 3KEH,3KEI for using periodic transfer PCA (1KEK) instead
Dear Sir,
We want to delete 3KEH,3KEI for GL accounts (balance sheet adjustment revaluation) for using periodic transfer PCA (1KEK) instead. But there are a lot of open item in the source account (vendor & customer open item).
If we block for posting to these GL accounts (balance sheet adjustment revaluation) and the source GL account at the begining of the month before positng any transaction to these GL.
Then we delete config. 3KEH,3KEI for these GL accounts (balance sheet adjustment revaluation). then let the user post normal transaction. And at the month end period, we run 1KEK for periodic transfer PCA for the balance sheet adjustment revaluation account.
This can be done or not. Is there any impact to do like this? We afraid that PCA data may transfer incorrectly (Is it will duplicate with the realtime transfer that we have done in the last period?).
Please kindly advise.
FICO team.Hello,
You need to maintain 3KEH and 3KEI (as per your requirements) for balance sheet accounts. It is not required to maintain reconciliation account in 3KEH.
All the reconciliation posting on other sub ledger accounts will be transferred by using 1KEK, 1KEH, 1KEI and 1KEJ.
Before executing these transaction code, it is required you run F.5D (Balance sheet adjustment)
Please go through the report KE5T to see the differences between your FI and CO.
Regards,
Ravi -
Which tables are used for Quality Efficiency calculation of OEE report ?
Hello,
We're confirming OEE report behavior.
I'd like to know OEE report and ME table specification.
Which tables are used for Quality Efficiency calculation of OEE report ?
According to I know, the definition of Quality Efficiency is (complete qty) / (start qty).
For this calculation, does OEE report just use qty_started and qty_completed of PRODUCTION_LOG table?
If any other tables/columns/logic are implemented, your information is appreciated.
Best Regards,
Takahiro Uesugihi
Go to BSIS & BSAS
BKPF
SKA1
SKAT
SKB1
Regards
Roobal -
HT3211 sliding fingers right used to bring up calculator and calendar
sliding fingers right used to bring up calculator and callendar, now it brings up something else (a mini google search tool comes up). any ideas on how to get it back or to choose what happens when you swipe a finger to the right?
I'm operating the new MacBook Pro-Retina and it brings up dashboard stuff. I have 2 suggestions
1. Open system preferences see if the gestures have been changed
2. Edit the widgets located within the dashboard. I know there is a mini-google widget. It's possible yours were edited and the calculator, etc. got deleted.
Hope this helps!
Maybe you are looking for
-
Hi all May I know how and what tcodes to do configuration on PR default delivery date? Thanks in advance. az
-
How to get the size of the report using RE sdk or query?
Hi, I want the size of report using RE sdk or using query. How can i get this? Please help Thanks in advance Amol Mali
-
I've reset SMC and PRAM several times. Activiatng Terminal from Recovery HD displays the following: -bash-3.2# diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme
-
Weird Issue with session collection creation
Hello everybody, While building a fully redundant RDS infrastrcutre I cam across this issue While creating the session collection through Server Management on Windows Server 2012 R2 I get the following error: "Unable to configure the RD Session Host
-
Unable to install Cisco Connect
I am trying to install Cisco Connect for my E1000 but I get the following error each attempt "An HNAP Call to the device failed for unknown reasons" I've already updated the router to 2.1 version of the Firmware. Full Details Error code: 82BD0305 Er