Seeing average minutes for year to date
I would like to check and see how many minutes are used on average per month for the last year - is there anyway to do that online?
Manually, yes. Pull up each of your bills for the last year, find the total minutes, figure the average.
A stat you can click and get easily? I don't think so.
Similar Messages
-
GROUP BY GROUPING SETS for a selected month and for year to date
Below is a code example to demonstrate this question:
declare @test table (ID int, Quantity int, Day date);
insert into @test values
(4, 500, '1/18/2014'),
(4, 550, '1/28/2014'),
(7, 600, '1/10/2014'),
(7, 750, '1/11/2014'),
(7, 800, '1/20/2014'),
(1, 100, '1/2/2014'),
(1, 125, '1/10/2014'),
(8, 300, '1/7/2014'),
(9, 200, '1/17/2014'),
(9, 100, '1/22/2014'),
(4, 900, '2/18/2014'),
(4, 550, '2/28/2014'),
(7, 600, '2/10/2014'),
(7, 700, '2/11/2014'),
(7, 800, '2/20/2014'),
(1, 100, '2/2/2014'),
(1, 150, '2/10/2014'),
(8, 300, '2/7/2014'),
(9, 200, '2/17/2014'),
(9, 100, '2/22/2014'),
(4, 500, '3/18/2014'),
(4, 550, '3/28/2014'),
(7, 600, '3/10/2014'),
(7, 750, '3/11/2014'),
(7, 800, '3/20/2014'),
(1, 100, '3/2/2014'),
(1, 325, '3/10/2014'),
(8, 300, '3/7/2014'),
(9, 200, '3/17/2014'),
(9, 100, '3/22/2014'),
(4, 500, '4/18/2014'),
(4, 550, '4/28/2014'),
(7, 100, '4/10/2014'),
(7, 750, '4/11/2014'),
(7, 800, '4/20/2014'),
(1, 100, '4/2/2014'),
(1, 325, '4/10/2014'),
(8, 300, '4/7/2014'),
(9, 200, '4/17/2014'),
(9, 100, '4/22/2014'),
(4, 500, '5/18/2014'),
(4, 550, '5/28/2014'),
(7, 600, '5/10/2014'),
(7, 750, '5/11/2014'),
(7, 50, '5/20/2014'),
(1, 100, '5/2/2014'),
(1, 325, '5/10/2014'),
(8, 300, '5/7/2014'),
(9, 200, '5/17/2014'),
(9, 100, '5/22/2014');
--detail
select *
from @test;
--aggregation
select
TotalQuantity = sum(Quantity),
[Month] = month(Day)
from @test
group by
grouping sets
(month(Day)),
(year(Day))
go
This is the aggregation query result:
However, the desired result is to return only two rows: one row for month 3 and the other row for year to date (in the picture above YTD is the row that appears with {null} in the Month column). Is there a way to achieve this goal by modifying the
sample code above? The requirement is to only read the data once (do not want a solution that involves a UNION which implies reading the data twice).you can add required filters in having clause. Here is the query -
select
TotalQuantity = sum(Quantity),
[Month] = month(Day)
from @test
group by
grouping sets
(month(Day)),
(year(Day))
having
month(Day) = 3 or month(Day) is null; -
Table for Year to date payments made to vendors
Hi friends,
I am generating one query, in which I have to show year to date payments made to vendors.
can anyone tell me from which table and from which foield can I get this information.
Please help.hi,
GO to SE16 and select doc type wise , you will get a solution .
i hope it helps you.
regds,
raman -
Roll up information for Year To Date
Hello,
I have some sales data as follows
Item_Id Country_Id Region_ID Month_begin_date Quantity Amount
s1 C1 r1 10/1/2008 20 2000.05
s2 C1 r1 10/1/2008 100 4350.45
s3 c2 r2 11/1/2008 50 3200.00
s3 c1 r3 12/1/2008 102 5102.50
s3 C2 r2 01/1/2009 35 1989.45
s2 c1 r1 02/1/2009 56 2989.00
s3 C3 r3 03/1/2009 29 1129.00
s1 c3 r3 04/1/2009 455 3000.00
s2 c2 r2 05/1/2009 123 2345.00
s3 c2 r1 06/1/2009 40 1878.00
s1 c2 r2 07/1/2009 65 1123.00
s2 c2 r2 08/1/2009 100 1000.50
s3 c3 c3 09/1/2009 191 2500.00
s1 c2 r3 08/1/2009 299 3448.50
s2 c3 r3 09/1/2009 432 5000.00
s3 c1 r3 07/1/2009 175 4000.00
here item_id,country_id,region_id,month_begin_date are together composite primary key...
I want to get year to date (sum from the INITIAL date to sysdate) OF sum of quantity and sum of amounts to above data .
I.E. Query should consider records until 7/1/2009
and calculates sum of quntity and amount group by primary key fields...
s1 C1 r1 10/1/2008 20 2000.05
s2 C1 r1 10/1/2008 100 4350.45
s3 c2 r2 11/1/2008 50 3200.00
s3 c1 r3 12/1/2008 102 5102.50
s3 C2 r2 01/1/2009 35 1989.45
s2 c1 r1 02/1/2009 56 2989.00
s3 C3 r3 03/1/2009 29 1129.00
s1 c3 r3 04/1/2009 455 3000.00
s2 c2 r2 05/1/2009 123 2345.00
s3 c2 r1 06/1/2009 40 1878.00
s1 c2 r2 07/1/2009 65 1123.00
Thanks in advance...
please help me out....Welcome to Forum!!
SELECT
Item_Id, Country_Id, Region_ID, Month_begin_date, SUM(Quantity) , SUM (Amount)
FROM TABLE_NAME --Add your table Name
WHERE Month_begin_date < = SYSDATE --will Reject records having date > sysdate
--Remember the date comparision is bit tricky
GROUP BY Item_Id, Country_Id, Region_ID, Month_begin_date1 min :: You want to GROUP the data on the basis of primary key: thats NOT logical
Edited by: AJ99 on Jul 1, 2009 11:25 AM
Edited by: AJ99 on Jul 1, 2009 11:29 AM -
How to see Control chart for a specific date range in QGC3
Hi
I am developing SPC for my client.I am facing one problem.
I am using one control chart for all inspection lot for a particular MIC.Free inspection point is used in inspection plan.
Control chart is used 516.(XMR chart)
Now when i am calling control chart for MIC executing QGC3,chart is showing results since creation chart date to todays date.
Now if i want to see chart for a particular period or date range,what is the procedure.
Thanks in advance
NilanjanHi,
1. Even though when i give the Created on, and to date the system is displaying the report which is prior to the created on date.
2. Similarly the report data is different when the field is maximum no of Hits is given. for example when i giving this field as 10, 20, 30, etc the report is showing only 10 line items. if i enter 50, 60 etc it is showing the list for half i given.
Note that system is having more than 1000 line items to display..
Regards,
R. Loganathan -
Year to Date and Monthly totals
I know that this is rather simplistic, but I'm new to Discoverer and need to set up a bunch of sales reports with MTD and YTD columns. I'm going to be using the same SQL query for many of my reports but customizing the reports to show sales by state, product line, etc.
Is there a formula/function I can use in Discover for the Month to Date and Year to Date totals?
Thanks,
JosephHi Joseph
You can use the analytic range SUM calculation for these. For the month to date, use the a PARTITION BY of month with a range of all the preceding rows in the partition up to and including the current row. For the year, you would simply change the PARTITION BY to be the year.
Here are some examples drawn from my own database:
I have the following items:
ORDER_YEAR
ORDER_MONTH
ORDER_DATE
SELLING_PRICE
With these defined, the formula for month to date is:
SUM(Sales.Selling Price SUM) OVER (PARTITION BY ORDER_MONTH ORDER BY ORDER_DATE ASC ROWS UNBOUNDED PRECEDING)
The formlua for year to date is:
SUM(Selling Price SUM) OVER(PARTITION BY ORDER_YEAR ORDER BY ORDER_DATE ASC ROWS UNBOUNDED PRECEDING )
Basically what we are doing is telling Discoverer to SUM the SELLING_PRICE, and you should be able to take these and adjust them for your own report.
Let me take a look at the month to end and describe what is going on. Basically the PARTITION BY is defining a set of rows which are to be included. In this case it is all rows that have the same ORDER_MONTH. The ORDER BY clause tells Discoverer to place the items in order, with the oldest order first. The ROWS UNBOUNDED PRECEDING tells Discoverer to SUM all of the items within the set (within the PARTITION BY) from the oldest item (UNBOUNDED PRECEDING) to and including the current item. We could have added a BETWEEN clause too but that is implied. With a BETWEEN clause it would look like this:
SUM(Sales.Selling Price SUM) OVER (PARTITION BY ORDER_MONTH ORDER BY ORDER_DATE ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
If you want the current row to be included with UNBOUNDED PRECEDING you don't need to explicitly name it because that is the default. Other options you could use are these:
UNBOUNDED FOLLOWING - this SUMS to the end of the PARTITION
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING - you can guess that this will add all of the items, which you will rarely use because if you omit the ROWS command then this range between first and last is actually the default
Rather than ROWS BETWEEN you can also say RANGE BETWEEN, like this:
SUM(Sales.Selling Price SUM) OVER (PARTITION BY ORDER_MONTH ORDER BY ORDER_DATE ASC RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
I hope this little dissertation on running totals helps.
Best wishes
Michael -
Year to Date using SAP variables
I've run into a sticking point when trying to create a year to date calculation that works without user entry. The infocube is updated by finance each month (for the previous month) after the final adjustments are made. For this reason, when the query pulls YTD information, it should be cumulating from January 20XX to Current Month - 1.
The first way that I tried was to use overlapping restrictions: Fiscal Year/Period < Current Fiscal Year/Period AND Fiscal Year = Current Fiscal Year. This worked very well until we reached January. Now the overlapping restrictions return no results since all previous months are not in the current fiscal year.
I've also attempted using the SAP exit variable 0FYTLFP (Cumulated to Last Fiscal year Period) on Fiscal Year/Period. It is not working, and I assume it is because the last fiscal year period is falling into a different fiscal year. Using it today, the value I get is equal to the value for Jan 2007. The variable seems to first look up the first day of the current fiscal year, saves that as one end of the range, then goes to the previous month to get the other end of the range. I tried offsetting this variable by -1 and the value returned was equal to Dec 2006, but not YTD.
I'm assuming it must be possible to use the standard SAP delivered objects to create a working YTD calculation that does not require manual entry and cumulates correctly through current period - 1. Does anyone have any suggestions?
Thanks!Dear Adam,
For Year to Date , We have created a Customer Exit , For working , Create a Variable for 0calday and populate that with from and to value ...to value would be Sy-datum and From value is year starting date. Hope it helps..
Thanks,
Krish -
Year to Date reports using Prompts
Hi.
I'm trying to build a report that will show results of sales compared to Annual targets. All those fields are fields directly at the opportunity level (amount and targets). I also need to put a prompt to select dates from and to, for the Opportunity Close date. I've used Variables for this, and am comparing throuhg two filters "Opportunity.Close Date greater than pvCloseDateFrom" and "Opportunity.Close Date lower than pvCloseDateTo". I'm also presenting the % Achievment, which is the % of Total Sales compared to the Target field.
So far the report is simple
User - Total Amount of Sales - Target FIeld - % Realized.
The difficulty I'm facing concern the next set of columns in the report : I also need to present the Year to Date Target that is represented by the number of days between the two dates prompted (for instance if I prompt 01/01/2010 and 31/03/2010 needs to show 25% of the total target) along with the % of SAles compared to this new target calculated field.
I'm having issues with the TIMESTAMPDIFF function through the Presentation Variables as it either tells that the type is not correct even if I'm trying to use the CAST function or it discard part of the string when I'm trying to rebuilt the date as a timestamp : in my configuration date are presented D/M/YYYY where my timestamp function expects DDDD-MM-DD HH-MI-SS.
Is there anyone who could have an example of such calculations in a report based on dates and duration ?
Thanks in advance for your help !!
OlivierDear Adam,
For Year to Date , We have created a Customer Exit , For working , Create a Variable for 0calday and populate that with from and to value ...to value would be Sy-datum and From value is year starting date. Hope it helps..
Thanks,
Krish -
Need template with daily entries, & monthly sums & year-to-date sums
I'm trying to find a budget template for Numbers -- adapted from the checkbook template, maybe? --
where one can enter daily transactions (with category) in 12 different monthly tables, show each month's category sums in tables next to the daily ones,
and also have a table for Year-to-Date category sums, probably at the top of the whole thing.
In other words, each individual transaction would have to be added to its monthly category table, AND to the Year-to-Date category table.
Has anyone done this? Can it be done in Numbers?
Thanks.Hi Jackie,
That makes more sense than my original reading. The function you are looking for is "SUMIFS."
Here's an example, with the transactions recorded in the "Data" table, and the January sums reported in the "Summary" table.
"Data" contains no formulas.
On "Summary":
A1 contains the start date, Jan 1, 2012.
The rest of column A contains the category names, which must exactly match the names used in the Data table.
B2 contains the formula, which is filled down the rest of column B:
Summary::B2: =SUMIFS(Data::$C,Data::$B,"="&A,Data::A,">="&$A$1,Data::$A,"<="&EOMONTH($A$1,0) )
For an amount to be included in the SUM, three conditions must be met:
-- The transaction category must match the category in that row of Summary.
-- The transaction date must be on or after the date in A1 of Summary
-- The transaction date must be on or before the last day of the month in A1 of Summary.
Regards,
Barry -
Function module for year todate
Hi ,
Here i am looking for a functiona module for year to date (YTD ) .
For example fiscal year is Apr 2010 to till date we need to have the information . to get this kindly suggest the FM .
Thanks
VenkatHi
Please take some pain in searching on Forum.
However have a look at this link but make sure you search for available information on SCN for all your future basic queries.
[http://wiki.sdn.sap.com/wiki/display/ABAP/FunctionModulerelatedonDate+calculations]
Regards
Abhii -
On iCal this year the date of shrove tuseday is showing on Tuesday 13 of February witch for a start is wrong coz it's a Thursday and wrong because its meant to be in march
kaeandcolesmon,
If you open the recovery drive (partition) it should only have a single folder (Recovery).
To make sure that your not saving restore points to that drive.
See:
Start, Control Panel, System, System Protection tab. Make sure the D drive partition is set to OFF so that it does not save there.
I am a volunteer. I am not an HP employee.
To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
(2) HP DV7t i7 3160QM 2.3Ghz 8GB
HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
Both Customs use Rosewill Blackhawk case.
Printer -- HP OfficeJet Pro 8600 Plus -
Are Cube organized materialized view with Year to Date calculated measure eligible for Query Rewrite
Hi,
Will appreciate if someone can help me with a question regarding Cube organized MV (OLAP).
Does cube organized materialized view with calculated measures based on time series Year to date, inception to date eg.
SUM(FCT_POSITION.BASE_REALIZED_PNL) OVER (HIERARCHY DIM_CALENDAR.CALENDAR BETWEEN UNBOUNDED PRECEDING AND CURRENT MEMBER WITHIN ANCESTOR AT DIMENSION LEVEL DIM_CALENDAR."YEAR")
are eligible for query rewrites or these are considered advanced for query rewrite purposes.
I was hoping to find an example with YTD window function on physical fact dim tables with optimizer rewriting it to Cube Org. MV but not much success.
Thanks in advanceI dont think this is possible.
(My own reasoning)
Part of the reason query rewrite works for base measures only (not calc measures in olap like ytd would be) is due to the fact that the data is staged in olap but its lineage is understandable via the olap cube mappings. That dependency/source identification is lost when we build calculated measures in olap and i think its almost impossible for optimizer to understand the finer points relating to an olap calculation defined via olap calculation (olap dml or olap expression) and also match it with the equivalent calculation using relational sql expression. The difficulty may be because both the olap ytd as well as relational ytd defined via sum() over (partition by ... order by ...) have many non-standard variations of the same calculation/definition. E.g: You can choose to use or choose not to use the option relating to IGNORE NULLs within the sql analytic function. OLAP defn may use NASKIP or NASKIP2.
I tried to search for query rewrite solutions for Inventory stock based calculations (aggregation along time=last value along time) and see if olap cube with cube aggregation option set to "Last non-na hierarchical value" works as an alternative to relational calculation. My experience has been that its not possible. You can do it relationally or you can do it via olap but your application needs to be aware of each and make the appropriate backend sql/call. In such cases, you cannot make olap (aw/cubes/dimensions) appear magically behind the scenes to fulfill the query execution while appearing to work relationally.
HTH
Shankar -
In DB2, I can get the value of year, month, date, hour, minute, second from current timestamp by year(), month(), date(), hour(), minute(), second(). Like below SQL,
SELECT current timestamp, year(current timestamp), month(current timestamp), date(current timestamp), hour(current timestamp), minute(current timestamp), second(current timestamp) FROM DUAL
In Oracle, how can I modify above SQL?
That is, do we have the corresponding function to each one of them in DB2?
Thanks,
JJHi Turloch,
Thanks for your help.
Here, I have another question.
How about the days caculation?
For example, in DB2, I have a SQL as below,
select
account_no
from
lit_transaction
where
( start_date + no_of_days days - exp_days days) <= CURRENT DATE
How can I modify above days caculation for Oracle?
Thanks,
J. -
Moving average price calculation based on year to date figures
Hello,
I've been working for months on the stock valuation at month end closing for the Finance department. We discover a situation where the moving average price is not calculated as we expected.
The situation is as follows:
2 purchase orders for the same material at different periods and with different purchase order prices
the invoice of the first pruchase order has been recorded after the good receipts of the 2 purchase orders with purchase price variance, good issues have been recorded between the good receipts and the first invoice receipt, therefore the stock quantity is lower than the quantity invoiced
the invoice of the second purchase order has been recorded as well with price purchase variance after the first invoice and after good issues, therefore the stock quantity is lower than the quantity invoiced.
Here is an example with figures:
SAP Calulation
Good entry
Good Issue
Before Posting
After Posting
Good receipt
Invoice receipt
Date
Movement
Quantité
Price
Value
Quantité
Price
Value
Quantité
Value
PMP
Quantité
PMP
Value
Quantité
PMP
Value
01.01.2014
Intial Stock
2000
11
22000
16.01.2014
Purchase Order 1
10000
10
100000
2000
11
22000
12000
10,17
122040
20.01.2014
Good issue
2000
20340
10,17
12000
10,17
122040
10000
10,17
101700
18.02.2014
Purchase Order 2
20000
9
180000
10000
10,17
101700
30000
9,39
281700
22.02.2014
Good issue
22000
9,39
206580
30000
9,39
281700
8000
9,39
75120
30.03.2014
Purchase Order 1
10000
9,5
95000
8000
9,39
75120
8000
8,89
71120
21.04.2014
Good issue
2000
8,89
17780
8000
8,89
71120
6000
8,89
53340
31.05.2014
Purchase Order 2
20000
7
140000
6000
8,89
53340
6000
6,89
41340
- When the first invoice is recorded, SAP calculate the MAP this way: ( 8000*9,39 + (95000-100000) * (8000/10000) ) / 8000 = 8,89
- When the second inoice is recorded, SAP calculate the MAP this way: ( 6000*8,89 + (140000-180000) * (6000/20000) ) / 6000 = 6,89
Moving average price calculation requirement
Good entry
Good Issue
Before Posting
After Posting
Good receipt
Invoice receipt
Date
Movement
Quantité
Price
Value
Quantité
Price
Value
Quantité
Value
PMP
Quantité
PMP
Value
Quantité
PMP
Value
01.01.2014
Intial Stock
2000
11
22000
16.01.2014
Purchase Order 1
10000
10
100000
2000
11
22000
12000
10,17
122040
20.01.2014
Good issue
2000
20340
10,17
12000
10,17
122040
10000
10,17
101700
18.02.2014
Purchase Order 2
20000
9
180000
10000
10,17
101700
30000
9,44
283200
22.02.2014
Good issue
22000
9,44
207680
30000
9,44
283200
8000
9,44
75520
30.03.2014
Purchase Order 1
10000
9,5
95000
8000
9,44
75520
8000
9,28
74240
21.04.2014
Good issue
2000
9,28
18560
8000
9,28
74240
6000
9,28
55680
31.05.2014
Purchase Order 2
20000
7
140000
6000
9,28
55680
6000
8,03
48180
- When the first invoice is recorded, SAP should calculate the MAP this way: (2000*11+10000*9,5+20000*9)/(2000+10000+20000) = 9,28
- When the second inoice is recorded, SAP should calculate the MAP this way: (2000*11+10000*9,5+20000*7)/(2000+10000+20000) = 8,03
Could you tell me if you know how to set up the calculation based on this formula (Intial stock value at MAP + Year to date Purchasing value) divided by (intial stock quantity + quantity purchased)?
Thank you in advance
RegardsArti,
MBEWH table will get you the MAP of a material monthwise,I guess you need to get the logic which will use those details to arrive on MAP for a paritcular date.
Check the SDN Forums with the keyword "MOVING AVERAGE PRICE REPORT" to get some lead.
moving average price report
K.Kiran. -
How do I know what OS I have on my iMac? I've used it as a PC for years and need to switch over but I may be out of date with current software. I think I read Lion somewehere....? OS 10.5.8
Click on the Apple icon at the top left of your menu bar, then About this Mac.
OS 10.5.8 is Leopard. Lion is 10.7
As for upgrading:
Start by checking if you can run Snow Leopard:
Requirements for OS X 10.6 'Snow Leopard'
http://support.apple.com/kb/SP575
The OS 10.6 Snow Leopard install DVD is available for $19.99 from the Apple Store:
http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
and in the UK:
http://store.apple.com/uk/product/MC573/mac-os-x-106-snow-leopard
but nobody knows for how long it will be available.
When you have installed it, run Software Update to download and install the latest updates for Snow Leopard to bring it up to 10.6.8, or download the combo update from here:
http://support.apple.com/kb/DL1399
Check via Software Update whether further updates are required.
You should now see the App Store icon, and you now need to set up your account:
http://support.apple.com/kb/HT4479
To use iCloud you have to upgrade at least to Lion, but some functions are only available in Mountain Lion:
http://support.apple.com/kb/HT4759
You can also purchase the code to use to download Lion (Lion requires an Intel-based Mac with a Core 2 Duo, i3, i5, i7 or Xeon processor and 2GB of RAM, running the latest version of Snow Leopard), or you can purchase Mountain Lion from the App Store - if you can run that:
http://www.apple.com/osx/specs/
Maybe you are looking for
-
Problems converting from MS Word 2007 to PDF using LiveCycle Designer 8
Hi all, Hope anybody out there could assist me. have a Word document (we are using Office 2007) and I'm trying to use Adobe Live Cycle Designer 8.0 to convert a form from word to pdf. However, I get an error message (as shown in the image below) Is t
-
My servlet cuts off the rest of my jsp page on Tomcat !
I'm using the Oracle Jdevloper 9i to create a web application. I will then deploy the application to a Tomcat server. Now here is the problem. When developing and running on the Oracle OC4J server the application works fine but after deploying to the
-
Premiere Pro CC Project File (.prproj) no longer XML?
Hi, Does anyone know why the project file (.prproj) is no longer a readable XML file in PP CC? In earlier versions, you could open the project file in a text editor and read it as an XML file. In CC, it's illegible garbage. Is there a way to decode t
-
Indesign not responding on startup
G'day I have recently purchased a 2011 iMac and installed CS5.5. The rest of the suite is working fine but Indesign has never worked. When I open up a new document the programme does not respond. The Error Report is linked below: http://pastebin.com/
-
I have an ipad and the only thing it does when you plug it in to the wall is flash the start up apple logo. It will not reboot because itunes can not reconginze it. I have tried holding the home and power button's together but it doesn't help.