Forum Discussion

Joe_IG's avatar
Joe_IG
Copper Contributor
Jun 11, 2020
Solved

Sorting rows in a pivot table by date columns

I'm trying to sort a pivot table which has company names in rows and closing month in columns. 

  • Joe_IG 

    On Windows that's easier, you may add data to data model and sort in it Deal Name by Close Date. Afraid that doesn't work on Mac.

     

    As variant you may add helper column to source table as

    =TEXT([@[Close Date]],"00000")&[@[Deal Name]]

    add it to PivotTable into rows on first position, that will be like

    Now we may narrow or hide that column, with grouping dates by month and year result will be

     

     

     

11 Replies

  • HelloJoe_IG 

     

    By default, when you prepare PivotTable Report, the data is alphabetize (Sort A to Z) as seen below

     

    If you want to sort it to suit your need, click on the drop-down icon in cell A3 (company) and choose Sort Z to A as seen in the caption below

     

  • Hi Joe_IG 

    Your attached sample workbook doesn't have a pivot table. The sample data is already sorted by month. Here is a copy and paste of your data right from your workbook.

     

    Sort this Pivot table by Month?      
    Company Jan Feb March April
    Comp a    $         5,000    
    Comp b  $         7,000      
    Comp c      $         8,000  
    Comp d        $         3,000
             

     

    Not sure what you want to achieve. Can you mock up the expected result?

Resources