How to group by mixed values and sort by date in a PivotTable?

travelbug928

I am attempting to create a spreadsheet with a lot of data captured in it. The two requirements I have to meet are 1) group jobs/parts with the same PROJECT #, and 2 sort by JOB START DATE. I thought PivotTables were the best way to do so, but I keep running into a brick wall. I'm either unable to group by Project # (most likely because they are a mixture of numbers and text, this cannot be changed), or I'm unable to sort by Job Start Date.

I've tried moving Project # and Job Start Date from Rows to Values, as well as changing the order they're displayed in (Job Start Date before Project # and vice versa).

Screenshot of data in current PivotTable Screenshot of Field List

If grouped and sorted correctly, the records should show the grouped PROJECT # with the earliest start date first, then the next group with the next start date, etc.

An example would be:

>2074, 68506, BUC10626, 3/4/19
>>2074, 68568, AUC15393, 3/4/19
>>2074, 68570, AUC14509, 5/30/19

>2552, 69920, 99163786, 4/1/19
>>2552, 71066, H695359, 6/5/19

>1166, 71527, 5450926, 5/16/19

>2497, 71138, 2436-923, 6/11/19
>>2497, 73445, H646427, 7/24/19

>2704, 72682, AUC11771, 6/24/19
teylyn

Pivot tables build a hierarchy. If you have a cascade of Project > Job > Part > Date, then you can only sort by date within the container of the previous level, i.e. Part.

If you have more than one part in the hierarchy, then different dates will show up sorted inside that part, e.g.

ProjectA
   JobA
      Part A
         January    'these rows are 
         February   'sorted by
         March      'date
      Part B
         August
         September
      Part C
         March
         April

If you want the projects sorted by date, then you need to have the date column before the project column.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to sort a column with Date and time values in Spark?

From Dev

How to group by one column and sort the values of another column?

From Dev

How can I group by the count number of column values and sort it?

From Dev

Copying PivotTable Values in VBA

From Dev

Sort by datetime, then group by date

From Dev

How to do a sort of mixed values in R

From Dev

R - How to sort age values into age group

From Dev

How to sum values of two tables and group by date

From Dev

PivotTable to forecast by date

From Dev

How to sort values by date and drop duplicates by a column?

From Dev

How to Group by Date Field in a PivotTable using win32com.client

From Dev

Group object values by date

From Dev

PivotTable -- how to sum the result of a countif formula by group?

From Dev

How to solve mixed date formats

From Dev

Excel PivotTable; how to show values horizontally

From Dev

Sort List by date values

From Dev

How to copy PivotTable values without copying it?

From Dev

sort array of mixed integer and string values

From Dev

Sort and concatenate values by group

From Dev

how to sort "GROUP BY" query result by Frequent values?

From Dev

How to group ans sort posts in wordpress according to date?

From Dev

How to sort values in a column based on group_by in dplyr

From Dev

Sort values based on group

From Dev

R how Sum values by group by date

From Dev

SQL Sort by date and optional group

From Dev

How to sort output within a group by date?

From Dev

Python: Formatting columns with mixed string and date values

From Dev

how to sort a mixed string with numbers

From Dev

Pandas Mixed Date Format Values in One Column

Related Related

HotTag

Archive