Average Based on 12 months
I am trying to calculate an average rate base on 12-month income and working days. However, due to the calculation method is different historically, part of the 12-month income and working days need to be manually input.
I cumulated the manual input amount and number in /180 WT. And use the Average process to get the rest of the amount and number. This two part will be put together and divided to get the rate.
In the "Assign primary wage types to average bases" step (V_T51AV_2W), I put /180 as the AVbasis. But I found that in the payroll final processing part the Function ADDCU add the current month's income and working days into /180, which make the /180 incorrect. But if I remove the AVbasis, there will be an empty wage type in RT, that leads to error for next payroll.
I want to ask besides adding a new WT to record the current month's income and working days, is there a way to avoid ADDCU to do the cumulation?
Thanks in advance!
I've checked. The income and working day wage types are all with PCL30 = 0, which will not cumulate.
The problem seems to be irrelevant with cumulation, since the RT value of income and working day is added to /180 in RT. I found there's a piece of code in ADDCU which belongs to Average processing did that. Any ideas why?
Similar Messages
-
Studio : Chart Based on day/month/year
In Studio , There is a requirement for us to display chart based on day/month/year .
Since Date attribute is not displayed as a Dimension in the chart configuration list , I have divided date attribute into day/month/year attributes and based on that I generated a sample chart
But now I'm facing with a problem
Suppose there are records for only July and Sep then the chart shows up for July and Sep , It doesn't show up for august.
I agree that there are no records for august in my data domain that is the reason august is not displayed in the chart . But as per our requirement we should display august as well with zero count.
I'm curious to know if there is any way to do this .The idea behind the calendar record type is it is a secondary, new record type you're introducing that compliments your "sales" record type. The RECORDs you provided would be your "sales" record type, not your "calendar" record type. To continue with your example, your "sales" records would look like what you provided:
=============== RECORD ==================
Id: 1
sales_amount : 1000
Month: Oct
RecordType: sales
date: 2012-10-01T00:00:00.000Z
day: 01
year: 2012
=============== RECORD ==================
Id: 5
sales_amount: 1000
Month: Dec
RecordType: sales
date: 2012-12-01T00:00:00.000Z
day: 01
year: 2012
==========================================
And your "calendar" record type would be loaded subsequently. I usually provide one Endeca record for every day for this record type:
=============== RECORD ==================
Id: 1
Month: Oct
RecordType: calendar
date: 2012-10-01T00:00:00.000Z
day: 01
year: 2012
=============== RECORD ==================
Id: 2
Month: Oct
RecordType: calendar
date: 2012-10-02T00:00:00.000Z
day: 02
year: 2012
==========================================
(and so on, one for each day up to today...yawn)....
=============== RECORD ==================
Id: 790
Month: July
RecordType: calendar
date: 2013-07-31T00:00:00.000Z
day: 31
year: 2013
==========================================
Thus, when you write an EQL statement like:
RETURN foo AS SELECT
SUM(sales_amount) AS "TotSales"
GROUP BY Month
You will get a Month bucket for every month, where the "calendar" record type will be sure to offer a month where sales don't offer it...aka. fill in any "holes".
HTH,
Dan
http://branchbird.com -
Conv. based on the month - Need to display the output in quarterly basis.
Hi Gurus,
I need to display the output quarterly based on the month.
For example,
If the year is 2012 and month is between
01 to 03 i need to display it as 2012Q1
likewise 04 to 06 as 2012q2
and 07 to 09 as 2012q3
and 10 to 12 as 2012q4.
Please help me by providing sample codes. Please help yourself by writing the code and get back when you have a specific question.
Thanks!
Regards,
Manoj
Edited by: kishan P on Mar 2, 2012 3:14 PMHi Vinod
To get the last 13 months in webi report .follow below approach
Assuming you have calendar Month object in the report.
convert your selected date into M/d/yy format . let's say you selected 12/18/13 , your variable should be 12/1/13
variable :
Selected Month =ToDate(FormatDate(useresponse("Date");"Mmm yyyy");"Mmm yyyy")
Flag for month =ToDate([CalMonth];"Mmm yyyy")<=[Selected Month]
Report filter =[Flag for month]+Previous(Self)
select the table you want to filter
add filter -> Report filter between 1 to 13.
Hope this will help. -
Level Based Measure at Month level.
Hi,
I have defined a level based measure at "Month Level".
I am expecting it have aggregate at month level within a year.
But it is showing aggregation of month without regards to the year. For example in data of four years, for month of Aug it shows aggregation of Aug -2010, 2009, 2008 and 2007.
How i can get Monthly aggregation at Month-Year level ?
The time dimension and its hierarchy are based standard OWB time dimension.
Thank you,
~ AshWhat is the month level key column functionality in your time dimension?
it should be in format of yyyymm but not in just mm .. -
Calculate NWC (Average for last 4 Month)
Do someone know how to calculate NWC (Average for last 4 Month) using @AVG?FIX ("2002", Jan) "Net Working Capital (Average for last 4 Month)" = @AVG(SKIPMISSING, "Net Working Capital", "2001"->Oct,"2001"->Nov, "2001"->Dec, "2002"->Jan);ENDFIXIn my case, we split the Year and Month Dim in our outline.Can this script work in under our situation???Thanks
Try usingFIX ("2002", Jan) "Net Working Capital (Average for last 4 Month)" = @AVG(SKIPMISSING, "Net Working Capital"->"2001"->Oct,"Net Working Capital"->"2001"->Nov,"Net Working Capital"->"2001"->Dec,"Net Working Capital"->"2002"->Jan); ENDFIX
-
Number value average based on time average
Hello,
I am in need of help of trying to develop a formula to determine numerical average based on time average. The example I have is,
Time
Value
9:00:00
102
9:00:05
103
9:00:10
104
9:00:15
105
9:00:20
106
9:00:25
107
9:00:30
108
9:00:35
109
9:00:40
110
9:00:45
111
9:00:50
112
9:00:55
113
Is it possible to create a formula that would spit out the average value for a one minute average? Thank you.Not really sure, If I get what you need... but anyway - there are statistical functions in Excel, that could help you achieve that result ..
First idea - you don't have the whole "minute" data - so we can calculate the target value, if the time gets to 9:01:00 ... since you have linear data (see chart in attachment), we can use LINTREND function, that calculates one new value based
on known previous values... for time 9:01:00 the value would probably be 114. After that, you can calculate the standard AVERAGE function..or am I missing something here? :)
Try to go through the attachment and let me know it it works for you..
Milan
attachment -
How to get tables the size should be based on 3 months history.
Hi,
I am junior DBA, Actually, I want to get the details of columns D,E,F and G. For employee and dept tables the size should be based on 3 months history.
How to get pls suggest me.
Regards,
Venkat.
Junior DBAVenkat wrote:
Hi,
I am junior DBA, Actually, I want to get the details of columns D,E,F and G. For employee and dept tables the size should be based on 3 months history.
How to get pls suggest me.
Regards,
Venkat.
Junior DBAWhat are columns D,E,F, and G? Size of what is based on three months history of what?? How does this size of an unknown entity relate to columns D,E,F and G? -
Hollow stars.... itunes assigns an album average based on my star ratings, but in what scenario do Songs get assigned a hollow star? does itunes acquire info from other media programs or solely from what ive rated in itunes, or does itunes use other peoples ratings... Hollow Star assignment basis?
If you assign songs a rating an unrated album gets an automatic rating, which you can override by rating it.
If you assign an album a rating unrated songs get an automatic rating, which you can override by rating them.
iTunes doesn't import ratings from tags, or third party services. You set them.
You can't turn automatic ratings off.
tt2 -
Select the table based on 2 months ? Query no working
I have a table TEST1 in schema MESSAGE_REPORT. What i want to do is select the table based on 2 months ( JULY and AUGUST ). The requirement is Whole JULY data should be there and for AUG the data should be till 01 aug . Below is the query i m using but its giving me error . Moreover the Where clause "TRUNC(HIRE,'MONTH') " part is compulsary to be used ,changes have to be made in the ">= timestamp '2010-07-01 00:00:00' and frd.sent_timestamp < timestamp '2010-08-10 00:00:00';" part only . please can anyone help me out
NAME HIRE
SALE 01.07.2010 00:00:00,000000000
cops 15.07.2010 00:00:00,000000000
NAVEED 31.07.2010 00:00:00,000000000
HEN 01.08.2010 00:00:00,000000000
BEN 10.08.2010 00:00:00,000000000
CROSS 15.08.2010 00:00:00,000000000
select * from MESSAGE_REPORT.test1 where
TRUNC(HIRE,'MONTH') >= timestamp '2010-07-01 00:00:00' and frd.sent_timestamp < timestamp '2010-08-10 00:00:00';
ERROR:
ORA-00904: "FRD"."SENT_TIMESTAMP": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:
Error at Line: 24 Column: 60Edited by: user12633486 on Aug 11, 2010 1:13 PM
Edited by: user12633486 on Aug 11, 2010 1:51 PMThats becuase you are comparing with Month and not the complete date.
Check this:
SQL> ed
Wrote file afiedt.buf
1 with t as (select 'SALE' col1,'01.07.2010 00:00:00' col2 from dual
2 union all select 'cops','15.07.2010 00:00:00' from dual
3 union all select 'NAVEED','31.07.2010 00:00:00' from dual
4 union all select 'HEN','01.08.2010 00:00:00' from dual
5 union all select 'BEN','10.08.2010 00:00:00' from dual
6 union all select 'CROSS','15.08.2010 00:00:00' from dual)
7 select * from t
8 where
9 TO_DATE(col2,'DD.MM.RRRR HH24:MI:SS') >= timestamp '2010-07-01 00:00:00'
10* and TO_DATE(col2,'DD.MM.RRRR HH24:MI:SS') < timestamp '2010-08-10 00:00:00'
SQL> /
COL1 COL2
SALE 01.07.2010 00:00:00
cops 15.07.2010 00:00:00
NAVEED 31.07.2010 00:00:00
HEN 01.08.2010 00:00:00
SQL>
-- For less than equal to
SQL> ed
Wrote file afiedt.buf
1 with t as (select 'SALE' col1,'01.07.2010 00:00:00' col2 from dual
2 union all select 'cops','15.07.2010 00:00:00' from dual
3 union all select 'NAVEED','31.07.2010 00:00:00' from dual
4 union all select 'HEN','01.08.2010 00:00:00' from dual
5 union all select 'BEN','10.08.2010 00:00:00' from dual
6 union all select 'CROSS','15.08.2010 00:00:00' from dual)
7 select * from t
8 where
9 TO_DATE(col2,'DD.MM.RRRR HH24:MI:SS') >= timestamp '2010-07-01 00:00:00'
10* and TO_DATE(col2,'DD.MM.RRRR HH24:MI:SS') <= timestamp '2010-08-10 00:00:00' -- less than equal to includes data for 10th august as well
SQL> /
COL1 COL2
SALE 01.07.2010 00:00:00
cops 15.07.2010 00:00:00
NAVEED 31.07.2010 00:00:00
HEN 01.08.2010 00:00:00
BEN 10.08.2010 00:00:00
SQL> Edited by: AP on Aug 11, 2010 1:31 AM
Edited by: AP on Aug 11, 2010 1:32 AM -
Average salary for 12 months start from a specific date
Hi Expert,
If we want to calculate the average for past 12 past month, starting from a past date, any idea how to achieve this?
E.g. I would like to have the average for past 12 months, starting from 01.Nov 2014, i.e. the required periods are Nov 2013 to Oct 2014
ThanksGo through below link you may get an idea.
Payroll processing - Calculate average 6 month Basic Salary
Regards
Venkatesh -
How many devices can we install photoshop on based on our monthly plan?
how many devices can we install photoshop on based on our monthly plan?
If you did not deactivate a machine you did not have a free activation. You would need to download the direct installer and install Photoshop as a trial. Later if you free up an activation by deactivating one of your two activations. You should be able to activate your trial install by using menu Help>Sign In...
-
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 -
How do you use AVERAGE based on values from an IF formula?
This is probably a very simple thing to do, but I haven't managed to find a solution yet. Someone please help!
I have a spreadsheet to calculate grades for my students.
I enter their raw scores, which is then calculated into a percentage (which I then adjust, depending on the raw average).
I then use an IF formula to award a grade between 1 and 10 based on that adjusted percentage.
1AB
ASSESSMENT TASK
Speech 1
Speech 2
Speech 3
TOTAL
FINAL GRADE
Term 1
MAX GRADE
10
10
10
30
ADJ. %
Student A
5
7
7
19
63%
67%
7
Student B
9
7
7
23
77%
81%
8
Student C
9
7
9
25
83%
88%
9
Student D
4
5
5
14
47%
49%
5
Student E
6
9
6
21
70%
74%
7
Student F
7
5
5
17
57%
60%
6
CLASS AVERAGE
6.7
6.7
6.5
19.8
66.1%
69.8%
I want an average here!
66.7%
66.7%
65.0%
I would like to know the average of the grades awarded, but the AVERAGE formula does not work (I'm guessing because the numbers are as a result of a formula, not actual data typed in by me).
Can anyone help please!?Thanks for your response!
I have simplified the sheet so it contains no split or merged cells, yet still I get the exclamation mark where I want the average. (The exclamation mark says 'Numbers can't be divided by zero'.)
Exam
Skit
Exam
Class Participation
1
2
TOTAL
MAX. MARK
55
30
100
15
200
ADJ. %
MARK
Student A
37
20
84
15
156
78%
72%
7
Student B
39
28
91
15
173
87%
80%
8
Student C
39
28
86
10
163
82%
76%
8
Student D
34
26
92
15
167
84%
78%
8
Student E
38
26
74
10
148
74%
69%
7
CLASS AVERAGE
37.4
25.6
85.4
13.0
161.4
80.7%
75.0%
I guess the basic question is: can you actually use AVERAGE on data that is output by an IF formula? -
How can I create a view of top five teams averages based on individual averages of that team?
I have created a list that groups teams by their Team name (Team column) with the individuals members (participants column) averages and their team average (total average view option). I want to only display the top five teams that have the overall
top team averages. I have a list that contains a team name, average minutes, week, and participant. The team manager plugs in each week a new entry for each participant on the team. I have a view that computes each team average but I want a view
of the top five teams based on the top averages of the team (not individual participant average). Unfortunately, I can only seem to get all teams grouped with individuals of that team, their individual averages and the team average but can't figure out
only how to show the top five teams top average. Because it's a total (team average) and not a separate column, I can't get a view by team based on total average. I can by top individual average but not by the team. Can some one help me figure
out a solution?A calculated column won't work because a calculated column can only reference the individual item, not the entire list or a subset.
You could do javascript to build this, but to me it's easier to just use Excel.
Andy Wessendorf | Solution Foundry [email protected] -
I have cable triple play service. Phone service ios internet based and depends on cable provider modem. I pay monthly charge for modem. I also want to use modem for ipad2. Is there any modem that can support both internet based phone as well as ipad2?
If I understand you correctly, I have the same configuration. My modem supports Internet and phone service and my television service bypasses the modem. It does not do any routing. It has a single Ethernet port and I plugged in an external router with a WiFi radio - Apple Airport Express. Works like a champ.
Configuration of the Express was difficult. I had to plug it in to AC power and to the modem. Then, I opened up Airport Utility and had to click "yes" for each recommendation. Then I had to really think hard to come up with a WiFi password. Took me a horrendous thirty seconds from start to finish!
Maybe you are looking for
-
Where can I download the ODBC driver for Oracle 10g XE?
where can I download the ODBC driver for Oracle 10g XE? I need the ODBC drivers for windows 7 x64, I installed Oracle Database 10g Express Edition, the use and connects with RazorSQL well, I just want to make a connection THROUGH ConnectionString lan
-
Finder not working...what should I do?
Finder hasn't been working for the past few days; so none of the icons on my desktop show up. I can sometimes open the Trash folder from the Dock, but cannot seem to click on anything. I have tried relaunching Finder and restarting my MacBook, but it
-
Distinct clause as part of EJB QL
Hi, I am trying to perform a simple query which looks like following in ejb-jar.xml <query> <query-method> <method-name>findBySecurityNumber</method-name> <method-params> <method-param>int</method-param> </method-params>
-
As every body knows it doesn't work with raw pics. and it is very but VERY MUCH UPSETTING AND DISAPPOINTED. But in the last topic a lot of people talk about this and one of the answer was that one of the Aperture team member got involved in the answe
-
Identity Management Product Pricing
I'm working for a higher education institute and we are in the process of picking an id management vendor. Sun and Oracle are the finalists. Pricewise Oracle is 7 time higher than what Sun offered. If someone is only looking price, obvious choice is