Auto check calculating the Average
I do not know how to approach an issue with my form, so any help or quide will be appreciate very much!
For a Performance Form I have 5 sections for the managers to fill in.
Every section includes an Assessment drop down list with 5 items to select from.
Items for DDList (Named:Assessment):
Outstanding
Exceeds Expectations
Meets Expectations
Needs Improvement
Does Not Meet Expectations
Final at the end of the form I have a section named
OVERALL SUMMARY OF PERFORMANCE with 5 check boxes named:
Outstanding
Exceeds Expectations
Meets Expectations
Needs Improvement
Does Not Meet Expectations
Is it possible with a script(Calculating the average?), AUTO to check(one of the check boxes for the Overall sum of performance?
THANK YOU
Hi Niall, I took your advise form your last sample cindle you have send me, I am close but still I have a problem at the end of the line!
Here what I have till now:
On change event for the Area1 the script below:
switch
(xfa.event.newText){
case
"Outstanding":
NumericField1.rawValue
= "5";
break
case
"Exceeds expectations":
NumericField2.rawValue
= "4";
break
case
"Meets expectations":
NumericField3.rawValue
= "3";
break
case
"Needs improvement":
NumericField4.rawValue
= "2";
break
case
"Does not meet expectations":
NumericField5.rawValue
= "1";
break
For a NumericField1(Score for Outstanding) on Calculate event the script:
var vScore=0 ;
for (var i=0; i<5; i++){
if (xfa.resolveNode("optionA[" + i + "]").rawValue=="5")vScore
+=xfa.resolveNode("optionA[" + i + "]").rawValue;}
NumericField1.rawValue= vScore ;
This I am getting(for NumericField1) is for example select Outstanding for all DDL is:55555 than 25 which is the desire!
How I can make it work, where is my mistake?
Thanks Niall
Similar Messages
-
Problem in calculating the Average Daily Requirement
Hello all,
I didn't understand how the system calculates the average daily requirement in Dynamic Safety Stock process. The following process flow in given in SAP notes to find how the system calculates the average daily requirement:
1. The system uses the defined parameters to determine the number of days used for calculating the average daily requirements. If the period is defined as a week, the period length as standard days (5 days) and the number of periods as 2, the system divides the total of the requirements by 10 days.
2. The system then calculates the total of the requirements for this period.
The system takes into account all requirements in the current period, even requirements that lie in the past but are still in the current period. For example, if the planning run is carried out in the middle of the month, then those requirements that were planned at the beginning of the month are also included in the calculation of the average daily requirements.
3. The average daily requirement is calculated using the formula:
Requirements in the specified number of periods / Number of days within the total period length
I have run MRP on 02/23/2009 and the following results are generated in stock requirement list of the component part:
Date Dependent Requirement MMSA Schedule Lines Quantity
3/3/2009 10 31
3/11/2009 20 20
3/31/2009 30 30
4/14/2009 40 49
4/22/2009 50 50
4/29/2009 60 60
5/11/2009 70 55
5/21/2009 80 80Hi,
In addition to my previous reply,
If you did following setting -
Range of coverage in first period -
min - blank
tgt - 7
max - blank
number of periods - blank
The system will calculate the safety stock for 7 days for each period; i.e., 7*3=21 and it will generate plnd orders as
week1 = 51
week2 = 14+21 = 35
week3 = 10+21 = 31
week4 = 30+21 = 51
If you want to restrict your calculation till 2 periods then make following settings -
Range of coverage in first period -
min - blank
tgt - 7
max - blank
number of periods - 2
Range of coverage in second period -
Make all blank
Range of coverage in the rest of the horizon -
min - blank
tgt - 3
max - blank
It means for first two weeks the safety stock will be 21 (equivalent to 7 days) and for rest of the horizon it will be 3*3 = 9 (equivalent to 3 days)
The Plnd orders will be -
week 1 = 51
week 2 = 35
week 3 = 14+9 = 23
week 4 = 30+9 = 39
and so on.
Regards,
Amol -
Formula for calculating the average takings for a given day in the week?
I would like to calculate the average takings for each day of the week for a given financial year.
Rick,
I've looked at your document, made some additions and returned it to you. In your document you were not only using AVERAGE, but also MIN and MAX. Unfortunately, MIN and MAX don't have "IF" versions, so they can't be used to selectively operate on data matching criteria in a range.
What I did to accommodate the need for MIN and MAX was to add a column for each criteria, in this case the different days of the week.
In your document you also indicated the need for a Chart to graphically summarize the performance by day of the week. I rearranged your summary stats table to facilitate creating a chart from that table. I chose the mixed category chart with Bars for Min and Max and a Line for Average.
Following are Screen Shots for the modified Data table, the Stats table and the Chart:
The key expressions are:
For Monday receipts:
=IF(WEEKDAY($B)=2, $G, "")
For Monday Minimum:
=MIN(INDIRECT("Ledger::"&CHAR(70+ROW())))
You had pre-filled Column A with 3-letter abbreviations of the Days of the Week. I am not sure this is important, since you could have formatted the Date (Column B) to show the same information, but I didn't like seeing the abbreviations for days that didn't have data entered yet so I replaced the text with an expression...
=IF(LEN(B)>0, LEFT(DAYNAME(WEEKDAY(B)), 3), "")
I seems that you may have filled the table with several months worth of rows of Mon, Tue, etc. Now, if you wish, you can trim the blank rows to just a few and add more as you need them.
Let me know if you have any questions about maintaining the document.
Jerry -
Hi All,
Finally i found a solution. a) I have a time dim from the ware house and its joined to the fact table based on the dateid, since the fact table is getting only the data for the working days , the ware house time dim is showing only those days as count.
b) I created a new time dim in SSAS TIMEDIMSSAS
c) I joined the new TIMEDIMSSAS to the warehouse time dimension and the fact table and created new measure AvgWorkDone over time and Avg Rev over time.
I'm getting what i wanted. BUT here is a new problem , when i select multiple months the grand total (which should be Average is showing wrong average and i'm not sure why), can anyone please help ?
Row Labels
AvgRevenue
AvgWorkDone
1
$4.17
277.6801802
1368
$4.17
277.6801802
February 2014
$1.59
105.7971014
January 2014
$0.97
64.66666667
March 2014
$9.52
634.5512821
Grand Total
$4.17
277.6801802
The values were supposed to be (1.59+.97+9.52)/3=4.02 and NOT 4.17 for Revenue. Similarly for WorkDone (105.79+64.66+634.55)/3=268.33 and NOT 277.68
Please can some one suggest what is going wrong here?
Thanks
SVHi saivenkat77,
According to your description, you get incorrect result when calculating the average value. Right?
In this scenario, please check expression in each calculated measure. Make sure the set expression and numeric expression are correct. You can also limit the SCOPE for set to make the calculation more accurate. Please refer to link below:
Aggregating the Result of an MDX Calculation Using Scoped Assignments
Since both measure return a slight bigger number, it may have some members which is not visible and they are aggregated unexpectedly. And it seems the values in the cells for different months are from aggregation calculation already. It may cause slight
inaccurate when aggregating an aggregated values. So please check all those calculated measure. If possible, please share sample detail data and the expression for calculated measures.
Best Regards,
Simon Hou
TechNet Community Support -
Where is the auto check for Mail?
Before the 2.0 update, I could set the Mail app for auto check every 30 minutes or so, not in 2.0, I cannot find this option any more. Can I still make this setting somewhere?
AndréThe setting is in Settings > Fetch New Data. Set Fetch to 30 min (other options are 15 min and hourly).
You'll want Push set to OFF, unless you have a need for it and your email account supports it (MobileMe, Yahoo, or an MS Exchange server do); push uses a lot of battery power, so if you don't have a need for it, leave it off.
Hope this helps... -
How can I activate the average calculation with cl_salv_hierseq_table class
Hi there,
Iu2019m using class cl_salv_hierseq_table to display a two level hierarchy (header and item) list.
For some reason it seams that those calculations are active by default with class cl_salv_table but not for cl_salv_hierseq_table.
I tried every suggestion from the class documentation and SAP help and nothing seams to work, the menu calculation options are always inactive except for the total calculation.
After the cl_salv_hierseq_table=>factory...
And before cl_salv_hierseq_table->display( )
I triedu2026u2026.
cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 1 )
cl_salv_aggregations->add_aggregation( 'COLUMN1' )
COLUMN1 is a currency column in header level table
u2026u2026..
cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
cl_salv_aggregations->add_aggregation( 'COLUMN2' )
COLUMN2 is a dec column in item level table
u2026u2026..
cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
cl_salv_aggregations->add_aggregation( columnname = 'COLUMN2' aggregation = if_salv_c_aggregation=>average )
u2026u2026..
cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
cl_salv_aggregations->set_aggregation_allowed( 'COLUMN2' )
u2026u2026..
cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
cl_salv_aggregations->set_numerical_aggregation( ).
cl_salv_aggregations->set_aggregation_allowed( 'COLUMN2' )
cl_salv_aggregations->add_aggregation( columnname = 'COLUMN2' aggregation = if_salv_c_aggregation=>average )
u2026u2026..
cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
cl_salv_aggregations->add_aggregation( 'COLUMN2' )
cl_salv_aggregation = cl_salv_aggregations->get_aggregation( 'COLUMN2' )
cl_salv_aggregation->set( if_salv_c_aggregation=>average )
Any help will be appreciated!Thanks Harsh Bhalla,
Subtotals can be built (displayed) at Header Level Only, true but the values to calculate those totals can come from either header or item level, otherwise it wouldnu2019t be of much use would it?
Anyway my question is how to activate the average calculation as well because the totals calculations is already active for either item or header level by default.
For reference when on the display layout Iu2019m referring to the menu Edit -> Calculate -> Mean Value. -
When is the average rps computed? (check-request-limits throttling)
Hi all,
The documentation indicates that the default interval for computing the average request per second is 30 seconds. My question is: When does this 30 second start and end? Is it based on the server clock? That is, it computes the average rps @ 01:01:00 then @ 01:01:30 then @ 01:02:00 etc? Or is it based on the server's up-time? Or perhaps based on another algorithm all together?
I simply need to know the frame of reference for computing the average rps. The documentation and the blog posts by Jyri Virkki are not clear about this.
Thank you in advance,IIRC, the interval is computed on demand when needed for a given rule. The interval is a minimum interval, if no matching requests arrive then the rps won't be computed again until needed.
FYI Sun open-sourced most of the Web Server code, so you can check the implementation directly if you wish.
Looks like the relevant part is starting on line 308 of http://heliod.svn.sourceforge.net/viewvc/heliod/trunk/src/server/safs/reqlimit.cpp?revision=2&view=markup -
Anyone know why the Auto Check feature is not on my iPhone?
When watching the Finger Tips it shows under settings then mail there is an auto check feature. I am missing it
No problem. The rationale for it is that, since Yahoo emails are supposed to get "pushed" to the iPhone, you don't need AutoCheck.
The problem of course is that yahoo push email has not been very reliable for some people.
The way around this is to set up another (non-Yahoo) email account on the iPhone, even if you don't plan to use it. This will make the AutoCheck feature show up, and you can turn it on to catch the emails that don't get pushed. -
Choosing the average of a KF in BEX at aggregation or calculations?
Hi All,
we have a problem in reporting due to KF that are "average" in our planning area in SAP APO but not average as Infobject.
due to this most reports have completely wrong values.
most of our infoobject KF are Quantity, and SUM like aggregation and Summation like Exception Aggregat.
what should we do in this case?
should we change the KF Exception Aggregat. to Average and this fix the problem? i saw that we have 4 types of average.
if we change the Exception Aggregat. of our KF should we before move the KF from all the cube? or we can do the change without problem?
if we want to fix this at BEX side, where should we decide the average? at aggregation tab or at calculations type?
what are differences between these 2 options?
Thanks
BilalHi,
As I understood you have Key Figure display in Planning Area as average and you want to replicate the same in report.
Noramaly Key Figures are saved as normal quantities not as average so you should not change the exsiting structure.
there are various option as you saind for your requirement.
The priority or approach should be as following.
Try to change at Formula level at calculation type (As in exception aggrigation you may provide one refence charcteristics and as I assume that is not your need so go for calcultion type).
If this doesn't work then go for basi Kasic Key figure diaply proeprties change and still not able to find your results then go for Key Figure definitions change at Info object level. If you do that then movement of cube is required so try to avoid that.
I hope this approach will work.
Thanks,
S -
Revision: 14105
Revision: 14105
Author: [email protected]
Date: 2010-02-10 11:34:06 -0800 (Wed, 10 Feb 2010)
Log Message:
Fixed bug where canSeekTo(0) wasn't checked before the auto rewind code in play was called. Fixed 347.
Modified Paths:
osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayer.asHave I mentioned how much i love my playbook now Great job on os 2.0
-
Is there a way to auto check a check box triggered off the completion of a specific text box?
I am using Conga Composer. I'm hoping when information is filled into a specific text box in a pdf, it will auto check a specific checkbox. Any script ideas? Or if this is even possible? I've seen scenarios for the reverse, but my situation requires this particular flow.
I highly doubt this process is going to trigger any of these scripts, if that's what you're planning...
What you can do add a doc-level script that will execute when the file is opened and set the check-box based on the text field's value, in addition to the custom keystroke code. That would look something like this:
this.getField("CheckBox").checkThisBox(0, this.getField("TextBox").value!=""); -
Bex report for the average calculation
Dear All,
I like to make a Bex report. On that I like to distribute the last 3 months data on daily average basis.
From there what will be the stock out of the particular day ( in no.s and from the average value), it should be shown in one line rather than all value.
Please, guide me how to do.
regards,
BalaramHi,
Try the following
Create variable1 against 0calmonth with ready for input ....Manual Input --- Mandatory
Create Variable2 on 0calmonth with out ready for input --- customer exit - interval
go to cmod write customer exit variable to to populate value for variabl2
eg. if variable1 = 03.2011 Then variable2 should be between 01.2011 - 03.2011 (If you need coding please let me know)
Free Char
Row
0calday/ Sales Document Date / Billing Date (choose which one you need and select only out of them )
Column
Sales Qty
--Create New Selection and name as 'Avg Qty 3 Month'
--add sales Qty in to new selection
--Drag and drop 0calday/ Sales Document Date / Billing Date (choose which one you need and select only out of them )
--Right Click on it and restrict with 0calmoth variable2.
--Context menu of 0calday/ Sales Document Date / Billing Date (choose which one you need and select only out of them ) and tick constant .
make it hide in property
Create New formula
Avg Qty 3 Month / 90
Please note there is leap year also ... it better to calculate no of days between rage in formula...
Hope this will help you to sole the issue...
Thanks
BVR -
Want the Average of sales for months up to date, with empty months included
How do I create an MDX that gives me the average of , f.ex., Sales
Note that some months may not have sales, but the month should still be counted.
The result I want to get out is a listing of Years with average of Sales for each year. Where current year only calculates up to current month.
Lets say that todays month is 2014-05 and we have the following figures for this year.
Month Sales
2014-01 10
2014-02 20
2014-03 Null
2014-04 15
2014-05 10
The calculation should be Sum(Sales) divided by 5 months: 55/5 = 11
If I use:
Avg( Descendants([Date].[Calendar].[Month].CurrentMemeber
, [Date].[Calendar].[Month])
, [Measures].[Internet Sales]
It will exclude 2014-03, which is wrong!
If I use CoalesceEmpty() to fill in the Nulls:
Avg( Descendants([Date].[Calendar].[Month].CurrentMemeber
, [Date].[Calendar].[Month])
, CoalesceEmpty([Measures].[Internet Sales],0)
It will fill in 0 for all months 2014 (up to 2014-12), which is also wrong!
It feels like a really simple calculation, but I can't make it work.
ThanksI finally had to fix it by checking the number of months to get it right.
This solved my problem and gave me the correct averages on year and month level.
Create Member CurrentCube.[Measures].[COMPLAINT COUNT AVG CALC] As Null
,Format_String = ";;;\N\/\A",VISIBLE = 1;
// For Year level - Show average of year = Sum/NumOfMonth. If this year then up to this month else divide by 12
SCOPE([COMP CREATION DATE].[YEAR].[YEAR], [Measures].[COMPLAINT COUNT AVG CALC]);
This = IIF([COMP CREATION DATE].[IS THIS YEAR].&[Y],
DIVIDE(SUM([COMPLAINT Count]), Format(now(), "MM")),
DIVIDE(SUM([COMPLAINT Count]), 12)
Format_String(This)="# ### ##0";
NON_EMPTY_BEHAVIOR(This) = { [Measures].[COMPLAINT Count] };
END SCOPE;
// For month level - Show average of month = Sum/NumOfDaysInMonth
SCOPE( [COMP CREATION DATE].[Year-Month-Date].[YEAR MONTHNO], [Measures].[COMPLAINT COUNT AVG CALC]);
This = IIF(not isempty([Measures].[COMPLAINT Count]),
Avg(
Descendants(
[COMP CREATION DATE].[Year-Month-Date].CurrentMember,
[COMP CREATION DATE].[Year-Month-Date].[DATE ID]
CoalesceEmpty([Measures].[COMPLAINT Count],0)
,Null
Format_String(This)="# ### ##0";
NON_EMPTY_BEHAVIOR(This) = { [Measures].[COMPLAINT Count] };
END SCOPE;
mStenport -
The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
pear to be working or at least I am not getting any indication on the inidcator.
Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
Attachments:
regulation_tester_7_loops.vi 244 KBI didn't really have time to dig in and understand your program in depth,
but I have a few tips for you that might things a bit easier:
- You use local variables excessively which really complicates things. Try
not to use them and it will make your life easier.
- If you flowchart the design (very similar to a dataflow diagram, keep in
mind!) you want to gather data, calculate a value from that data, store the
calculation in an array, and loop while the time is in a certain range. So
theres really not much need for a sequence as long as you get rid of the
local variables (sequences also complicate things)
- You loop again if timepassed+1 is still less than some constant. Rather
than messing with locals it seems so much easier to use a shiftregister (if
absolutely necessary) or in this case base it upon the number of iterations
of the loop. In this case it looks like "time passed" is the same thing as
the number of loop iterations, but I didn't check closely. There's an i
terminal in your whileloop to read for the number of iterations.
- After having simplified your design by eliminating unnecessary sequence
and local variables, you should be able to draw out the labview diagram.
Don't try to use the "insert into array" vis since theres no need. Each
iteration of your loop calculates a number which goes into the next position
of the array right? Pass your result outside the loop, and enable indexing
on the terminal so Labview automatically generates the array for you. If
your calculation is a function of previous data, then use a shift register
to keep previous values around.
I wish you luck. Post again if you have any questions. Without a more
detailed understanding of your task at hand it's kind of hard to post actual
code suggestions for you.
-joey
"nelsons" wrote in message
news:[email protected]...
> how do I create a 1d array that takes a single calculation and insert
> the result into the first row and then the next calculation the next
> time the loop passes that point and puts the results in thsecond row
> and so on until the loop is exited.
>
> The attached file is work inprogress, with some dummy data sp that I
> can test it out without having to connect to equipment.
> The second tab is the one that I am having the problem with. the
> output array from the replace element appears to be starting at the
> index position of 1 rather than 0 but that is ok it is still show that
> the new data is placed in incrementing element locations. However the
> main array that I am trying to build that is suppose to take each new
> calculation and place it in the next index(row) does not appear to be
> working or at least I am not getting any indication on the inidcator.
>
> Basically what I am attempting to do is is gather some pulses from
> adevice for a minute, place the results for a calculation, so that it
> displays then do the same again the next minute, but put these result
> in the next row and so on until the specifiied time has expired and
> the loop exits. I need to have all results displayed and keep building
> the array(display until, the end of the test)Eventually I will have to
> include a min max section that displays the min and max values
> calculated, but that should be easy with the min max function.Actually
> I thought this should have been easy but, I gues I can not see the
> forest through the trees. Can any one help to slear this up for me. -
Error while calculating the net present value
Dear experts,
Please help me in solving the following error.
I am trying to do project vaibility analysis through pre investment analysis in appropriation request, interm I'm trying to calculate the IRR for the project.
I have created the appropriation request and given all the data in that including the planed values for the project.
In Variants tab of appropriation request, preinv. analysis sub tab, i have clicked the button Calculate preinvestment analysis figures , ( I hvae not mentioned any values in that screen, its picking the plan cost from the planed values of the appropriation request) there I'm getting an error saying
Error while calculating the net present value
If I open the message it is as follows:
Error while calculating the net present value*
*Message no. AO215*
Diagnosis
An error occurred during calculation of the net present value.
The yield curve for determining the net present value is not completely maintained. Possible causes are:
1. Evaluation type IM01 does not exist (table ATSYC).
2. Yield curve types 9990 (bid) and 9991 (ask) have not been created (table JBD14) for the currency of the controlling area of the appropriation request.
3. Reference interest rates have not been created for the yield curves (tables T056R and JBD15).
4. Interest rates are not maintained for the complete planning time period for the reference interest rates.
5. Under certain circumstances, the standard exchange rate types 'G' and 'B' may be inconsistent.
Procedure
Check your Customizing settings:
1. SAP supplies the evaluation types.
Remember, SAP supplies the evaluation types in client 000. You have to copy them into your working clients. If you do not have them in your system, you can create them in Customizing for the Treasury component (Treasury Management -> Market Risk Management -> Evaluations -> Define Default Settings). Create evaluation type IM01 with bid yield curve type 9990 and ask yield curve type 9991.
2. In Customizing for appropriation requests (under Planning), create a bid yield curve type 9990 and an ask yield curve type for the currency of the controlling area of the appropriation request.
3. Create at least one reference interest rate for each yield curve.
4. Maintain the reference rates, starting at the minimum fron the point at which you you have planned costs or revenue.
5. Check Customizing of the exchange rate types 'G' and 'B' in the IMG under Global Settings -> Currencies.
I have checked all the procedures of the said customization and the values are similar to that of the error message, but still I'm unable to proceed further.
I have goe through the note 160375, but did not succeed on this issue.
Can any one help me out in solving the above error and also can any one explain me the process in SAP to calculate IRR?
Is there any more customization missing or whats wrong going in that process?
Please help me out...
Thanks in advance..
Regards,
Praveen.Are you installing a Demo version of NetWeaver? If so please post your questions and search for answers here: SAP NetWeaver Application Server
If this a real full blown system please contact the OSS, via the Marketplace (service.sap.com) or by OSS transaction in your SAP System.
Maybe you are looking for
-
MBP does not come back after hybernation
Hello everyone, I am enjoying my MBP except for one problem. It does not come back after it hybernates sometimes. I hit a key, hear the superdrive do it's "thing" and then after much waiting (approximately over 10 minutes) no picture or video on the
-
IC clients and CTI integration
guys, I am new to CRM and need some clarification on the web/Win IC clients and the CTI integration. My questions are as follows: 1) Do I have to have a java stack of the CRM sytem to use the Web IC client ? 2) Is it possible to use the Web IC client
-
SPROXY No connection to Integration Builder SLDCHECK working okay
Hi, In R/3, when I run SPROXY transaction, I get "No connection to Integration Builder ". I have gone thru blog [How do you activate ABAP Proxies? |How do you activate ABAP Proxies?]- Activate Proxy. I have done all the config in R/3 and sldcheck is
-
Hello, I am looking for the command line version of java weblogic.servlet.ejb2jsp.gui.Main What is it and where is the doco please? Thank you, T
-
Hi, We have an OIM 11g R2 version running that has a GTC installed and configured. The GTC is used to provision to a 11g R2 database table via the DBAT 9.1.0.5.0 connector. Now the requirement is that the timestamp be recorded in the backend DB when