Report average values of characteristics
Hello,
is there any standard report to know the averago values of some characteristics per date?
For example,
I have three inspection lots for plant A, the inspection plan have two char. Y and Z.
If the values are:
Inspection lot 1: Y = 5 Z = 10
Inspection lot 2 Y = 10 Z = 15
Inspection lot 3 Y = 15 Z = 20
The average values are: Y = 10 and Z = 15
Thanks
Are you batch managed and is each inspection lot a different batch?
FF
Similar Messages
-
Report requirements with Average value , forecasting value & Prod Quant.
Dear Friends,
I need a help in Reporting.
The reqirement is like this:
1. I need to display the daily production quantity.
2. Also the Average value of the Production quantity for a month.
3. And the Forecasting value for the first day of next three months.
4. Restricted Cal month on filters with variables and calday in columns and
keyfigure in Rows.
I have tried to calculate the Average but as the report is based on cal day it gives me the average value for all cal days. But i need it for the entire month.
Plz help me in solving this report with your golden ideas!!!
Thanks in Advance and Points will be assigned!!!
Thanks
SriHi,
Thanks for your early response.
Actually i am unable to use tcode: KKBC_ORD rather able to use KKBC only.
Using KKBC (Target/actual/production variance) and activating collective order from setting option only able to see the details for a particular leading production order only relating toa particular period .
My requirement is to display all the production orders settled in a particular period along with (Material code /order number/ Qty/Actual value and variance value).
Note: If any leading order exists then that should be collective order i.e.(value and Qty should come against the leading order number).
If there is any standard tcode exists please let me know else provide the tables and logic to bui;d up such a report.
Regards,
Ramakanta -
Too many decimals in Average value
Hi
I am using Report Builder and the wizard do design a table which i deploy as a .jsp page.
For some columns in the table I select to display the average values. Some of the values looks fine with one decimal as i want, but some values is displayed with a lot of decimals (about 10) as 164,346666666666666666. I have tried to change the length but without effect. Are there any possibility to decide the number of digits to be shown in the report . Or is i it a bug in Report Builder.Go to Property Inspector of the field and choose the right "Format Mask".
-
Calculate Average value based on Day ??
Hello,
I am trying to calculate the Average value based on a day. The data is presented as follows...
Day SOCount
Mon 34
Mon 56
Mon 67
Tues 24
Tues 25
Tues 23
Weds 45
Weds 69
The issue im having is that the Day column needs to be grouped first and the SOCount sumed together. Then the Average SO Count needs to be calculate based on this.
ThanksThanks for the reply,
The solution you have provided only gives me the average of the count of the SO Count, not the actual average of all the values added together then divided by the count..
The report i am creating only has charts in it. So i am trying to create a chart showing the
Average Sale Order Value by day.
I should have metioned this from the start, sorry.
Is it possible to do ?
Edited by: davitali on Nov 4, 2011 6:32 AM -
Report Painter: Rearranging of Characteristics
Hello Everyone,
Could anyone help me out in rearranging characteristic in Report Painter.
As per clients requirement the report should split values of Cost Center into Activity Type and then Cost Components. However, I am getting report in Reverse way itu2019s splitting the Values from Activity Type into Cost Components then Cost Center. I Would like to know functionality of Report Painter for rearranging Characteristics.
EG: Cost Center----- Activity Type--
Cost Component.
Thanks,
SnehaHi
Can you please explain the cleary. -
Average values in SAP BPC for MS 7.5
Hello!
I need to make a price list in SAP BPC for MS 7.5.
So the first question - What type of application should I choose?
And the main thing - How can I make average calculations?
I have made account dimension, which member list contains just "Price".
When I built an input shedule(goods against time), enter prices in some currency,
the total year value ist the sum of the values of months. But I need an average value.
How can I organise it?
Thanks a lot.Hi Olga,
You statement doesnt provide any information on which type of application should be used.
This decision is based on other criterias. If you need to do any planning or management consolidation, then you can use the financial type application. If you want to do a legal consolidation, then you can use the consolidation type application. If you need to store just the supporting data required for planning, then you can use non-reporting type application (such as rate)
For displaying average at parent members, either you can write dimension formula in the time dimension for the account price. Otherwise, you can create a custom measure.
Hope this helps. -
How to accessing current row report column value in Lov Query?
Hi,
which access methods (eg. bind variables, substitutions, ...) for getting the current row report column value can be used in the "Lov Query" property of a report column?
As what I know of and what I have read on the forum there are no bind variables for the report columns. For the "Link Text" property it seems that the column values exist as substitution strings (#COLUMN_NAME#). But they don't work in the Lov Query. => And would be good because of a hard parse each time the Lov query is executed.
The following post (Re: Simulating a correlated sub query in lov
is showing a solution to use package variables for temporary storage of the referenced value, but the only problem with that solution is that if a new record is added with the "Add rows to tabular form" process the package variable still contains the value from the last queried row! Is there a way (variable, APEX package, ...) to determine if the lov query is executed for a new record so that the package can return null?
I know that I could write the package in a way that the value is immediately cleared when lov_pkg.keyval is called (one time read), but then I would have to create several variables if I'm accessing the value multiple times in the query or in another query => I think an one time read solution would be very obscurely.
Thanks for your help
Patrick
http://inside-apex.blogspot.comHi Patrick,
I agree that it's a waste to continually use Ajax to go back to the server to get the contents of a dynamic select list.
There are no bind variables for any row item - but what you do have, as per my previous post, is the value of the data entered by the user in the first row. You can pass this into your application process (using get.add("VARIABLENAME", value)), which can use it to retrieve the correct LOV in your Ajax code - this will give you a "bind variable" that your process can use.
What you could do, however, is generate hidden select lists on your page - one for each possible LOV list and replace the contents of the new row's select list with the contents of the appropriate hidden select list. This is easy to do with javascript (using innerHTML functions). Obviously, though, the usefulness of this depends on the number and size of the select lists.
Even if you don't generate them to start with, you can keep a copy of any select lists returned by Ajax in the DOM for use on new rows. So, if you have retrieved a select list, you will have a copy of it in DOM which you can then copy into the new row. If you don't have the list in DOM, use Ajax to get it, store a copy of it and copy it into the new row.
Which method you use will depend on the number/size of select lists needed. If they are few in number and/or size, I would suggest generating hidden lists. If they are large, use Ajax to get them once, store them and then retrieve them from the DOM when needed.
There is another thread here where Arie recommends going to the server every time to make sure you get the most up-to-date data for the lists. If you want to follow this advice, for this reason, use get.add("VARIABLENAME", value) to pass the value to your process. If this is not an issue, you can use one of the other methods I outlined above.
Regards
Andy -
Crystal Report Viewer 11.5 Java SDK - How to set sub report parameter value
Good day!
I have a report with 3 sub-reports in the detail section. Main report has two parameters and each sub-report has one parameter in turn. We have our own JSP to receive parameter values from the user. I am using the following code to do the parameter value setting later into the report. Parameter value setting works for main report, but not for the sub-report.
I get an Error, for the first sub-report, from the viewer saying:
The parameter 'parametername' does not allow null values
On this article: [article link|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap%28bd1lbizjptawmq==%29/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333233323331%7D.do]
It says to set the report name of the parameter field to the name of the sub report. On this aspect, assuming this tip/solution works, I would like to read the names of the sub-reports and their parameter names. I do not want to hard-code them into our application.
Here is my current code:
sdk.occa.report.data.Fields parameterFields = new Fields();
I have a HashMap of <parameterName, parameterValue>
Iterate through the map
report.data.ParameterField aParameterField = new ParameterField();
aParameterField.setReportName(""); //main report
report.data.Values theValues = new Values();
ParameterFieldDiscreteValue aParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
aParameterFieldDiscreteValue.setValue (aValue);
theValues.add(aParameterFieldDiscreteValue);
aParameterField.setName(parameterName)
aParameterField.setCurrentValues(theValues);
parameterFields.add(aParameterField);
viewer.setParameterFields(parameterFields);
Please look at the line:
aParameterField.setReportName(""); //main report
Here's where I would like to say
if (parameter is subreport's parameter) then setReportName(subreport name);
ThxIt was little difficult to navigate down the objects to find the sub reports and their parameters. I am attaching the code:
May be there are other ways to do the same.
public String getReportNameForParameter (String parameterName, ReportClientDocument reportClientDoc)
String result = "";
boolean found = false;
try {
SubreportController src = reportClientDoc.getSubreportController();
DataDefController ddc = reportClientDoc.getDataDefController();
IDataDefinition idd = ddc.getDataDefinition();
Fields fs = idd.getParameterFields();
Iterator fiter = fs.iterator();
while (fiter.hasNext()) {
IField ifld = (IField) fiter.next();
if (parameterName.equals(ifld.getName())) {
found = true;
//System.out.println ("\t Field Name/Description/HeadingText: " + ifld.getName() + "/" + ifld.getDescription() + "/" + ifld.getHeadingText());
if (!found) {
IStrings reportNames = src.getSubreportNames();
//System.out.println (" Sub Reports If Any ...");
if (reportNames != null) {
Iterator iter = reportNames.iterator();
while (iter.hasNext()) {
String repName = (String) iter.next();
//System.out.println ("\t Sub Report Name " + repName);
ISubreportClientDocument srcd = src.getSubreport(repName);
ddc = srcd.getDataDefController();
idd = ddc.getDataDefinition();
fs = idd.getParameterFields();
fiter = fs.iterator();
while (fiter.hasNext()) {
IField ifld = (IField) fiter.next();
if (parameterName.equals(ifld.getName())) {
result = repName;
break;
//System.out.println ("\t\t Field Name/Description/HeadingText: " + ifld.getName() + "/" + ifld.getDescription() + "/" + ifld.getHeadingText());
//System.out.println ("********************************************************** ");
catch (Exception exc) {
System.out.println ("Error/Exception while trying to find the report name for parameter [" + parameterName + "]");
System.out.println ("*******************************************************************************************");
exc.printStackTrace();
return result; -
To display average value in a graph
Hi There,
In one graph I need to display the duration for each week as per the week range selected and a separate average duration value of the weeks selected.
Is it possible to develop a query for above average value and use this query in WAD?
Can anybody help in providing a solution
Thank you
AnimaBI Query data can be fed directly to WAD Charts.
See below.
http://help.sap.com/saphelp_nw04/helpdata/en/0c/95c83956852b51e10000000a114084/content.htm -
Column link - call java script & assign current report column value to item
Hi,
How to call java script and assing current report column value to item?
I have a button column in the report to 'delete' the selected row.
I want to first show dialog box with message 'Are you sure?'. If yes, process to delete
will be executed, else no action.
In order to fire JS, I used Column Link ->Target=URL.
Problem: The alert is showing but I don't know how to pass selected row's primary
key value to process (to delete selected row).
I have a item which can be used to store selected primary key value but don't know how to assign the value
when button pressed.
Thanks in advance
DipOk. The issue has been resolved by following way.
PAGE PROCESS: delete_request
begin
delete xyz
where id = :P8_id;
commit;
end;BUTTON URL:
javascript: DelRec(null,'CREATE', 'f?p=&APP_ID.:8:&SESSION.:delete_request:NO::P8_id:#id#');Java Script:
<script language="JavaScript1.1" type="text/javascript">
function DelRec(msg, req, url){
var confDel = msg;
if(confDel ==null){
confDel= confirm("Are you sure?");
}else{
confDel= confirm(msg);}
if (confDel== true){
redirect(url); }
</script> -
Creating function to calculate average value
Hi,
The below query was successfully return an average value. It returned 1 row.
SELECT AVG(Volume)
FROM security
WHERE
Type = 'Future' AND
Rating = 'AAA' AND
Code = 1 AND
(Day = ''14-mar-09' OR
Day = '16-mar-09' OR
Day = '');
I tried to use that function on my created function below.
CREATE OR REPLACE FUNCTION fn_Vol_Average
( v_DayLast_1_Week IN DATE,
v_DayLast_2_Week IN DATE,
v_DayLast_3_Week IN DATE )
RETURN NUMBER IS
v_Vol_Average NUMBER;
BEGIN
SELECT AVG(Volume) INTO v_Vol_Average
FROM security
WHERE
Type = 'Future' AND
Rating = 'AAA' AND
Code = 1 AND
(Day = v_DayLast_1_Week OR
Day = v_DayLast_2_Week OR
Day = v_DayLast_3_Week);
RETURN NVL(v_Vol_Average, NULL);
END;
I called that function by the following query. it was work, however it return the whole rows. It looks like the function perform the average calculation of each rows on the table.
Can anyone help me what is going on with the logic?
select fn_Vol_average('14-mar-09','16-mar-09','')
from security
--But since your function calculates the average over the whole security table, you wouldn't call this from a select statement which also reads the security table.
You just want to execute it once.
declare
l_vol_average number;
begin
l_vol_average := fn_Vol_average('14-mar-09','16-mar-09','');
dbms_output.put_line(l_vol_average);
end;By the way, be careful with your date parameters. You should use TO_DATE with a proper format mask to prevent conversion errors. -
Dynamically set report field value
In my old classic VB project, I was able to set a report field value using the following simple line of code.
someReport.SomeField.SetText u201Cabcu201D
This was nice and simple, now with crystal reports .Net I do the following:
((TextObject)someReport.SectionX.ReportObjects["SomeField"]).Text = u201Cabcu201D;
Itu2019s simple enough but seems too elaborated compared to the good old VB6.
Not that is a big deal but is there a simpler way (Classic VB6 style) to set a field on a report without me having to create my own utility method to u201Csimplifyu201D things?
Thanks.Perhaps using a formula?
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Public Class Form1
Inherits System.Windows.Forms.Form
Dim Report As New CrystalReport1()
Dim FormulaFields As FormulaFieldDefinitions
Dim FormulaField As FormulaFieldDefinition
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FormulaFields = Report.DataDefinition.FormulaFields
FormulaField = FormulaFields.Item(0)
FormulaField.Text = "[formula text]"
CrystalReportViewer1.ReportSource = Report
End Sub
Other than that, InProc RAS, but if the solution you have is complicated, you ain't seen nothing yet
- Ludek -
Display of "Average Values Text in ALV grid"
Hi
I use ALV grid to display the fields from a table. I have 15 columns. I need to do average for four columns.
In the field catalog i did a do_sum for those fields.
When the ALV grid is displayed I get average values for these columns.
Eg. Let suppose the grid looks like
Field1 Field2 Field3 Field4 Field5 Field 6.
vendor1 18 22 6 17 28
vendor1 54 11 16 62 28
vendor1 33 21 26 79 18
35 18 16 52 24
My requirement is I need to display the text "AVERAGE VALUES" . ( I need something like this.)
Field1 Field2 Field3 Field4 Field5 Field 6.
vendor1 18 22 6 17 28
vendor1 54 11 16 62 28
vendor1 33 21 26 79 18
Average values 35 18 16 52 24
Could someone help me in this?
Thanks & Regards
KavithaHello,
you can use event subtotal_text of ALV_GRID.
Regards,
Pedro Santos -
Script logic to calculate average value on nodes - SAP BPC NW 10.0
Hi experts,
I need to have in the parent members of the dimension TIME (2014.Q1, 2014.Q2, 2014.Q3, 2014.Q4, 2014.TOTAL) the average value of their children and not the sum. For example :
2014.01 2014.02 2014.03 2014.Q1
1 2 3 2
2 = AVG(1, 2, 3)
I tried the script bellow but it doesn't work , it throws the error " ReferenceError : AVG is not defined"
*SELECT(%TIMESET%,"[ID]",TIME,"[CALC]='Y'")
*XDIM_MEMBERSET TIME = %TIMESET%
*XDIM_MEMBERSET MEASURES = PERIODIC
*WHEN DIM1
*IS C02
*WHEN TIME
*IS %TIMESET%
*REC(EXPRESSION = AVG(Descendants([%TIMESET%].CURRENTMEMBER)), TIME = %TIMESET%)
*ENDWHEN
*ENDWHEN
*COMMIT
How can I achieve this ?
Thanks
MahaThe best way is to enter 2 accounts: Productivity and Area, calculating by dimension member formula:
ProductivityPerHectare=IIF([Area]=0,NULL,[Productivity]/[Area])
If you have to enter ProductivityPerHectare and Area, then in script you can calculate Productivity:
*WHEN ACCOUNT
*IS Area
*REC(EXPRESSION=%VALUE%*[ACCOUNT].[ProductivityPerHectare],ACCOUNT=Productivity)
*ENDWHEN
*WHEN ACCOUNT
*IS ProductivityPerHectare //user input
*REC(EXPRESSION=%VALUE%*[ACCOUNT].[Area],ACCOUNT=Productivity)
*ENDWHEN
Then dimension member formula:
ProductivityPerHectareCalc=IIF([Area]=0,NULL,[Productivity]/[Area])
You can use arithmetic average of ProductivityPerHectare only if Area is always constant.
In this case you can create some dummy account member DUMMY and fill it with 1:
*WHEN ACCOUNT
*IS ProductivityPerHectare //user input
*REC(EXPRESSION=1,ACCOUNT=DUMMY)
*ENDWHEN
Then dimension member formula:
ProductivityPerHectareCalc=IIF([DUMMY]=0,NULL,[ProductivityPerHectare]/[DUMMY])
Vadim -
How to calculate average value?
Hi all,
I'm using Lumira 1.15. I'm doing some practices with the sample dataset BestRunCorp... I want to calculate the average value of gross margin which is grouped by lines so that I can use a line chart to show the difference between the gross margin value and average value.
How can I achieve this ?
Best regards,
ShuangIt looks like it calculates the average based on the dimension
See below:
If you take the "Best run" Excel file, sort by country, calculate the average in Excel, it matches Lumira's 4,056 (for Argentina)
I am not sure I follow your divide by 12 logic?
Maybe you are looking for
-
Unable to create a password for my BEFW11S4 wireless router
I had to reset my router in order to gain access to it via the web. I then used the default username and password to get in. Once in, I found a 16 digit password that I have been unable to change under the password tab. Why can't I change the pass
-
How far does iPhoto preserve the RAW file when editing?
I'm trying to get a better understanding of how iPhoto handles RAW photos and hope you'll answer a humble, possibly misguided question: How far through the editing process does iPhoto preserve RAW data? Here's what I mean by this: I understand that i
-
??? I want to publish my site to the web. HELP!!!
-
NEWBIE: Inserting FLASH. Problem:(
Greetings. I was wondering if anyone could steer me in the right direction. I inserted a flash file (swf) into a dreamweaver page. I then previewed the page and the Flash piece played fine. I then put the html page on my server, and put the flash fil
-
RAC service can't start after upgrading to 10.2.0.4
Hi All, After upgrading to 10.2.0.4 from 10.2.01 (linux32 with 2 nodes), I am experiencing the following: 1. The rac service (created after the database was created, not the default service) can not start after the database started with "prkp-1030" e