Results row calculation between two column result in BEx Report.
I want to use weighted average method between two keyfigure.
for example consider the following secnario.
CH Kf1 Kf2
A 10 5
B 6 4
C 3 2
Result 19 b]4.21</b>
how 4.21 is ((105)+(64)+(3*2))/total of Kf1(ie 19)
( A value(Kf1Kf2)+ B value (Kf1Kf2) + C Value (Kf1*Kf2))/total value (Kf1) = 4.21
is it possible to achieve the above result for Kf2.
With regards,
Hari
Hello,
I cannot able to use Excel Macro functionality since it is a drill down report and report cells varies based upon the selection parameter.
and also i can't able to use Calculation, since this report contains lot of columns and if i use the formula, one more result column i have to include in all key figures and also business users not able to understand the report....
Is it possible to create a variable structure, for example user is executing for 10 days , the structure should display for only 10 days ans also i create structure for 31 days (ie one month)..
With regards,
Hari
Similar Messages
-
Calculating a difference between two columns in a crosstab report
I have a crosstab report showing # of sales by salesperson in each of 2 years and within each of 2 categories of salesperson (old vs new). I want to create a column showing the difference between sales in 2009 and 2010 within new salespersons and then a column showing the difference between 2009 and 2010 within old salespersons. I can't figure out how to pinpoint in the variable editor the column containing 2009 sales by new agents. Any advice?
You can hard-code the formulas like this:
=Sum([Sales]) Where ([Year] = 2009)
=Sum([Sales]) Where ([Year] = 2010)
Then the variance becomes:
=Sum([Sales]) Where ([Year] = 2010) - Sum([Sales]) Where ([Year] = 2009)
The challenge with this is the years are not dynamic, but I figure I will throw this out first and see if it gets you what you want to start with. -
Hi result rows calculation is not happening properly in result rows as per the formula .
Formual for Absolute Error = Final forecast - Actuals
Follwing is the report out put
Material Period01
10324401 Final Forecast 733,490.000 LB
Actuals 555,583.67 LB
Absolute Error 177,906.33
10326795 Final Forecast 1,306,894.935 LB
Actuals 1,406,158.27 LB
Absolute Error 99,263.33
10329435 Final Forecast 188,000.000 LB
Actuals 192,000.00 LB
Absolute Error 4,000.00
10580325 Final Forecast 76,105.938 LB
Actuals 215,999.82 LB
Absolute Error 139,893.89
10580427 Final Forecast 158,733.076 LB
Actuals 0.00 LB
Absolute Error 158,733.08
Overall Result Final Forecast 2,463,223.949 LB
Actuals 2,369,741.76 LB
Absolute Error 579,796.62
In the above report , Material wise calculation for Absolute error is correctly calculating , BUT when it comes to Over all Result its just summing up all materials Absolute error and showing .
What i want in over all result is Absolute error should be calculated as overall Final Forecast - Over all actual ( I.e formula should be applied to over all result also ).
I tried with exception aggragation and other stuff but nothing is working .
Can any one Help me to apply the formula for result rows also ...
Helpfull inputs will be appriciated with points .
thanks in advanceHi All thanks for ur replies .
I solved my issue as following .
Formual for Absolute Error = Final forecast - Actuals
For Absolute error formula there are some ' exceptional aggregation ' and 'calculate result value as ' .
I removed these ' exceptional aggregation ' and 'calculate result value as ' and refreshed the report now in result rows
' Absolute Error' is calculating as desired i.e by using result rows ' final forecast' value & ' actuals' values in the formulae .
Regards
Navenas -
Find the difference between two columns in an ssrs matrix ? MSCRM
Hi All,
I am working in reporting part of our project (On-line MSCRM 2013) & in reporting services.
I am trying to create report using fetch xml based. Below is the snap what we required the result.
Kindly help me, how to get the difference in both column. (Its a matrix table where year is grouped).
We need difference between both year Like (Plan Revenue of 2013 & Plan Revenue of 2014 difference in Plan Revenue Diff section) and same for Actual
Revenue.
https://social.microsoft.com/Forums/en-US/054d5ca4-0d38-4dc6-84a8-88866cc228fe/find-the-difference-between-two-columns-in-an-ssrs-matrix-mscrm?forum=crmdevelopment
Thanks,
Mohammad ShariqueHi Bro,
I used parametrized option for year and done the report,Currently we are getting values in Difference column now i want to show
that value in percentage. How can we show the percentage based on that value. Means i want to show the Difference in Percentage.
Kindly help me i tried but getting some issue. Below i am mentioning the code and snap with result.
Below expression using to showing Plan Revenue in Percentage for year.
=
Sum(IIF(Fields!new_year.Value =Parameters!StartYear.Value,cdec(Fields!new_planrevenueValue.Value/1000), cdec(0)))
- Sum(IIF(Fields!new_year.Value =Parameters!EndYear.Value,cdec(Fields!new_planrevenueValue.Value/1000), cdec(0)))
/IIF(Sum(IIF(Fields!new_year.Value = Parameters!StartYear.Value,cdec(Fields!new_planrevenueValue.Value/1000), cdec(0)))>0,
(Sum(IIF(Fields!new_year.Value = Parameters!StartYear.Value,cdec(Fields!new_planrevenueValue.Value/1000), cdec(0))))
,1)
)*100))
Result issue is as below in snap with highlighted in red colour.
Kindly help me on this issue also :) -
How to find differences between two columns
Hello I need the formula to spot differences between two columns and to write on a third one if the same name appear on the two columns.
For example:
rome berlin true
berlin moscow false
chicago toronto true
toronto chicago true
florence
Thanks
LorenzoYou should be able to use COUNTIF where the range is th first column and the condition is the word in the second column. If the result is greater than zero then the word is in both columns.
-
How to get the difference between two columns in a column group
Hi All,
My first time here and really new to programming. I would like to get the difference between 2 columns that are inside
a column group.
Here is my sample table below: The Column Group is PeriodNumber and can only choose 2. like 1 and 2.. I would like to have a third row which will simply calculate the difference between the amounts in PeriodNumber 1 and 2.
PeriodNumber
Account 1 2
1) Cash 10,000 15,000
2) Receivables 12,000 11,500
3) Equipment 5,000 5,500
Total Assets 27,000 32,000Hi yabgestopa,
From your description, you want to get the difference between two columns in a column group. After testing it in my environment, we can use custom code to achieve your requirement. For more details, you can refer to the following steps:
Copy the custom code below and paste it to your report. (Right-click report>Report Properties>Code)
Dim Shared Num1 As Integer
Dim shared Num2 As Integer
Public Function GetAmount(Amount as Integer, Type as String)
If Type = "1" Then
Num1=Amount
Else
Num2=Amount
End If
Return Amount
End Function
Public Function GetDif()
Return Num1-Num2
End function
Right-click the second column to insert a third column with Outside Group-Right.
Then use the expressions below in the matrix.
=Code.GetAmount(Fields!Amount.Value,Fields!PeriodNumber.Value)
=code.GetAmount(Sum(Fields!Amount.Value),Fields!PeriodNumber.Value)
=Code.GetDif()
The report looks like below.
If you have any questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Two column telephone directory style report
Does anyone have an example of a two column telephone directory style report (2.0,2.5,3.0 or 6.0) that they would be willing to share?
Thank you.
Bill Harman
nullah ok, you never said you were data merging them.
in short, data merge doesn't have a feature like microsoft word where there is a "next record" TEXT field which lets the records flow on.
instead, data merge works by merging the elements on the page, so if you were to merge the file and in the options turn on the multiple record feature, you'd see that many text boxes were generated but they're not threaded together... but the text boxes do have record one, then record two, then record three...
indesign's data merge is best suited to generating data where one record changes per page. yes, it can do many records per page, but this is ideally suited to people who are imposing their own business cards many up on a page; or people making picture heavy catalogues with set amounts of records per page. indesign's data merge is not built for catalogue-style in-line data merges similar to microsoft word's mail merge to catalogue.
for your purposes, i'd use XML but that is user unfriendly. there are CSV to XML converters online (assuming your database isn't too huge) and a great resource called "A Designer's Guide to Adobe InDesign and XML: Harness the Power of XML to Automate your Print and Web Workflows" written by James Maivald and it is about the only easy to pick up and run with book out there on the topic. There is another book by Grant Gamble on the topic and no offense to him, but my brain was full by chapter three.
otherwise, aftermarket plug-ins such as ones made by cacidi systems or emsoftware may help.
or, does this really need to be a data merge solution? could the text not simply be placed into indesign rather than using the data merge feature? i'd imagine the data is already in the correct order, just needs formatting. if that is the case and the excel file is available, i'd save it out as a tab delimited TXT format and place that into indesign and then format it with nested styles. -
GR and IR as separate columns in the BEx report
Hi,
I am working on a Purchasing report in which the user needs the snap shot of PO history,Like PO no.,Item,Netprice,PO Qty,Net order value,GR no.,IR number etc.
I created a view on EKPO and EKBE.Here,based on the BELNR(Material document) field we are taking GR and IR values.(When VGABE =1 BELNR=GR and VGABE = 2 BELNR=IR).I created DSO to load the data.The problem is they need the GR and IR as separate columns in the BEx report.Could u please help me how to achieve this in BI?
Thanks & Regards,
Dinakar.Hi Neel,
I need the BELNR has to be split into GR No.and IR No. separately based on VGABE field.
Thanks & Regards,
Dinakar. -
Two column results based on one column
Tool#
Time
102
12
104
5
108
0
111
5
112
8
114
0
117
0
120
0
125
15
189
7
I have a table like this in numbers where the time is updated using the formula;
=SUM((IF($N$4="Y",SUMIF($A$5:$A$13,"=102",$B$5:$B$13),"0"),IF($N$5="Y",SUMIF($D$ 5:$D$13,"=102",$E$5:$E$13), "0"), .... etc.
The tables that the SUMIF's are referring to are set and constant with times for each tool based on a specific job number. The table with the TRUE or FALSE (ie. Y or N) is where the input is put in order to get the times for each tool from the constant tables and the employee will put in either Y or N.
What I want to do is create another table from the one above where I can eliminate the tools that have "0" time, but still follow the exact same format (ie. still shows both "Tool#" and "Time" in two seperate columns). How do I do this? How can I have a table where it only gives results based on the second column, but returns both the first and second columns?
Hope this all makes sense. If you need further information to help me just ask and I can post more about the specifics.FE,
Have you considered using the Row Filter in the Reorganize Panel? Since your hours are calculated it should work well for you.
Jerry -
Result row is not showing expected result
Dear All ,
I have below requirement to generate mix variance
PY Mix
PY Mix Diff
PY Mix
Val Gr -
0.00
0.00
1,015.6823529
1,015.68
0.00
0.00
52,486.5048653
52,486.50
0.00
0.00
2,836.1166667
2,836.12
0.00
0.00
45,582.8437071
45,582.84
Result
0.00
3,09,668.66
-2,07,747.5092285
1,01,921.15
Result in Bex
Expected Result
PY Mix L- Used No definition in Result
Val Gr - Used Sum in result
PY Mix Diff = Val Gr - PY Mix
But above formula is not working for Result row ??
expected 3,09,668.66 but showing 0.00
Any ideas to crack this .
All your valuable inputs are highly appreciated .
Regards ,
HariDear Suman
Thank you so much for your reply .
PY Mix and Val Gr KFs both key figures has got same definition(Same formula ).So i cant use Summation for both KYF in Exp Agge
For Val Gr -Result Row should be sum of values in Column , i have maintained no settings .And showing value as expected
Val Gr -(CKF)
1,015.68
52,486.50
2,836.12
45,582.84
1,01,921.15 -Result (Sum along columns)
For PY Mix - Result Row should be as per formula defined , i have maintained summation in Exp aggregation .And showing value as expected
PY Mix -(CKF)
1,015.68
52,486.50
2,836.12
45,582.84
-2,07,747.50-Result (According to formula used )
But When i use these to kyf in another formula Result row are not calculating as per Expectation
PY MIX DIFF = Val Gr - PY Mix
3,09,668.66 (expected )
= 0 (but final result )
any other inputs to make it
Regards ,
Hari -
Division between two columns in pivot table in Answers
Hi all
In answers
if I have two columns in my pivot table say column A and Column B, how can I use a division of Column B by Column A to derive Column C. I am unable to do that using the "New Calculated column feature" or in the criteria section. I keep getting either 0 or 1. I even tried changing the format to show two decimal places and am still unable to get the result.
Thanks
BThanks,
our issue is that we want to do our calculations at the summary level (region level of the company) and not at the detail level. However we cannot do this at the aggregate level because this is a moving total for the last 7 days worth of data.
Also, Answers (even in Criteria) does not seem to be doing division properly. We are just not getting the results when we do col A/ Col C. We are in 10.1.3.4 on windows xp against SQL Server
Any ideas?
Edited by: Mid Atlantic on Jul 22, 2011 5:33 AM -
I need to retrieve the a set of rows in between two rows from a table.
consider employees table and primary key employee_id.
With out using EMPLOYEE_ID column in the where clause or between clause, I need to get the records between 104 and 116 or a set of records between two rows.
Can any one help me in this... i know this is simple but am just a fresher to oracle development... help me grow....
Thanks,
Arunya at last i got the out put... thank guys for thinking with me....
SELECT rownum, employee_id FROM (SELECT rownum, employee_id FROM employees ORDER BY employee_id)
WHERE ROWNUM <=8
MINUS
SELECT rownum, employee_id FROM (SELECT rownum, employee_id FROM employees ORDER BY employee_id) WHERE ROWNUM <= 4 -
Merge Two Rows of a table to One row but into two columns
Hi
I Am struck in writing a query to merge two rows into two columns of one row.
Here is the Sample data i am working with,
Col 1 Col 2 Col3 Col4 Col Col6
5000 573-3000 2 0 Phone
5000 573-3036 1 0 Fax
5000 893-5703 3 0 WOrk
3000 232-5656 1 0 Phone
3000 353-5656 2 0 FAx
Here Col,Col3,Col4 form the Key.
now wht i am trying to do is to Merge these type of rows put them into Columns P,F,W,E respectively to achive a Structure as below
Col1 P F W
5000 573-3000 573-3036 893-5703
3000 232-5656 353-5656
Can you please help me how could i do this.
I am pretty ordinary at writing SQL's.
Thanks a Lot in Advance
Message was edited by:
SreebhushanSearch the forum for PIVOT and you'll find plenty of examples.
-
Update multiple rows based on two columns in same row
I have a 1000 rows in a table I would like to update with a unique value. This unique value is a cocatenation of two columns in teh same row.
Each row has a (i) date and a (ii) time and a (iii) date_time column. I would like to update the date_time (iii) column with a cocatenation of the (i) date and (ii) time columns.
I know how I would update a single row but how can I update multiple rows with a cocatenation of each of the two columns - i.e put a different value into the date_time column for each row?this?
update table tab_name
set date_time =date||time
where your_condition -
Calculation on two columns in pivot table
Hello all,
I have a view:
Dept Year Amount
Accounting $500 2010
Accounting $700 2011
Engineering $100 2010
Engineering $600 2011
and etc
pivot table:(data displayed side by side)
Dept: 2010 2011
Accounting $500 $700
Engineering $100 $600
Is there a way in pivot table to create additional column and do a calculation on that column? New column called 'Change' (actual calculation amount of 2010 minus amount of 2011 per each department). I see the feature which allows to duplicate the columns in pivot table. But this is it... no additional calculations.
Thank you in advance,
SonyaDeepak,
My "YEAR_NO' is already in the column area. Once I created 'calculated column' and entered formula '2011'-'2010' I got what I needed.
Thank you very much for the solution.
Sonya
In my view I also have column called EXPENSE. When, I added the 'calculated column' to 'YEAR_NO' with formula '2011'-'2010'. It created two calculated columns 1) after the EXPENSES and the other one after YEAR_NO. Is there a way to be specify to display the DIFFERENCE only once after the YEAR_NO??
Edited by: user8461308 on Dec 20, 2011 7:44 AM
Maybe you are looking for
-
My lock button doesnt work is there another way to lock it?
the lock button on the side stopped wotking what can i do to still be able to lock my phone
-
Collected Tooltip does not display in SSRS 2008 or SSRS 2008 R2 on a pie chart
I've tried everything I can think of, but setting the Custom Property "Collected Tooltip" for a pie chart where there is data that will be "collected" into an "Other" slice doesn't appear to work. I am using SQL Server 2008 and SQL Server 2008 R2, a
-
HT1212 Forgot my IPad unlock password
My IPad has been disabled because I (embarrassingly) forgot my unlock password. When I sign in to ITunes my IPad does not appear because I did not sync it with Tunes originally. In order to interact with ITunes and "restore" my IPad, In order to tu
-
Samsung Tab2 10.1 & Adobe Flash Player
Whyv have you stopped Adobe Flash Player for Samsung Tab2 10.1? It's obvious it's needed for seamless viewing.
-
SAP HR Benefits and Payroll Integration
Hi All, This is the first time i am posting in HR, i am new to HR Benefits, i need to configure the Benefits and Payroll Integration in my client. I don't know how to do that one, if any body have configuration steps or any article please sha