Logic to calculate average number of employees per day...
Hi,
In an internal table, i have employee number, start date, end date.
This table shows employee's start and end dates for a cost center.
Now, the requirement is to calculate the average number of employees available per day for a given period...
Lets asume that we would like to calculate average number of employees per day for a given period of 30 days (01.01..2009 to 30.01.2009)....
The above table will have around 20 employees with their start and end date.
Among these 20, some may be present between 1st to 10th Jan only..
In such case, How to calculate average number of employees per day in such case?
Can anyone help me out with a rough sketch of logic for this calculation?
Thanks in Advance,
Pavan
My Logic:
1) First choose dates from which date to which date you are planning to calculate. [Here i am trying to calculate from Jan 1st 2008 to till date - March 3rd 2009 = So total days = 427 days]
2) First try to count number of days worked in organization by each employee. [Lets take employee a = 10 days, b = 182 days, c = 427 days].
3) Then total all the number of days. [abc = 10182427 = 619 days].
4) Total number days / Total number of days worked = 619 / 427 = 1.44 employees per day.
Employee Emp-Start Date Emp-End Date No. of days
a Jan 1st 2008 Jan 10th 2008 10
b Jun 1st 2008 Jun 30th 2008 182
c Jan 1st 2008 3rd March 2009 427
Total No. of days 619
From Jan1st 2008 to Till date 3rd March 09 427
619 / 427 = 1.449648712
I tried take simple example to recheck the above scenario is correct or not. If 'n' number of employees worked for an organization in a year (365 days) is 730. then per day = 730 / 365 = 2 employees per day worked for organization.
I am not sure my logic is correct or not ... just tried like above.
Regards,
~Satya
Similar Messages
-
How to get average number of emails per day?
Hi,
I need figures on the mail activity (whether inbound ir outbound). I have implemented the imslog.pl. Does this output from imslog.pl answer my question:
Message load by day (dequeues):
Date # of dequeues
16-May-2006 8813
the # of dequeues is the same as the number of outbound messages (mails that are sent by my mail server)?
How to get the enqueued stats?
thanks,Hi Linda,
Email statistics are a tricky thing. Before attempting to collate statistics for any kind of reporting you need to strictly define what you wish to collect and how to define an 'email'.
For example, if a single email is destined for 10 addresses, is this 1 email or 10. From a virus-scanning point-of-view it's one email, but from a storage perspective it can be 10 (single message store makes this even more complex) and from a delivery-to-external host it can be 5 (assuming 5 distinct email domains).
For email activity, you can separate this into a few categories (this will also depend on your email infrastructure):
a. Inbound external email (tcp_local enqueue)
b. Inbound internal/external email from internal staff (tcp_submit/tcp_auth enqueue)
c. Inbound internal email (tcp_intranet enqueue)
d. Outbound external email (tcp_local dequeue)
e. Local account delivered email (ims-ms dequeue)
f. Local host delivered email (tcp_intranet dequeue)
These statistics are all currently available in the imslog.pl output.
Hopefully I haven't caused more confusion. I find though for reporting it is best to have these definitions clear from the beginning, especially if you are looking for trends over-time.
Regards,
Shane. -
Since yesterday I'm unable to send emails on any of my Apple devices. The revert is that I have exceeded the maximum number of emails per day, but I had only sent out 24 with no bulk emailing - (much less than 1000 recipients as per the website) and I'm STILL not able to send emails. Any advice on how to solve this?
I have asked a moderator to provide assistance, they will post an invite on this thread.
Once you get a reply, if you click on their name, you will see a screen like this. Click on the link as shown below.
Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
There are some useful help pages here, for BT Broadband customers only, on my personal website.
BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones. -
How to limit number of logins per day?
We have a custom web application (WebAS 6.20) used by people and automated systems. Each user has his own login, and some of these automated systems sometimes produce heavy load because they log into system too often.
Is there an easy way to:
1) limit number of logins to, say, 1000 per day and when this limit is reached - do not allow this user to login till midnight
OR
2) dedicate one of the processes to the specific user
thanks in advanceextend PlainDocument class to restrict the number of characters per line.
Set this class as model to TextArea.
Below is a class which does this. May be its useful
import javax.swing.*;
import javax.swing.text.*;
import java.awt.*;
public class FixedNumericDocument extends PlainDocument {
private int maxLength = 9999;
private String max="";
public FixedNumericDocument(int maxLength) {
super();
this.maxLength = maxLength;
//this is where we'll control all input to our document.
//If the text that is being entered passes our criteria, then we'll just call
//super.insertString(...)
public void insertString(int offset, String str, AttributeSet attr)
throws BadLocationException {
if (getLength() + str.length() > maxLength) {
return;
else {
try {
//check if str is numeric only
int value = Integer.parseInt(str);
//if we get here then str contains only numbers
//chk if it is less than 65535 so that it can be inserted
super.insertString(offset, str, attr);
catch(NumberFormatException exp) {
return;
return; -
SCCM 2012 client agent migration - number of machine per day
Hi,
Need some help here as I working out client migration plan. Try to search around but no luck. Any recommendation number of clients can be migrate per day assuming network speed not a concern? I do have 3 primary site
servers connected to CAS. What are factor need to consider?
Regards,
ytlawThese guys did 9000 PC's and 450 servers in one night. LOL.
http://myitforum.com/myitforumwp/2012/08/06/sccm-task-sequence-blew-up-australias-commbank/
I've heard other stories where someone did like 40,000 in one night. Of course that too was not intentional.
John Marcum | http://myitforum.com/myitforumwp/author/johnmarcum/ -
Script Logic to Calculate average or sum based on parent member involving
Hi ! freinds,
I am trying to write script logic to calclate
sum of previous 2 months for one group account having 100 childrens and write to DIFFERENT INPUT ACCOUNT . Please suggest the best practive to calculate the value.
I tried with : *WHEN *IS / *ENDWHEN its is not possible to define
when ACCT
is BAS(Group Account)----
NOT SUPPORTED
Rec .....
ENDWHEN
Please helpVishwanath,
Are you trying to calculate an average by account for the two months or an average of all accounts?
Ex 1
Feb Mar Avg
acct1 1000 500 750
acct2 1000 1000 1000
Ex2
Feb Mar
acct1 1000 500
acct2 1000 1000
Avg 1000 750
Akos -
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 Total Number of Employee in shift wise
Dear Gurus,
my requirement is calculate the total no.of employees present & absent in shift wise.
My output like this.
Department Shift Present Absent
Information Technology GSFT 56 24
Engine Shop ASFT 124 26
BSFT 155 45
CSFT 80 20
Thanks,
Rajkumar.AHi,
You can make a custom report for this.
If you want to know generally there is a head count report available in OM -
Hi,
We are a mid size automobile supplier company and we have implemented EBS with most of the basic modules including but not limited to financial, SCM, Purchasing, HRMS, SSHR, Payroll, Advance Benefits, AME, iSupplier, custom modules in PO, OM, INV, etc.
We are working on some performance issues and I want to know how many total number of requests(including everything) will be submitted in a typical environment with some level(about 30%) of customizations. I know this is a really vague question but any rough number based on the experience will be appreciated.
Thanks,
CAHHi Guys,
Thanks a lot for your responses and sorry for the late reply. I was working some other very high priority issues. Here is the output of the query (Programs starting with XXX, XXXY and XXXZ are custom programs) :
CONCURRENT_PROGRAM_NAME COUNT of Request Submitted
XXX_WMS_LABEL_GENERATION 5759
XXX_REQ_PO_GETFILE_NAME 1359
REQIMPORT 860
PORELGEN 860
XXX_PO_REQ_PO_RCV_PKG 824
XXXGETORDERFILES 818
QLTACTWB 752
POXPOPDF 613
XXXZECEPOO 551
XXX_PO_LABEL_PRINT_REPORT 412
XXXY_INV_CHAVEZ_IFACE_PKG 407
XXX_MANIFEST_FORMAT 405
XXX_PO_REQ_PO_RCV_PKG_UPD 405
CMCMCW 391
XXX_REQ_PO_MAIN_CTL 297
XXXY_SO_OUTBOUND_IFACE_PKG 286
XXXY_ONT_SHIP_IFACE_PKG 273
XXXYONTSHIPGETFILE 273
FNDRSSTG 257
XXX_PO_LABEL 252
ARZCAR_FORMAT_REMIT 241
WICTMS 241
POXPOIV 188
XXX_PO_LABEL_W 160
XXX_EC_TMS856 143
INCTCM 143
FNDWFBG 140
XXXYINVWIPGETFILE 136
XXXYINVSUBINVGETFILE 136
XXXYINVOVERUSEGETFILE 135
XLATBDMW 128
RVCTP 123
XXXY_INV_SUBINV_CTL 106
XXX2GIS 102
INCTCW 99
XXX_REQ_PO_MAIN_LABEL_CTL 97
XXX_PO_MANIF_ALERT_PKG 96
FNDRSSUB 90
XXXY_PO_OUTBOUND_IFACE_PKG 72
XXXY_CZA_RECV_INTF_PKG 70
XXXYCZARECVINTFGETFILE 70
WSHPSGL 50
FNDOAMCOL 48
XXX_ONT_PCB_EMAIL_NOTIF_PKG 48
XXX_PO_REQ_PO_RCV_PKG_RCV 48
XXX_INV_WOLC_IFACE_PKG 48
XXX_FTP_EDI_FROM_GIS1 48
XXX_INV_ITEM_BOM_MAIL_PKG 48
XXXGETRECEIPTFILES 44
WSHINTERFACE 44
TBCA_WHS_LOAD_SHEET 42
XXX_RCV_PO_MAIN_CTL 41
APXIIMPT 40
ARHDQMSS 35
RLMINS 32
QLTSSCPB 27
GLPPOSS 27
XXX_ONT_BO_AUTO_PICK_SHIP_PKG 24
XXXX_PROCESS850 24
ECEPOI 24
GLLEZL 23
XLAACCUP 22
XXX_PO_REQ_IFACE_CTL 22
XXXOMSPL_NONTMS 22
XLAACCPB 22
XXX_PO_REQ_IFACE_PKG 22
CMCLCW 20
XXXPAFR 20
MRCSLD 20
XLABABUP 19
OEOIMP 18
XXX_WMS_CASE_LABEL_PRINT_PKG 18
US_RETRY_PROCESS 17
XXXZWICDOL 16
XXXWIPSTSUPDT 16
ECTRIGO 16
APINVSEL 16
XXXBOMUPDT 16
QLTTRAMB 16
RLMDSP 14
QLTTRAWB 14
FNDMLSUB 14
RLMDPDER 14
IBYBUILD 14
XXX_INV_WOLC_IFACE_PKG_PROD 13
XXXINVPRODREPOTING 12
XXX_RLM_EDI_FAILED_NOTIF_PKG 12
XXX_PO_CLOSE_RCV_PKG 12
XXXX_PROCESS830 12
POXPRPOL 12
XXX_GIS_TO_ORACLE 12
XXXX_PROCESS862 12
XXX_MRP_CUSTOM_REPORT 11
IBY_FD_PAYMENT_FORMAT 10
XXXFTPF 10
FNDWFLSC 10
XXXY_ONT_SHIP_IFACE_CTL 9
APXPBASL 9
ARXREC 9
MRCSDW 9
RAXMTR 8
XXXX_PROCESSCZA 8
XLATBDMG 8
RAXTRX 8
XXXGTNR 8
ARPREMAT 7
IBY_FD_SRA_FORMAT 7
APXRECLC 7
XXX_INV_ITM_SALE_COGS_UPD_PKG 7
XXXWSHRDIPKX 6
XXXZ_POS_PAY_FORMAT 6
XXXGETORDERCANCELFILES 6
XXXPORCTREG 6
IBY_FD_POS_PAY_FORMAT_2 6
XTBOMSPLX 6
XXX_INV_PRNT 6
XXX_SUPPLIER_ADDRESS_LOC_PKG 6
MRCNSW 6
WSHRDINVX 5
APPRVL 5
IBYPICP 5
IBY_FD_RECORD_PRINT_STATUS 5
RCVTXRTR 5
XXXGENCENSUS 5
WSHRDPAKX 5
MRRFCS 5
CSTRAIVR 4
IBY_FD_FINAL_PMT_REGISTER 4
XXX_INV_WOLC_CTL 4
XXXGETRECEIPTCORRFILES 4
XXX_BCAST_FAILURE_NOTIFY_PKG 4
XXXX_CUSTOM_INVOICE_REPORT 4
INVTRDST 4
CSTACRLR 4
XXXOMSV 4
XXX_MOVE850 4
XXX_KRONOS_OUTBOUND_PKG 4
GLTRBALD 4
INVI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G 1
APXPCER_XMLP 1
XXXZFTPPOSPAY 1
TBCA_SUPP_FCST_PROCESS 1
XXX_PON_EMAIL_SUP_ATTACH_PKG 1
XXX_PO_ASL_UPD_PROG_PKG 1
XXXX_INVOICE_FILE_TRNS 1
XXXPROTOPRS 1
GLYRLGLG 1
ECEPOO 1
APXATR 1
POXRRVDR 1
PASTRM 1
RUNGEN 1
PALDLC_RANGE 1
APXMCCDF3 1
FNDWFWITSTATCC 1
ADP_PRINT_INTERFACE 1
XXXX_MC_FILE_TRNS 1
XXX_PON_SUP_CERT_EXP_PKG 1
XXXINVAGING 1
APXINHIS 1
PATTGL 1
CSTRINVR 1
BENDEAUD 1
BENGELOG 1
APXCCOUT 1
FNDWFMLRSTATCC 1
XXX_TBCA_IFACE_STG_CTL 1
XXXPOBALACC 1
ATS_SUPP_FCST_PROCESS 1
ECEINO 1
PAAPIMP 1
PATTAR 1
OMPREL 1
WICTWS 1
WIPDJATO 1
BENERTYP 1
XXXAPXINAGE 1
XXXPRXPO 1
XXX_KRONOS_PTO_EXTRACT_PKG 1
APXBCOBN 1
INCIAR 1
CMCCTW 1
MRCRLF 1
BENERPER 1
PAYUSREG 1
FNDDWPURG 1
XXX_IC_AR_PREPROC 1
XXXZ_AUTOMATED_ASN_REQ 1
XXXX_MOVECZA 1
MRCSCW1 1
MRPSLPPR1 1
BENERRTY 1
BENLIMOD 1
XXX_HALOGEN_INTERFACE_PKG_OUT 1
XXX_IPAY_FLAG_UPDATE_PKG 1
RGRARG 1
APXPAYSC 1
PAAPIMP_SI 1
PAYLINK(PURGE) 1
BENDESUM 1
BENDSGEL 1
CSTRSCCRP 1
PAXACCPB 1
XXX_INV_ITEM_ATTR_UPD_PKG 1
XXX_TBCA_EMP_IFACE_PKG 1
XXXPRODREPORTINGFTP 1
XXXZ_UPDATE_IC_EXP_ACCOUNT 1
XTBIN_MRP_SUP_NOTICE_REPORT 1
FNDSCPRG 1
PARTAR 1
Is these numbers make sense or they are too low or too high?
Thanks in advance for your responses.
Thanks,
CAH -
Program Process chain-- Number of records per day.
Hi Friends,
i need to develop a program based upon the below template.
Chain Name Start Date Start Time End Date End Time Total Run Time Number of Records Total number of records
IP1/IP2/IP3
Imgaine that i have a process chain with 3 infocpakages..
Please help us in having the code as i donot know ABAP and program /ssa/bwt will not survive my purpose.\
Regards,
Siddhuhi sid,
i think while creating the abap code u need to take help of following tables:-
Chain Name RSPCLOGCHAIN. take chain id from corresponding Chain name, and navigate to table RSPCPROCESSLOG.
Start Date RSPCPROCESSLOG
Start Time RSPCPROCESSLOG
End Date
End Time RSPCPROCESSLOG
Total Run Time can be caluted using ENDSTAMP and STARTTIME.
Number of Records RSMONICDP
Total number of records RSMONICDP
you have to hit these table and take the latest data from your abap code.
thanks -
How to calculate the number of user connections in a report?
Hi,
I would like to have a report which automatically calculate the number of connections per user.
Thanks for your answer.
RegardsHi,
What do you mean by number of connections? Do you mean how many times each user has run a specific report?
Thanks -
Total Number of Cells per block
Hi
How do we calculate Total Number of Cells per block in a database?
ThnxHi,
Natesh answer is perfectly correct.
But if you want to understand the number of cell in a block, open your application properties, in the dimension tab (not sure), your blocks are defined by the number of dense dimensions you have, and the number of stored members in those dimensions.
Number of cell in a block = Number of stored members in dense dimension 1 * Number of stored members in dimension 2 * ... * Number of... dimension n
Try to keep n very small of course ;). The more you have dense dimension, the bigger your blocks are. The more stored members they have, the bigger your blocks are.
Cyril -
Limiting no. of messages per day
Dear All,
Can we control the no. of messages a user can send per day? I know that we can limit the no. of conn. per min and the number of emails per conn. But you cannot use this method to limit the number of messages per day effectively.
Marwan,No, there's no real way to limit number of messages per day. Especially when you use more than one relay box.
Best thing is to use the connection throttling mechanism. -
Filtered the data to get only one data per day
Hi,
From the excel file below I have Power (from Hg Lamp) vs date.
I would like to filtered the data to have only one data per day. So when there are many data for one day, I want the data with Max Power (and delete the others).
In the test vi below I filtered data by compared the data 1 by 1. So I reduced the number of data but I still have date with many data.
I would like to count the number of data per days and keep the data with max power, but I don't know how to do it.
If you have any ideas...
Thanks
Geof
Attachments:
Test.xls 227 KB
Test.vi 48 KBI did it
Thanks
Attachments:
Test.vi 48 KB -
How do I limit the number of measures per line in Logic Pro score editor
I would like to control the number of measures per line in Logic Pro X Score Editor, currently it puts random numbers of measures per line depending on the accumulated lenth of the measures per line, as if looking for "the best fit". Any ideas how to force four measures per line in my finished score?
Thanks, This solved my problem, the only thing I still needed to do was to find out how to open the Global format window. I fugured it out by opening the Score editor window / Layout / global format /then I saw the Max # of barlines. If you just go to the Logic Pro / Preferences then you never get to see the global format window unless you know to hit the "Score Project Settings" button on the bottom. But at least you showed me that there was such a option which limited the number of measures so I keep on trying until I fould how to reveal that option. Thanks !
Maybe you are looking for
-
Dear Itunes! I would like to have it deleted, my undermentioned order:Name of Subscription: LAOLA1 PREMIUM Name of Application: LAOLA1.tv Content Provider: LAOLA1 Date of purchase: 02/03/14 Subscription Period: 1 month Price: 4,99 € Payment Meth
-
How to transfer only part of the library?
I have over 80GB of music (mainly classical) in my iTunes library and I am using it with my iPod classic. I am planning to buy now a new 16GB iPod nano and my question is how I can transfer only selected pieces of music (all library will not fit anyw
-
I installed firefox on Windown XP, Professional Version 2002 Service Pack 3... When I try to start Firefox after install it goes to the Mozilla Crash Reporter... bp-549b7e51-5401-46fb-9783-c1b692130103 I've tried starting in Safe Mode, but same resul
-
DG setup/installation/configuration guideline
Hello, I have to setup a data guard (including Primary and 1 standby database) for Production DB. DB version 11.2.0.3 on RHL 6. I know each and everything regarding single instance database installation/creation with asm,rman backups,etc everything I
-
Hi,All Suddenly all the query display with 0CALMONTH2 as Text but not key. I think this is not related to single query. I have checked in rsd1 the text is display as key.