Issue with Overall result in Formula
Hi all,
I have two keyfigures K1, K2 and a formula F1 in the report. (F1 = K1/ K2). And i have set the "Calculate result As" property of the keyfigure K2 as "Average". My report output looks like this,
K1 | K2 | F1
5 | 10 | 0.5
10 | 15 | 0.6
15 | 12.5 | 0.6 (Overall Result)
The overall result of the K1 and K2 are fine. But overallresult of F1 is incorrect. Its should be (15 / 12.5 = 1.2 ) . But system is calculating as 15 / 25 = 0.6, where 25 is got by summing K2 values.
How to overcome this issue?
Thanks in advance...
Hi,
Average for two number N1 and N2 is (N1+N2)/2
here in your case looking at this formula system is calculating the right values.
overallresult of F1Its should be ((15 / 12.5)/2 = 1.2 /2) which is 0.6 . System is calculating as0.6 which ideally is correct.
Regards
Rahul
Edited by: Rahul Bindroo on Nov 10, 2009 7:30 AM
Similar Messages
-
Issue with Overall Result - Help
Hello,
I have a query with two restricted keyfigures (0amount used) as actual and forecast. While drilldown by fiscal period, the overall result shows totals for actual and plan separately. Business point of view, they want to have total of both (actual + remaining months of forecast). Is that possible?. If yes, anybody help me on this. We don't want to create CKF to sum both the key figures.
Thanks
ViswaAppreciate your response Arun. Did the initial work of getting both actual and plan. Everything works and report is live now knowing that the problem of overall result when we drill across by fiscal period. The report is very flexible/dynamic columns and users can enter multiple periods and any versions to use for various purposes. Looking for a solution without making changes to the query, somehow we can achieve/fix the overall result summation. Want to keep creating a CKF as last option.
Thanks
Viswa -
Using "Restrict by app" in change query causes issues with Search Results
Hello!
I am hoping some experienced SP admin can help me out. I am having issues with the relevance ranking for my search results web part.
I created a Wiki (OOTB) within a site collection and on the home page of the Wiki I was looking to apply a Search Box and Search Results web part for easy searching. I wanted to ensure the search results were restricted to the scope of the pages within the
wiki. I did the following after adding the 2 web parts:
Entered edit mode for the page
Started to edit the Search Results web part
Under Properties for Search Results clicked on "Change Query"
Navigated to BASICS and clicked "Switch to Quick Mode"
For Select Query, picked "Wiki (System)" option
For Restrict by app, picked "Specify a URL" and input the wiki URL "http://webapp.com/sites/sitecollection/wiki"
Click OK
The web part has 6 automatic results when I hit the page. These are the only 6 pages in my wiki. When I search a word or title of a page, they are not ranked in order or relevance. The ordering is static to what was being shown before the search, but the
keywords I'm searching are bold. With out the taking the steps above, I can easily search these pages and have them ranked appropriately so I'm not too sure what I'm doing wrong.
Other Details
The pages have been crawled and can be searched from anywhere else in SP.
I am only a site collection admin for this specific site collection.
I other than the steps above, I have not made any changes or customization to the search web parts; they are both out of the box SP.
The SP Farm admin we unable to pin point what the root cause is either.Hi Mikael,
Sorry for the wait, I was unable to post pictures, which i felt would better describe my issue.
Could you output the query template you are ending up with?
If you can tell me how to accomplish this, then I can provide it. Please keep in mind that I am only a site collection admin.
Also, is the ranking/sorting for your webpart set to ranking?
When looking at the web part settings, I didn't see an option to modify the ranking. Unfortunately, some sites in my intranet are down now so I can't even double check. Once it's back up, I will verify this as well.
And how do you know they are ranked incorrectly?
I wanted to display an image showing what I meant by this. As the wiki is down, I'll do my best with words. When I visit the wiki home page, I already have the search and search results web parts there. Without searching anything, the search results
web part displays 6 pages that are available in the wiki. When I search, I expect to see the most relevant result at the top. similar to the following:
*Search result from another section of the intranet site.*
What I receive instead is the same list of wiki pages, in the same order. The most relevant result
is not moved to the top like in the image above, but I can see that the word "rush" is highlighted in bold. I hope this helps.
If you need more of a description, please let me know.
Thank you -
Urgent help - Issue with Search results in Web help (Robohelp10)
Hi,
I am facing an issue with the Search tab of my Web help output. The search is performed only on a part of the text entered.
For example, I search for a word "Planning", the results are generated for "plan".
I search for the word "Table", the results are generated for "Tabl"
I search for "corresponding", the results for "correspon" are displayed.
Is this an existing issue? Is there any fix for this.
Please help.Hi there
This is the option Jeff was referring to. I see it in my own RoboHelp version 10. As we aren't seeing it in your screen capture, I'm wondering if this was an option that was added via a service release you haven't installed.
I do suppose another possibility would be that you are using RoboHelp for Word and perhaps that isn't an option with that application.
Cheers... Rick -
Issue with Duplicate Results and Summary Fields
My report is based on an Access Database. For the purposes of this current issue, there is the Master Table called u201CCnu201D and then a related u201CTable Au201D which includes multiple records related to the Master and also a related u201CTable B,u201D also with multiple records related to the Master.
For my report, I want to output results from Table B based on criteria in Table A. This naturally produces duplicate output on the report. As a result, the Summary Fields that I want to include are incorrect.
I have tried multiple combinations of the Select Distinct function, suppression based on u201Cprevious fieldu201D being equal, summary fields, running totals and if-then statements and still cannot find a solution that works in all of the cases involved.
Below are descriptions of three different scenarios that are occurring:
EXAMPLE #1: Entry 1 has 2 records in Table A and 2 Records in Table B so "Select Distinct" including the Table B ID # and then a Summary Field for the Total produces the correct results, while a Running Total is Incorrect.
EXAMPLE #2: Entry 2 has 2 records in Table A and 1 Record in Table B so a suppression formula of the field based on the "Previous =" Table B ID # and the Running Total produce the correct results, while Summary Field is incorrect.
EXAMPLE #3: Entry 3 has 6 records in Table A and 6 Records in Table B. Neither Summary or
Running Totals produce correct results.
I would greatly appreciate any advice in terms of creative formulas, etc. that would help produce correct results here.
Iu2019ll be pulling my hair out soon! Thanks so much-Hi Berry
Try to create a command with a subquery. The subquery will be returning the the duplicate records and the main query that uses this subquery will find distinct records out of the resultset returned by the subquery.
Let me know if this helps.
Regards
Nikhil -
Issue with 'null' value in Formulas
Hi all - I have a PDF in which I'm performing various calculations, basic addition and subtraction. I'm using the following Custom Calculation Script:
this.getField("Amount, Total Revenue Allocated to Maintenance Expenses").value = this.getField("Amount, Endowment Care Fund Income - Schedule H").value + this.getField("Amount, Special Care Fund Income - Schedule H").value + this.getField("Amount, Income from Cemetery Operations").value + this.getField("Amount, Other Sources Please Specify").value;
My issue is that when someone deletes a value in one of the fields (which I guess causes the field to be 'NULL'), the calcualtion doesn't work....so in other words if I have the following:
Field 1: 10
Field 2: 20
Field 3: 30
Field 4: 40
When adding this should result in 100.....however if one were to delete the value in field 2, my calcualtion then produces 103,040....the formula doesn't know how to process the NULL value of course, so it concatenates the numbers.
How do I get around this? Do I need more JavaScript, and if so is there a good example somewhere on how to code it?
Thanks, Steveleahfst,
If these dates are complementary (as in 'either date1 either date2 has a value) you could transform the dates to text, merge these two fields (one being empty) and convert the result back to a date:
Date(ToText({CnFGf_1.CnFGf_1_Date}) & ToText({CnFGf_2.CnFGf_2_Date}))
If these dates can both have a value (or not), it is helpful to know a null-value for dates is equal to Date(0000,00,00). In this situation, there can be the following situations:
1. Both dates are empty. Your result will obviously be an empty date.
2. {CnFGf_1.CnFGf_1_Date} has a value, {CnFGf_2.CnFGf_2_Date} is empty.
3. {CnFGf_1.CnFGf_1_Date} is empty, {CnFGf_2.CnFGf_2_Date} has a value.
4. Both dates have a value. You will have to choose which date should be used.
For any of these four situations, you can check the date to have a value using:
IF {CnFGf_1.CnFGf_1_Date} = Date(0000,00,00)
and so on.. -
Calculate with maximum result in formula
Hello Experts!
I have column where I calculate result as maximum. If I make a formula which uses this column then it calculates with the sum of the values.
An example:
What I search is a way to calculate with the max-value in the result line.
E.g.:
Value1-Value2-Quota
Result--110--57-----51,8%
row1-----56---7-----12,5%
row2----110--11-----10%
row3-----78--39-----50%
What should be calculated is 57/110*100
What has been calculated is 57/244*100
Does someone know how to do this?
Best Regards,
PeterHello Vam,
it depends on what you want. If you have just one field you want to calculate you could do it in my case as follows:
Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
Dim FirstRow, LastCol As Integer
FirstRow = resultArea.Cells(1).Row
LastCol = resultArea.Cells(resultArea.Cells.Count).Column
x = Cells(FirstRow + 1, LastCol - 3).Value
y = Cells(FirstRow + 1, LastCol - 4).Value
Cells(FirstRow + 1, LastCol - 2).Value = x / y
End Sub
We have the fields we want to calculate(x, y) in our result. Source fields are 3 and 4 fields from the right edge of the result-Area. In the field 2 fields from right edge i want to calculate the result.
All the values are there but if we calculate with a formula there is a wrong result because x and y are maximum values.
If you want to do this for many or all lines you could do a FOR NEXT or so...
If someone knows a better way, please post.
Best Regards,
Peter -
Issue with sorting results on the basis of specfic values.
Hello,
I written an sql that will sort the results on the basis of values defined in 'IN' clause. I have made use of CASE statement in ORDER BY clause. Its not functioning. My code is:
SELECT GWLO.productcode,
GWLA.parentsampletype,
GWLO.sampletype SampleType,
max(GWLA.loginid) Loginid,
max(GWLA.modifiedts) modifiedts
FROM gwloginattribvars GWL,
gwloginkeyvals GWLO,
gwloginkeysadmin GWLA
WHERE GWLO.productcode = GWLA.productcode
AND GWLO.sampletype = GWLA.sampletype
AND GWLO.productcode in ('1002124', 'ABPG', 'ABIG')
AND GWLO.sampletype <> 'CERTIFICATE-OF-ANALYSIS'
AND GWLA.parentsampletype IS NOT NULL
GROUP BY GWLO.productcode, GWLA.parentsampletype, GWLO.sampletype
ORDER BY
(CASE GWLO.productcode WHEN '1002124' THEN 1
WHEN 'ABPG' THEN 2
WHEN 'ABIG' THEN 3
ELSE 'LL'
END) ASC
I expected the results to be in sequence what it is defined in CASE - ORDER By clause. This code is givin me error. The error is
(CASE GWLO.productcode WHEN '1002124' THEN 1
ERROR at line 16:
ORA-00907: missing right parenthesis
Please help. Thanks!ORDER BY
(CASE GWLO.productcode WHEN '1002124' THEN 1
WHEN 'ABPG' THEN 2
WHEN 'ABIG' THEN 3
ELSE 'LL'> END) ASC
Can u just explain me in this context? I think it should be another number in the else part - since you are returning numbers in all the 'WHEN' option. Pls explain it.
Regards.
Satyaki De. -
Issue with Xcelsius reading BEx Formula Variable
I have a dashboard that is connected directly to a BEx query via a SAP Netweaver BW Connection. The BEx query has several characteristics restricted by mandatory variables (mostly User Exit type). So when I publish/launch my dashboard in the Portal, my dashboard is able to read in all values passed at the BEx prompt page, except one. I have one formula variable that is mandatory called Duration, but whenever I try to map the "Current Filter Value (Key)" or "Current Filter Value (Text)" in my connection to an Excel cell in my dashboard, it causes my dashboard to hang on the "Initializing..." screen indefinitely.
Does anybody know if there is something special I need to do in order to have my dashboard properly read in the value from a formula variable?
Xcelsius Enterprise 5.3.0.0
Build Number: 12.3.0.670
Any help on this would be much appreciated!
Thanks,
-BrianHai
Check this it will help u to Some extent.
http://myxcelsius.com/2011/06/15/xcelsius-2008-sp4-waterfall-chart/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3AMyxcelsius%28MyXcelsius%29
Download the Xlf file and Check it for Summation in Excel
http://xcelsius.excelyogi.com/supported.html
http://www.forumtopics.com/busobj/viewtopic.php?t=171271&sid=244b8c717e3635721363eea8011cbb0d
http://myxcelsius.com/2008/09/11/list-of-microsoft-excel-functions-supported-in-xcelsius-2008/
http://www.ozgrid.com/News/named-ranges.htm
Thank u
Naveenkumar kc -
Issue in displaying Overall Result of a formula variable
Hi All,
I have a fields as Years of Sevice in my report. This is defined as char. I am bringing this in the report by creating a calculated key figure and then using a formula variable that is defined as the replacement path of the Years of SErvice.
Now when i execute the report , I dont see the Overall Result. I checked the porperties as Summation.
The overall result is displayed as X for all the columna
Report has
Rows - Leaving Reason - defined as Char
Columns - Years of Service >3
Years of Service 3-6
Years of Service 6-10
Can someone shed some light where i am going wrong?
Regards,
Harika.You have said years of service is declared as a characteristic. Is it brought into the report as an formula variable through Calculated key figure ???
-
Query with a condition - Overall results row displays incorrect value
Hi All,
I have a bw query with top 40 conditions. However, The Overall Result Row Figures Do Not Equal The Sum of the Column Rows.
Although the top condition is activated, the overall result still displays the overall result of the whole report.
I have 3 columns in the report
Selected Period
Prior Period and
Variance
The formula for variance is (Selected Period/Prior Period)-1.
Does anyone have an idea to fix this?
Thank you so much in advance.
Have a great day!Hi Gaurav,
Thank you so much for your reply, however this does not solve fully the issue.
Changing the properties to "Summation" will indeed provide me with the correct sum for the "selected period" and "Prior Period." However what I need in the Overall Result Row for the "Variance" column is not the total but instead the value when the total of Selected Period is divided by Prior Period then minus 1.
Overall Variance = (Overall Selected Period/Overall Prior Period)-1
Do you know a way to make this possible.
Thank you so much. -
BW 3.5 - Issue with formula variable with replacement path
Dear experts,
I'm facing an issue with formula variable with replacement path.
Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100
To do so I've setup a calculated key figure as follow:
VAR1 * ("PO value" < 100 ) * "PO value"
VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
(The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
The report as characteristic "plant" in rows and my CKF in columns.
Now let's take an example. I have 3 POs in Plant 1:
PO1 -> 150
PO2 -> 90
PO3 -> 80
Because of the variable with replacement path, the result in my query should be:
plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
But the result coming is 320, which is wrong.
I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref characteristic 'constant =1' ...
Any though is welcome!
thanksHi,
The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
Regards,
Patricia -
Issue in display of Overall Result while implememting RRI
Hi All,
I have a base report which gives all the material for which no issues are done in last 3 yrs for a plant.
I have a new report which has all the materials passed from the base report and then i display the consumption of those in rest of the plants.
When I display the report, the Overall Result is displayed incorrect.
Child report
Selected Plant Stock Selected Plant Stk value Consumption in 12Mnt_rest of the Plants
Material Plant Overall Result Overall Result P1 P2
10001 1.00 395.00 EUR 2.00 1.00
10002 1.00 1.00 EUR 2.00 5.00
10003 3.00 74.25 EUR 2.00 6.00
Overall Result 35.00 12600.25 EUR 6.00 13.00
When Analysed We found that the overall result is the result of the base report. for the 1st and 2 column.How Do I change the reuslt.
Appreciate help in advance.
Harika.Hi Harika,
In the Report assignments ,make the PLant and result as "Delete" mode for these infoobjects.
Just come back with ur assignment settings,it has got to do with these Settings !!!!!!!!!!
Rgds
SVU123 -
Hello Experts,
I am facing an issue with Formula collision, below is an expample
My requirement is to use Column formula for the value (????) in the below table.
Restriction (C1) Restriction (C2) Formula(C1-C2)
Restriction (R1) 4 2 2
Restriction (R2) 8 3 5
Formula(R1+R2) 12 5 ????
I have tried using the below settings
1) Formula(R1+R2) "Standard"
2) Formula(C1-C2) " Use result of this formula"
But still getting row formula being used, please advice.
Thanks,Select the Formula which you created Formula(C1-C2)
In the properties tab Go to Calculations--> Select the Check Box Cumulated
In the Drop Down for Calculation Direction Select --> Calculate Along Columns
If you require you can also select the Check Box Also Apply to Results
Hope it Helps.
rgds, Ghuru -
Dear Experts
I need your help to solve my problem. I have one BEx report base on a cube and in which I use Key Figure calculated, but when I execute the query, I have on the Overall Result line the result of the formula and not the total result of all items. To illustrate, I have a column with an exchange rate calculated and another column with a Net Value calculated with this exchange rate. If I run the query by displaying all the items, the result is correct, but when I display only the total, instead of the sum of all items, I have the total recalculated with the formulas. How to solve this problem?
Thx in advance for your help!what i understand from your comment is irrespective of whether your drill down via items in report
the calcuation ( exchange rate and netvalue should happen at each item level and aggregation .
am i right???
if yes then you need to create a formula variable on sales doc number and another one on sales item no.
definition of formula variable would be replacement path on corresponding infoobject mentioned above.
and attribute value constant 1.
mulitply both the formula variable in your CKF netvalue .
calculation would always happen at sales doc item level and then aggregation .
another option is to use exception aggregation .
Maybe you are looking for
-
Switching airport cards to solve 10.5.2 network issue
Ever since 10.5.2, i can no longer get online on various routers. my friend who has also updated can get on these same networks that i can't. i have a macbook w/ the following airport card: AirPort Extreme (0x168C, 0x87) Firmware Version: 1.2.2 Wirel
-
Report on active sync actions (like starting and stopping the sync)
Is there a way to report on who stopped or started an active sync? I'm guessing it has to be stored somewhere, but I can't find it. Thanks!
-
I want to know what generation my iPad is?
Well it's second handed and I just want to know what generation is since they all look the same! (Generation-1,2 and 3)
-
Why can't I buy the new Iphone?
Is anyone as ****** off as me that I cannot buy the new Iphone without paying $499? I purchased the first phone for $700, the second phone for $500 all on the day they came out. Now Apple will let anyone who didn't buy it before get it for $299 but I
-
Unable to dual boot Windows Server 2008 On My new HP laptop
Hello, I have recently purchased a laptop from HP Site. Here are the specifications of my laptop. OS : Windows 8.1 HP ENVY 17T 4710HQ PROCESSOR 16GB RAM I have created a new NTFS Partition and I am trying to install WINDOWS SERVER 2008 from setup fi