Share via

Cannot sort the Difference column in PivotTable

Anonymous
2019-09-11T03:51:39+00:00

Dear Experts,

Now my pivot table has a column showing the Difference between two year (2018Q1 and 2019Q1, based on 2018Q1, i.e 2019Q1 minus 2018Q1, using the"Show Values As"). Now I want to sort from biggest to smallest on the difference column.

I right click one of the cell of Difference column --> Sort --> from biggest to smallest, the result is sort by 2019Q1 column rather than the Difference column, why is that, and how to solve it? thanks! 

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

10 answers

Sort by: Most helpful
  1. Anonymous
    2019-09-13T09:57:44+00:00

    Hi,

    Broadly that is what I have done.  Additionally, I have written 2 DAX formulas as well.

    Right, thanks, I finally found them:

    PowerPivot tab > Calculations group > Measures drop down > Manage Measures command.

    In the PivotTable they have the little fx in front of the name.

    They are an aspect of PivotTables I know exist, but I have not invested the time to understand them yet.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Ashish Mathur 101.9K Reputation points Volunteer Moderator
    2019-09-12T23:08:51+00:00

    Hi,

    Broadly that is what I have done.  Additionally, I have written 2 DAX formulas as well.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Ashish Mathur 101.9K Reputation points Volunteer Moderator
    2019-09-12T00:14:47+00:00

    Hi,

    I could solve it with the PowerPivot.  You may download my workbook from here.

    Hope this helps.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2019-09-11T06:32:59+00:00

    Thank Verma

    Here is the demo file, my problem is highlight as yellow in the excel file:

    Demo File

    Was this answer helpful?

    0 comments No comments
  5. Vijay A. Verma 104.8K Reputation points Volunteer Moderator
    2019-09-11T04:32:29+00:00

    Hi BoscoCho

    I am Vijay, an Independent Advisor. Request you to please prepare and upload a sample / dummy file sans confidential / sensitive data to Onedrive and share the link here.

    HOW TO UPLOAD TO ONEDRIVE

    1. Login to https://onedrive.live.com/ utilizing the same Login ID and Password which you have used on this forum. (or use the installed Onedrive on your computer)
    2. Click Upload in the top OR drag and drop the file here.
    3. After uploading, right click the file and choose share.
    4. Click Copy Link.
    5. Copy the link and paste the link here.

    Was this answer helpful?

    0 comments No comments