I have a pivot table grouping by month and calculating the average of the values.
Before grouping, a row of the table would look like that:
|1May|2May|3May|4May|5May|
XX| 10 | | 10 | | 10 |
Note that, for the specific row, data are missing for 2May and 4May.
Once I group this selection, the average for XX will be 10.
My desired result would've been 6 instead, that is (10+0+10+0+10)/5.
Is there a way to do it, without installing software and without altering/adding columns to the input table?
The input data (which the pivot is based on) needs to have zeroes, not just blank cells
Related
So I have a monthly budget in Excel that I'm using to keep track of making sure all of my recurring bills get paid on time.
Let's assume I have a table formatted like this:
Bill | Due Date | Amount Projected | Actual Amount | Diff
Mortgage | 1st | $1,500 | $1,510 | -$10
Water Bill | 13th | $30 | $25.80 | $4.20
I get paid on the 1st and the 15th, and I'm trying to get two rows that give a sum of all of the bills that are due within the first paycheck, and a sum of those that are due after.
So I'm trying to use the SUMIF function, however because the DUE DATE column is text and not date so that I get the 1st, 2nd, etc, I'm not sure how to run a comparison on this.
So I have the formula to get rid of the th, nd, etc as:
=LEFT(B2, LEN(B2)-2)
If it didn't have the th, or nd, the SUMIF function would look like this:
=SUMIF(C2:C3, "> 15", B2:B3)
But I just can't figure out how to combine the two formula. Is there any special character that runs the transform on the cell where I can pass that into the formula, without having an intermediate cell somewhere to just hold the 1, or 13 for the date due?
I know there are other ways to do this like just sorting the columns by due date and then only selecting that range, but I'd like to not have to manually change a bunch of other "reporting" columns every time I add or remove a bill.
Thanks for any help in advance.
=SUMPRODUCT((left(B2:B3,len(B2:B3)-2)<15)*C2:C3)
SUMPRODUCT performs array like operations. As such avoid using full column reference such as B:B.
I am using the excel's pivot table to sort and filter data from Super Store Dataset from tableau . Here is a screen shot of my output.
The steps that I followed are:
a. Put Order Date in the Rows.
b. Put Sub-Category in the Columns.
c. Put the Profit in the Sum of Values.
After that I took these steps:
d. Sort the Grand Total of the Sub Category from largest to smallest.
e. Sort the Grand Total of Order Date from largest to smallest.
f. Filter Top 3 from the Sub-Category.
g. Filter Top 10 from the Order Date.
And the above image of an excel sheet shows my output.
Now the problem is , even though the excel sheet was supposed to show me the top 10 orders , it only manages to show 7 to 8 orders. The rest 2 to 3 of them are either blank or should not even belong to the top 10 category.
Does anybody knows why is this happening. And how can this be prevented.
Thanks.
Edit: This is how the top 15 looks like :
I believe top 10 is based on the vertical Grand Total and it should also be a subset of the top 15.
And this is the top 20 :
It looks like this is caused by opening the .xls workbook in Compatibility Mode. This means that Version 10 pivot tables are created, which have different filtering functionality to the later, Version 12 Pivot Tables.
Change the workbook to an upgraded file format (.xlsx), and refresh your pivot tables - you'll get an interesting message informing you of the changes made to Top 10 filtering, and then the multiple Top N filters will apply correctly:
Here's some more information about Pivot Table versions / compatibility, from Microsoft
I am using powerpivot to create some metrics. On one pivot table, I want to show hires, terms and actives and then turnover % for each month.
I have the Hires, Terms & Actives powerpivot data working, however I do not know how I can add the turnover calculation.
Is there a way to insert a new column to a pivot table and run a simple division calculation in it?
*tried posting image of my data, not sure why site will not post image for me
one line of of table would look like such
Division | Hires | Actives | Terms | Turnover
Corporate | 5 | 150 | 3 | (terms/actives)
You can do this with the following measures:
SumActives:=
SUM(<fact table>[Actives])
SumTerms:=
SUM(<fact table>[Terms])
Turnover:=
[SumActives] / [SumTerms]
Adding a measure to a Power Pivot model.
Upon researching I found this thread on MrExcel that solved my question!
First create a measure
ValueSum:=SUM(Table1[Value])
then create a measures that takes the average of the monthly totals of the previous measure.
=AVERAGEX(VALUES(Table1[Month]),[ValueSum])
I'm having an issue with Excel to which I can't find an accurate solution online.
I have this table:
PERSON | DATE | SIZE
==========================
Matt | 1-10 | 90.1
Jane | 1-10 | 71.3
Matt | 1-11 | 90.0
Jane | 1-11 | 71.0
Matt | 1-12 | 89.6
Jane | 1-13 | 70.2
And so on...
The thing is that this is the best solution for inputting this kind of data. I can't have two different tables, one for each person involved, because more people will probably be involved later on, and they all should be included in the same table.
As you can see, the idea is to monitor their weights. And this would be better achieved visually by a line graph that can tell each person what their progress is.
To this end, I would like to set up one graph that shows each person's progress individually as a different line. Like this:
I was wondering if there was any way of having Excel automatically build this line graph using this table but ordering values according to if cell X has value....
Not being able to find that, I also tried to set up an invisible table that would gather each set in its own column. For that, I was thinking of using an IF statement but I can't seem to find a way of getting that to populate a separate table, row by row, with the data from the original table. On the Internet I can only find how to add up all the values in a certain cell if another certain cell has X value.
I was wondering if anyone out there could give me a hand with this. Thanks in advance!
I would use a pivot table and pivot chart to accomplish this.
Insert a pivot table, select your entire data range (including headers).
Select Person, Date, and Size in the field list.
Under pivot table options select pivot chart and choose your desired chart type.
Move Person to Legend Fields, Date to Axis Fields, and Size to Values.
Right click the pivot table and go to PivotTable Options
Under "For empty cells show: " write N/A (this will let Excel ignore missing dates)
Here is an example of the blank values.
Let me know if any further clarification is needed.
I'm working on a Powerpivot Pivot Table listing sales for my company. The table looks like this:
Row Label: Client Name
Column Label: Year
Values: Sales Amount
So something like this (columns are Client Name, 2014, 2013, 2012)
Client 1 | $10,000 | $15,000 | $20,000
Client 2 | $15,000 | $12,000 | $30,000
I'd like the table and the years to be the same but I want to show the top 25 customers only for year 2014. If I tell it to take top 25 by customer sales it gives me top 25 by total sales given all the filters. How can I do this?
Master_cylinder,
after thinking about this I suggest creating separates calculated measures (Excel 2010, in 2013 it's Calculated Fields) for each year that will allow easy filtering. It might be tricky if you have way to many years, but this way you can be sure the results are filtered exactly how you need to:
So for each year, create this simple measure:
=CALCULATE([Sum of Sales], Sales[Year]=2014)
For other years, simple change the filter parameter at the end - replace 2014 with different years. Than drag all the measures on the table, so that you will get something like this:
When you are done, simple filter the table using regular filter option and pick those settings:
This will get you the results you need.
PS: This is the powerpivot table structure that I was working with, and link to my source file in Excel (2010):