Excel Pivot Table: Grand Total Average - excel

I have traffic volumes counted for many days. What I want is to select dates, and make Pivot Table show me the totale volume per day, but the average grand total of the sum (Grand Total divided by the number of dates selected). If possible I would also like to show the number of dates selected. I have not found a solution to combine sum of and average in the same Pivot Table. Any tips?
What I am trying to achieve (but included in the Pivot Table):
Pivot Table
I do not want to add any data to the input-sheet
edit1: there are 24 counting hours per day, so the sum of Volume per day is the sum of 24 cells per day.
edit2: adding Count of Dato results in "24" per day, and a Grand Total of 480 (if 20 days * 24). I want this to be 20, like number of selected dates. See picture: image

Related

How to calculate average of parent category in excel?

I have data in below format. It shows starting and end time of an activity and calculates duration accordingly. The activity is performed through out the day at different times.
I have added a pivot. I want to find out the average duration in a workday or a holiday(Day category). When I am trying to apply average in the current pivot, it is dividing the total duration by the number of sessions in a day.For example in week 1, an activity was done on 4 work days and the total duration for the activity in workdays was 04.19, I want to divide this number by 4 and find out the average time spent on each day but the pivot divides it by 11 which is the total number of sessions in the four days.
Link for data
Steps:
Add a helper column to identify how many unique pairs of Dates/Day Categories there are:
=IF(SUMPRODUCT(($A$2:$A2=A2)*($B$2:$B2=B2))>1,0,1)
You can add extra products to this formula to force extra fields to be unique to be counted as well.
SRC:Simple Pivot Table to Count Unique Values
Add a Calculated Field in the PivotTable that is:
SUM(Duration)/SUM([Helper Column Name]) and include it in the 'Values' section of the PivotTable. Due to the new column being added, you might have to re-create the PivotTable.
This should produce the average in the manner that you want.

How do I create an extra column in an Excel Pivot Table to be able to calculate a percentage when using counts

We have an Excel Pivot Table based on a Jet Report table that displays a series of intervals tracking Customer On Time Delivery. The intervals are calculated as the difference between the Shipment Date and the original Requested Delivery Date. An On Time shipment has an interval of zero. Below is a screenshot of some sample data.
What I would like to do is to add a calculated column to the right of the Total that shows the On Time Percentage calculated as the Zero Interval count / Total count (e.g. 337 / 369 or 1,369 / 1,392), but I don't know how to determine which column contains the Zero Interval count. Is there anyway to do this within an Excel Pivot table? Thanks in advance for any ideas and/or suggestions.

Multiple Filters at the Excel Pivot table

well this is my source table in excel if I add a pivot for this source it looks like this
and I want make a multible-filter at this. for example how can I calculate which citys is that less than 4 days stays and more than 2000 $ spend for trip at there.
I mean it will show just this.
Ensure there is a spare row above the PT, select columns that contain PT and filter to select is less than 4 for TRIP Sum of Day and Greater than $2000 for TRIP Sum of Money:

Calculate the average sale for each month in excel 2013 pivot table

I have a large chunk of sales data with (some columns removed for clarity purposes):
Order Id, Order Date, Product, Amount, Product Price, Row total cost, Order total cost
A specific order can, as you may see, be divided over multiple rows - were order id, order date and order total is the same on each row. The "row total cost" contains the price for a specific amount of a specific product in the order.
It's not the best way to store data - I know...
Any ways. What I would like to do is to calculate the average sales value for each month. For example - total sales in sep 2012 is $1000, and in sep 2013 it's $500. The average sale for september would be 1000 + 500 / 2 = $750.
This I would like to present in a pivot table and pivot chart.
What I'm stuck with is an average sales value compared to the grand total (sep 2013 compared with all month of 2013 and 2012). I believe I need to group or filter my average calculation - but can't figure out how to do that.
Any help is much appreciated. Using Excel 2013.
Is the challenge caused by the "Order Total Cost" column containing repeats, and hence when you get average of that column it is not accurate?
If I assume that the columns you list are headings in row 1 and that data starts in row 2, then add a column headed Real order total with the formula =if(A2=A1,"",G2) in cell H2. Copy that down and it will give the order total just once for each order. Then base your average or pivot table on col H rather than G.

Excel Pivot table: Calculated field based on only the first row of a group

I've got the following data and pivot table:
The Total column in the pivot table is the sum of the following calculated field:
=start-TIME(7, 30, 0)
I know that this calculation is wrong for what I want to achieve. I need to know how much delay I have had on each day to start the work. e.g. on 1-Oct-12, assuming I should have started my work at 7:30, 8:00 - 7:30 which yields 30 minutes delay, 1 hour delay for 2-Oct-12 and 50 minutes for 3-Oct-12.
So my question is, how can I have a calculated field based on only the first row of each group in a pivot table?
I tend to avoid calculated fields and do the calculation in the source data if possible. So in this case I'd add a delay column to your source data, with a calculation that sums the difference only for the first row for each date:
=IF(COUNTIF($A$2:$A2,$A2)=1,B2-TIME(7,30,0),0)
Then you can pivot on the sum of delay. Format the delay pivot field like [h]:mm.

Resources