Select half of rows in each group in Excel pivot table - excel

I have a table in Excel with about 30,000 rows. I grouped them based on a column value in a pivot table.
I am trying to run A/B tests on these rows, so I want to pull out half of the rows from each pivot table grouping.
Is there a straightforward way to do this?

Add a numerical field to your table thats goes from 1 to 30 000 for each row
Slide this field into your pivot as ROWS, You can now see your newly added column
On your pivot table, click on the arrow pointing down at the right of your newly added field.
Click on Label Filters.
Click on Greater Than...
For the sack of your example, to divide your table in half it should be 15000..
Half of your values should now be hidden and the upper half of your pivot table remains.
You can get the lower half using the Less Than.. option, etc..

Related

Create a calculated pivot table column in excel based off other columns in the pivot table?

So I have a bunch of rows in a query table that shows orders from a certain timeframe and whether that order had a "defect" or not. I have started a pivot table on that table to summarize the # of orders and # of those orders that were defective by day (trying to start a p-chart).
Is there any way to create a 4th column in the pivot table that calculates the percent defective (Orders with Defects/Count of Orders) from the two existing columns?
Sure,
Based on this site, these are the steps:
To start, select any cell in the pivot table
Next, on the Excel Ribbon, go to the PivotTable Analyze tab
In the Calculations group, click Fields, Items, & Sets
Then, in the drop-down menu, click the Calculated Field command
Once there give a name to your Calculated Field and set your formula to Orders with defect / orders (tip: select the fields from the list to make sure you get the names right).
One last note: I believe calculated fields perform additions by default.. I noticed your 2nd column is a "count", I believe the calculated field will sum that column (before dividing) instead of counting it.

How to transpose Excel Pivot table

I have source table where I have every number category in separate column (something like already pivoted).
I would like to create pivot table, where division are in columns and number category in rows.
I need to transpose columns with rows from this layout:
to something like this:
Is it possible within standard pivot without Power query and unpivoting my data? (I guess with PQ it would be bigger and took longer to refresh).
In the pivot field pane, drag Values from the Columns box to the Rows box, and drag Divisions from the Rows box to the Columns box.

Pivot Table sorting - category instead of "Values"

Below is the extract of a table i want to sort
I'd like to create two Pivot Table in two separate sheets so that I only have the start and end Dates corresponding to only one of the two categories, i.e AC156 or AC157
Extract of the result tables
Since the source list keeps getting updated, I'd really like to do this using Pivot Tables so that I can keep refreshing it.
It seems simple enough but I'm admittedly quite new to Pivot Tables. Any help would be appreciated.
Highlight your data table;
Insert a pivot table;
Put all three columns into Rows field;
Right click somewhere within the pivot table, go to PivotTable Options, go to Display, select Classic PivotTable layout (enables dragging of fields in the grid);
If your pivot table has grouped the dates by month, un-check Months2 in the data fields but leave Months if you want to sort by Start date;
If you pivot table has shown the subtotal for start date, right click the subtotal row and deselect Subtotal 'Start'.
You can make a copy of the pivot table, filter the Cat, sort the Months and then Start, then you should have:

Why pivot table does not show identical rows from the initial table?

Why pivot table does not show identical rows from the initial table? My expectation is that the pivot table could show these in separate rows.
The initial table has 100 rows and my pivot table (while taking 4 columns) showing less.
To be more specific: All cells in 3 columns out of 4 are formatted as text, 1 column as number. If there are two rows which are identical in all 4 columns why only one of these is shown in the end pivot table? The number column is not summarized.
Identical values in the rows of a pivot table will be rolled up into one row. If the number is in the values area of the pivot table, it will be summarized.
See this data example:
If the number column is in the Values of the pivot table, then the data gets summarised and only three rows of text are showing. It is entirely possible to rename the column title from "Sum of ..." to something else, so it may not be apparent that the data is summarised.
If you want to show all data, then put the number column into the rows area. You can then format the pivot table to repeat all item labels if you want to see the text for all rows.
Edit: If all values in the Rows area identical, then the data will be rolled up, too. A pivot table is about summarizing data. You'd typically have something in the values area that calculates something about this unique combination of four values.
If you want to show all duplicates, you need to enter a unique 5th column in the row area.

How do I return the nth to nth+10 largest value labels in a pivot table?

There has got to be a way to do this, but I can't figure it out. It's easy to get a pivot table (and pivot chart) to display the top-10 based on subtotal values. But, I want the pivot table to display the 11th to 20th largest rows based on subtotal values. The problem is that the number of lines and columns in the pivot table are dynamic, based on ever-changing source data.
I've tried filtering the pivot table, but I can filter only for the top or bottom values, not for arbitrary LARGE() ranges in the middle. I've also tried to set up a field outside the pivot table that identifies the 11th-20th largest rows, but this field breaks if the number of rows or columns in the pivot table changes.
Are there any other ideas out there? Unfortunately, the PowerPivot or PowerQuery tools aren't available for me. Just vanilla Excel 2013.
Not a lot to go on but I'm guessing you have totals for rows and wish to filter these by rank. If so, maybe repeat this Sigma values entry and for this change Show Values As to Rank Largest to Smallest, then filter the column (not just the PT) containing the new row totals with Number Filters, Between..., is greater than or equal to 11, select And, is less than or equal to 20.

Resources