Variance Formula Correction
Hi folks,
I use BOXI r2 sp 4. I need to build a crosstab report with the following requirements:
1) Create a variance report structure
2) End user should select two periods to compare (i.e. 1Q08 vs 1q09),
3) The report should reflect the variance of the most recent period (a) compared to the older period (b), if a is greater than b, then the variance (difference) should be a positive number (a minus b = var),
4) A column should be created to reflect the dollar variance
5) Another column for the percentage change (var divided by b) and show one decimal place on the percentage (i.e. 10.1%)
6) There are two period prompts Billing Year Month using OR
7) There is one Business Segment prompt In List
The first 6 requirements can be met with 1 query and it returns the correct variance and percentage change.
In order to add the 7th requirement, I added another query but the variance and percentage change are no longer correct.
The queries come from the same universe and folders thereof.
Can someone please correct this formula and explain what I am doing wrong?
7 Requirements: INCORRECT
>=[FABR BYM].[Cost of Service] Where ([FABR BYM].[Billing Year Month] = UserResponse("Enter Recent Billing Year Month:")) - [FABR BYM].[Cost of Service] Where ([FABR BYM].[Billing Year Month]=UserResponse("Enter Older Billing Year Month:"))
6 Requirements: CORRECT
>=[Cost of Service] Where ([Billing Year Month] = UserResponse("Enter Recent Billing Year Month:")) - [Cost of Service] Where ([Billing Year Month]=UserResponse("Enter Older Billing Year Month:"))
Hi folks,
I use BOXI r2 sp 4. I need to build a crosstab report with the following requirements:
1) Create a variance report structure
2) End user should select two periods to compare (i.e. 1Q08 vs 1q09),
3) The report should reflect the variance of the most recent period (a) compared to the older period (b), if a is greater than b, then the variance (difference) should be a positive number (a minus b = var),
4) A column should be created to reflect the dollar variance
5) Another column for the percentage change (var divided by b) and show one decimal place on the percentage (i.e. 10.1%)
6) There are two period prompts Billing Year Month using OR
7) There is one Business Segment prompt In List
The first 6 requirements can be met with 1 query and it returns the correct variance and percentage change.
In order to add the 7th requirement, I added another query but the variance and percentage change are no longer correct.
The queries come from the same universe and folders thereof.
Can someone please correct this formula and explain what I am doing wrong?
7 Requirements: INCORRECT
>=[FABR BYM].[Cost of Service] Where ([FABR BYM].[Billing Year Month] = UserResponse("Enter Recent Billing Year Month:")) - [FABR BYM].[Cost of Service] Where ([FABR BYM].[Billing Year Month]=UserResponse("Enter Older Billing Year Month:"))
6 Requirements: CORRECT
>=[Cost of Service] Where ([Billing Year Month] = UserResponse("Enter Recent Billing Year Month:")) - [Cost of Service] Where ([Billing Year Month]=UserResponse("Enter Older Billing Year Month:"))
Similar Messages
-
Budget to Actual Variance Formula in Scenario Dimension help
I am trying to calculate the Budget to Actual variance by using a member formula in the Scenario dimension.
The formula I'm using is: @VAR("Final"->"Actual" -> &CurrentYear,"Budget");
This formula yields a value that equals the budgeted amount.
The Variance % formula I'm using is: @VARPER("Final"->"Actual" -> &CurrentYear,"Budget")/100;
This % formula equals 100% for most accounts, but is 200% or 300% for other accounts
What am I missing? Many thanks in advanceJake,
I'm a newbie, so I'm not sure what you mean by cross-dim. I didn't write the formula but it's up to me to figure this out. Yes, I do want to compare budget data to same year actual data.
It is dynamic. A sample retrieve for -200% would be Total Operating Revenues:
Actual = 2,404,789
Budget = 2,117,250
Variance $ = (2,117,250)
Variance % = -200%
A really crazy one is Benefits Rollup:
Actual = 66,353
Budget = 73,817
Variance $ = 73,817
Variance % = 500%
I appreciate your help very much.
Max -
I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation. It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0. How can I get this to work?
Oaky, at least we got that far. Next step is to determine if all those "numbers" are really numbers. Changing the format to "number" doesn't necessarily change the string to a number. The string has to be in the form of a number. Some may appear to you and me as numbers but will not turn into "numbers" when you change the formatting from Text to Number. Unless you've manually formatted the cells to be right justified, one way to tell if it is text or a number is the justification. Text will be justified to the left, numbers will be justified to the right.
Here are some that will remain as strings:
+123
123 with a space after it.
.123 -
Variance Formula: Cost of Service between 2 years
Good day everyone,
I am using BOXI r2 sp 4.
The following variance formula will ONLY work if the client selects the time frame of 1 year. For example 2008-01 to 2008-12
=<Cost of Service>Where{<Billing Year Month>=UserResponse{Enter Billing Year Month Start:"} - <Cost of Service>Where{<Billing Year Month>=UserResponse{Enter Billing Year Month End:"}
PROBLEM: the client must select 2 years For example 2007-01 to 2008-12
But none of my formulas work.
=<Cost of Service>Where{<[Billing Year Month>=UserResponse{"Enter Billing Year Month End:"}}-<Cost of Service>Where{RelativeDate{<Billing Year Month>;-365}}}
or
=<Cost of Service>Where{<Billing Year Month>=UserResponse{"Enter Billing Year Month End:"}}-<Cost of Service>Where{RelativeDate{<Billing Year Month>;-365)=UserResponse{"Enter Billing Year Month End:"}}
or
=<Cost of Service>Where{<Billing Year Month>=UserResponse{"Enter Billing Year Month End:"}}-<Cost of Service>Where{<Billing Year Month>=UserResponse{"Enter Billing Year Month End:"}}Where{RelativeDate{<Billing Year Month.;-365}}
Someone please put me out of my misery.
WannettaHi Gentlemen,
Thank you for all of your patience, guidance, and expertise trying to create this formula on the report level.
Could either one of you explain the significance of creating these types of formulas at the semantic level vs. the report level? I have been working on the following formulas and reports to varying degrees of success. Once finalized, these templates may be utilized as Opendoc reports between 2 universes.
After a great deal of research, I am inclined to think that these formulas need to be created at the semantic level rather the report level. What is the best way to argue this case to my design team?
REPORT SPECS:
I. FORMULAS:
These reports will have formulas built in for variance analysis. These variants would compare the values versus different time period or constraints (budgets, forecast, etc.):
Vs. Prior Year, Quarter, or Month
Vs. Budget
Vs. Forecast
Vs. Sequential time period/OPEN (This one essentially means the user can pick the time period to compare)
Vs. Productivity / Attributions (more detail needed)
$ Variance
% Variance
Rate = Current Rate - Previous Rate * Current Volume (Cost/Unit)
Volume = Current Volume - Previous Volume * Previous Rate
II. REPORTS:
Report Structure u2013A: Twelve month summary trend report
This report is intended to summarize the product data for any twelve (12) periods. Reporting periods will be monthly, with the maximum capacity for twelve (12) months.
Report Structure u2013 B: Two period variance report
This report is intended to summarize the product data for any two (2) periods and provide variances for each of the product/service details.
Reporting periods will be month vs. month, quarter vs. quarter, YTD vs. YTD or year vs. year. Month vs. month and quarter vs. quarter can be year-over-year comparisons (1Q08 vs. 1Q09) or sequential period comparisons (4Q08 vs. 1Q09).
Report Structureu2013C: Two year, four quarters and total year report
This report is intended to summarize the product data for any two (2) years by quarter and total year.
Reporting periods will be monthly, with the maximum capacity for twelve (12) months.
All of these reports will generate tabs for the total cost, total volumes and average rates per product for the selected periods.
REPORT BUILDER RESEARCH:
In addition to all of your great help, I have found many formulas that would appear to be similarly useful for my requirements, yet my design team has indicated otherwise. For example, I found the following code samples within this and the design forums:
Compare Prompted Period to Previous
DESIGNER LEVEL: create new Filter object
@Select(Sales Dates\Sale Year) = @Prompt
>('Select a Year','Sales Dates\SaleYear',mono,comstrained)OR@Select(SalesDates\Sale Year)+1 = Prompt('Select a Year','N','Sales Dates\Sale Year',mono,comstrained)
This will return the Prompted year as well as the previous year.
UNIVERSE FORMULAS:
count CYTD (Current Year to date)
count PYTD (Previous Year to date)
count CMCY (Current Month Current Year)
count CMPY (Current Month Previous Year)
count CYTD
>CASE WHEN data_year=@Prompt('Enter Year','N',,,) and data_month<=@Prompt('Enter Month','N',,,)THEN sales_figures END
count PYTD
>CASE WHEN data_year=@Prompt('Enter Year','N',,,)-1 and data_month<=@Prompt('Enter Month','N',,,) THEN sales_figures END
count CMCY
>CASE WHEN data_year=@Prompt('Enter Year','N',,,) and data_month=@Prompt('Enter Month','N',,,) THEN sales_figures END
count CMPY
>CASE WHEN data_year=@Prompt('Enter Year','N',,,)-1 and data_month=@Prompt('Enter Month','N',,,)THEN sales_figures END
Hereu2019s a sample problem that my design team encountered:
Using a derived table; one of my designers attempted to create the following object, $ Var (A-B) based upon UserResponse for any time frame which he said would not work. Can someone identify the problem here?
SELECT DISTINCT
(T_FA_DATA.BILLING_YEAR_MONTH) as BILLING_YEAR_MONTH,
(select T_FA_DATA.COST_OF_SERVICE from T_FA_DATA where T_FA_DATA.BILLING_YEAR_MONTH=@variable('Enter Billing Year Month End:'))-( select T_FA_DATA.COST_OF_SERVICE from T_FA_DATA where T_FA_DATA.BILLING_YEAR_MONTH=@variable('Enter Billing Year Month Start:')) as SEQ_VAR
FROM
T_FA_DATA
Can someone provide me with a realistic and CRITICAL assessment of this request? I know itu2019s complex but I would greatly appreciate it. In the end, we will create over a dozen reports which, I think also indicates the need for objects at the universe level.
Thanks! -
Hi,
Trying to convert a BSO formula to an ASO but getting an error like
Error(1260052) - Syntax error in input MDX query on line 4 at token 'CASE' Membername1. could you please correct this formula. Thanks, UB
BSO formula:
"Membername1"
(IF (@ISMBR (@IDESCENDANTS (Member5))) "Membername1" = Membername2/52*13*"Membername3"*-1;
ELSEIF (@ISMBR (@IDESCENDANTS (Member6))) "Membername1" = Membername4/52*13*"Membername3"*-1;
ENDIF;)
Converted the above BSO formula to below ASO one:
CASE WHEN IS([Year].CurrentMember, [Member5]) THEN
[Membername2] / 52*13* [Membername3] *-1]
CASE WHEN IS([Year].CurrentMember, [Member6]) THEN
[Membername4] / 52*13* [Membername3] *-1
ENDYou only need one CASE statement, the format should be
CASE
WHEN IS(......) THEN
WHEN IS(.....) THEN
END
Cheers
John
http://john-goodwin.blogspot.com/ -
12 Month rolling Variance formula
Hi,
I have been struggling with writing a member formula for variance of 12 month rolling Budget vs Prior Year Actual. My substituion variables are &CurrMonth, &PriorMonth, &CurrYear and &PriorYear. I am probably able to get 12 month trailing with the below given formula
@Sumrange(Budget,Dec:&PriorMonth->&LastYear),@Sumrange(Budget,&CurMonth:Jan->&ThisYear);
the challange is how to get variance between this and Actual of Prior Year. Can I give this calculation a name (like "12 month trailing"), so that I can use the formula
@Var("12 month trailing",(&CurrYear->Actual));
Any other simpler ways of doing it would be appreciated. Any ideas as to how this can be done in EPMA, as of now I am using the formulas in the Outline.Hi,
You can use variables in business rules but unfortunately not in member formulas. You can however paste the firs formula to a dynamic calc member and call this member from the second dynamic calc member. But mind you, the second one should be two pass calc.
Cheers,
Alp -
Hi,
I use BOXI r2 sp4.
I have a crosstab report with 3 tabs. There is a prompt on the Billing Year Month dimension which is based on "between".
I would like to hyperlink from the Summary Tab to the Detail for One Server Tab.
I'm receiving an error message in my hyperlink formula listed below. The error message says, "Unrecognized input "\" at position 359.
Will someone please correct it?
>=If([Item]=" ";"<a href=\"https://reporting.corporate.ge.com/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?
iDocID=11387685
&sReportName=DetailforOne+Server
&sType=wid
&sRepoType=Corporate
&sWindow=New
&lsSBilling%20Year%20Month%20Start:="[Billing Year Month]"
&lsSBilling%20Year%20Month%20End:="[Billing Year Month]"
[Space] :blue: "\" :blue: >"[Cost of Service in US $]"</a>";"<a href=\"https://reporting.corporate.ge.com/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?
iDocID=11387685
&sReportName=DetailforOne+Server
&sType=wid
&sRepoType=Corporate
&sWindow=New
&lsSBilling%20Year%20Month%20Start:="[Billing Year Month]"
&lsSBilling%20Year%20Month%20End:="[Billing Year Month]"\">"[Cost of Service in US $]"</a>")
Thanks!Hi ,
Can you try this please
="<a href='http://l1280:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?&sDocName=Account&sType=wid&iDocID=5311&lsSAccountType="+[Account Type]+"'>"+[Account Type]+"</a>"
as you have two inputs try using &lsM for muliple prompt
Regards
Prashant
Edited by: Prashant Sathyapalan on Mar 5, 2009 5:45 AM -
Help getting a formula correct
Help please, essentially I want to know how to use the formula editor to calculate a number like 6^0.5
Specifically, I want to insert a number (let's say it's in cell B5) and have it raised to power 0.5. Obviously using Insert\Formula\More functions\POWER but I cannot get the syntax right. Even better, let's say I am getting the 0.5 as a variable in cell B6.
The manual and Help menu could do with giving one or two specific examples like this beyond the simple ones they cover.
ThanksHello
For years spreadsheets are using the ^char as the power operator.
So you may also use the shorter formulas:
=B6^0.5
=B6^B7
Yvan KOENIG (from FRANCE mercredi 12 décembre 2007 16:04:43) -
How to use formulas to calculate data variance?
Hi!
I tried to use the variance formula to calculate the data variance but the answer is always wrong. I've tried this on excel and I get the right answer. Is it possible that there is a bug with NUMBERS? coz the sample variance should be the sum of the squared differences between each observation and the sample mean divided by the sample size, n, minus 1. but what i always get is the population variance, which is the sum of the squared differences bewteen each observation and the population mean divided by the population size,N. and I have no idea what should I input in the two blanks which will be showed in the following pic.
Thank you!Hi Kenny,
Apple provides an excellent manual, the iWork Formulas and Functions User Guide, which lists, describes, and gives one or more example for using each of the 250+ functions supported by Numbers.
The entry for VAR includes the following:
Usage Notes
The VAR function finds the sample (unbiased) variance by dividing the sum of the
squares of the deviations of the data points by one less than the number of values.
Here are the results of a small test.
Sample data is in cells B2:B6.
The result of the VAR function calculation (=VAR(B2:B6) is shown in B10.
The rest of the table shows a stepp by step calculation of the Variance of the sample:
B8 shows the mean, calculates with =AVERAGE(B2:B6)
C2:C6 show the deviation of each value in B from the mean.
D2:D6 show the square of that deviation.
D10 shows the sum of D2:D6,
And E10 shows that sum divided by one less than the number of values in the sample, which, you'll note, agrees with the result obtained with VAR.
"I've tried this on excel and I get the right answer."
I fired up the Windows netbook, launched Excel and plugged in the same set of sample data and the same =VAR(B2:B6) formula, and got the same result, 467.5.
And =VARP(B2:B6), using the same sample data set, gave identical results ( 374) on both Numbers and Excel.
If there's an issue, it's not showing up here.
If you'd like me to try it with a larger data set, you could send me your numbers. My address is available by clicking my name above this post.
"I have no idea what should I input in the two blanks which will be showed in the following pic."
num-date indicates a Number or Date (and Time) value may be used. Individual values should be separated by commas (except in regions where the comma is the decimal separator.
For VAR, a range of cells may be referenced, as I've done above.
Regards,
Barry -
Problem with combination of two working query formulas
Hey guys,
I have a problem in building a formula correctly with the BEx formula logic. I am sure, you can help me with this.
Right now I have four columns in my query. The first column (Actual) displays actual amounts either in local (10) or reporting (25) currency type depending on the optional selection either in the variable screen or in the free characteristics filter. The second column (Actual with Budget exch. rate) always shows the actual amounts with the budget exchange rate of the reporting currency. The third column (Budget) is build in the same way as the first column, but shows budget amount data. In the fourth column (Variance) the variance between budget and actual data should be calculated, but here lies the problem:
The formula should differentiate the chosen columns for the calculation depending on what currency type is selected either from the optional variable selection before the query is executed or from the free characteristics filter. So if I select currency type 10 it should calculate the variance by subtracting the budget column from the first column, but if I select currency type 25 it should subtract the budget columng from the second column.
I have implemented a formula which works already, but not for both selection possibilities (variable screen or free characteristics filter). Either the formula works when I input a currency type in the variable selection screen or when I select a filter value in the free characteristics filter. However, I need to combine both formulas in one working formula so that the user can choose if he wants to filter the currency already in the variable screen in the beginning or in the filter after query execution. Here are the two formulas which I need to get combined into one formula:
Used Variables:
VScreen_Selection --> value from the key of the optional Currency Type Variable from the Variable Selection Screen
Filter_Selection: --> value from the key of the InfoObject Currency Type
Formula for Variable Screen Selection:
(VScreen_Selection == 10) * (Budget - Actual) + (VScreen_Selection == 25) * (Budget - Actual with Budget exch. rate)
Formula for Free Characteristics Filter Selection:
(Filter_Selection == 10) * (Budget - Actual) + (Filter_Selection == 25) * (Budget - Actual with Budget exch. rate)
Can you help me to combine both Formulas? I can't believe that this is too difficult. Many Thanks in advance.
Best Greets,
NorbertHello.
Did you try this:
Formula 1: Hidden
(VScreen_Selection == 10) * (Budget - Actual) + (VScreen_Selection == 25) * (Budget - Actual with Budget exch. rate)
Formula 2: Hidden
(Filter_Selection == 10) * (Budget - Actual) + (Filter_Selection == 25) * (Budget - Actual with Budget exch. rate)
Formula 3:
(Filter_Selection <> 10) * (Filter_Selection <> 25) *Formula 1 +
(VScreen_Selection <> 10) * (VScreen_Selection <> 25)*Formula 2 -
Pass the results from a selection formula to the default values for a parameter field
Post Author: kevans
CA Forum: General
Crystal 10 u2013 SQL 2000
I want to create a parameter field that will display all of our IT Departments so the end user can select the one they want to run the report against, such as IT-Security, IT-Network, etc. about 40 in all. BUT I donu2019t want this to be a static list where I type in all 40 depts in the default list, I was hoping I could do something more dynamic such a formula field that says u201C if {group.name startswith u2018ITu2019 then {group.name}u201D and then have the parameter field pull from this source.
Iu2019m sure this has been answered in a previous post but Iu2019m not finding it. I see stuff on creating a record selection formula such as u2018if {?group} like u2018IT-Secur*u2019 thenu2026u201D but this leaves too much room for error if people donu2019t type the name correctly. Maybe Iu2019m not using the record selection formula correctly? Sorry if I offend anyone but I just upgraded from 8 to 10 and thought for sure this option would be in 10, perhaps built right into the parameter default value page where you can place in select criteria but NOTHING has changed.Post Author: sharonmtowler
CA Forum: General
if you are creating the parameters in the rpt file, it will only pull values you enter, or directly from the database
in the record selection you can do something like this, so if they only enter the first 2 characters it should pick up only the IT etc.
(if eft(,2)={?parameter} then true else ={?parameter}) -
Variance formual in Cross tab report
Hi,
I am new to crystal and don't have formal training. I am trying to create a report that shows Actuals and Budget and I want to the variance. Format is 1 row is for actuals, 1 row is for budget and the other is for forecast.
I would like to have a variance that is actual - budget and another actual - forecast for each measure.
I am using cross-tab report for formatting, any assitance for how to over write totals coloumn with Variance calculation, assistance for creating variance formula in formula workshop is required. I happend to see the logic in other forums but not in cross-tab scenario.
Thanks in advance.
BhanuUse a manual Crosstab report so you have full control
-
I am grouping on a date that was calculated using the following formula :
local stringvar d:= {TAGDTL.USER_DEF_TEXT_1}; //or database field
numbervar y:= tonumber ( '20' & d[5 to 6]);
numbervar m:= tonumber ( d[1 to 2] );
numbervar dd:= tonumber ( d[3to 4] );
date( y, m, dd)
The date displays fine, however when I group on it, it appears that it ignores the date completely.
The data in the detail shows up
10/14/2008
10/15/2008
10/16/2008 etc
however the group shows up with a completly different date.
Group = 10/12/2008
detail = 10/14/2008
detail = 10/15/2008 etc....
any ideas? Suggestions? help?
Thanks,
JimSorry guys, still get the same results...... I have tried the formula
Whilereadingrecords;
numbervar y:= tonumber("20" & Mid ({TAGDTL.USER_DEF_TEXT_1},5,2)); numbervar m:= tonumber(Mid ({TAGDTL.USER_DEF_TEXT_1},1,2)); numbervar dd:= tonumber(Mid ({TAGDTL.USER_DEF_TEXT_1},3,2));
cdate( y, m, dd);
and still get the same results...
this is all done in a formula correct?
Edited by: James Fulton on Oct 20, 2008 7:06 PM -
Hi There
How can i use variance formula in Financial reporting.
In my grid i have 2rows
ColumnA CloumnB Cloumnc
1.Total Values 2 4 10
2.Values 1 2 3
3
Now i need to include a 3rd row called variance in the how can i do this.
Please guide me the formula.
Thanks
H VYou can easily use a row formula with the Var(ref1, ref2) notation.
Please refer to the FR Studio User Guide for more info, it has a info on all the formulas available. The 931 versions are available here: http://download.oracle.com/docs/cd/E10530_01/doc/nav/portal_4.htm
Direct Link to Hyperion Financial Reporting Studio User’s Guide:
http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/fr_user.pdf -
BPC Netweaver version - Conversion File Formulas
BPC (Netweaver) Expert,
When creating formulas on the Data Conversion File that is called by the Transformation File, the Formulas are not working on the Netweaver Version. Does anyone have any idea what may not be set up correctly?
Thanks,
Greg RotvoldHello Greg,
BPC Netweaver uses somewhat different syntax for conversion formulas, and uses javascript for complex formulas, so formulas written using Visual Basic on the MS version will not work, though the basic *IF logic should work (I think I'm remembering MS conversion formulas correctly, but it's been a while). You can find the relevant Netweaver version documentation here: [http://help.sap.com/saphelp_bpc75_nw/helpdata/en/81/94a8a5febd40268d5c59b4fc31be37/frameset.htm]
If you want help specifically on the Netweaver version I suggest you ask your question in the Netweaver forum. I'm not sure what forum is most appropriate for questions about the differences between the two versions
Ethan
Maybe you are looking for
-
I have had my Ipod nano for about 2 yrs , and i take good care of it: but suddenly one day it works then the next i cant even turn it on. I have attempted to charge it in a few docks but nothing happens, it is just dead. I have tried all the reset te
-
How to locate the first insertion point on every page?
I need to paste some same anchored objects on every page for exporting RTF format. So I need to locate the first insertion point on every page. Then, I use the code below (make a simple example): for(i = 0; i < app.documents[0].pages.length; i ++){
-
New iBook, kernel panics when awakened from sleep
I've been going nuts for several weeks now due to issues with my new iBook G4. When it is not plugged in, it may be fine when it wakes from sleep, or else it may wake to a black screen of death or else wake up and then freeze (requiring a restart) a
-
How to export from 8i Lite _Help !
Can we use Oracle export/implort utilities on 8i Lite database and how? Any one tried? Thanks. null
-
After update to iOS 5.1.1 my keyboard is no longer...
English Querty, it's more like QUERTZ with the ENTER key changing languages and my spell check is in another language. I double checked and my settings are set up for me. Any ideas? It makes it a little hard to type.