Forum Discussion

RandomPanda's avatar
RandomPanda
Brass Contributor
Sep 07, 2022
Solved

Pivot Table - 2 criteria but show only one

I have a labor file with data source sorted by several criteria including Employee ID and then by Pay Code (Regular Hours, OT hours, PTO, etc.). I have a Pivot Table that pulls from that based on Lab...
  • Martin_Weiss's avatar
    Sep 08, 2022

    Hi RandomPanda 

     

    in a regular pivot table you can only sort by fields which are visible in the pivot table. In Power Pivot / datamodel there is an option to sort a column by another column.

     

    But even then this would not help in your case, because since the name of the employee is the same for all ID's, it will group the result by the name. So the output in the pivot table will be just one line with the name and the sum of all hours, as you experienced already.

     

    The only solution I can think of is keeping the ID in the pivot table and just hide the ID column (I know this is not an ideal solution).

     

     

Resources