+ Reply to Thread
Results 1 to 4 of 4

Pivot Table values as text, and in order of numbers high to low instead of alphabetical

  1. #1
    Registered User
    Join Date
    04-03-2024
    Location
    Minnesota
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Question Pivot Table values as text, and in order of numbers high to low instead of alphabetical

    I have a large data set which has sales $, countries, regions, product categories. I was able to figure out how to show the values of the pivot as the names of the products being sold. Now I want to arrange the order of the product names in those cells from highest sales to lowest sales rather than alphabetical which seems to be the default. I want to keep the product names in order of sales when I expand or collapse the pivot fields. Is there a function that needs to be applied or formatting to keep the names in order of sales $ in the cells?Pivot Table with Text Example.xlsx

    Attached is an example of a similar data set and pivot table that I've created. I added a measure to the table/pivot so that it will show text in the pivot value cells (product name). I sorted the values (sales $) in the pivot rows from largest to smallest, which works great when all fields are expanded. However, when I collapse the pivot table rows, the Product Names in the value cells revert to alphabetical order. I desire to have them shown in the same order of the sales $ (largest to smallest).

    The formula I used in the measure to show the text in the values cells is =CONCATENATEX(VALUES(ProduceTable[Product Name]),ProduceTable[Product Name],", ") if that helps provide clarity.
    Last edited by johnkoehl10; 04-04-2024 at 11:07 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2508 Win 11
    Posts
    24,940

    Re: Pivot Table values as text, and in order of numbers high to low instead of alphabetica

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    04-03-2024
    Location
    Minnesota
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: Pivot Table values as text, and in order of numbers high to low instead of alphabetica

    Hi alansidman - I've edited the original post to include an example file, and some additional details on what I am looking to do.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2508 Win 11
    Posts
    24,940

    Re: Pivot Table values as text, and in order of numbers high to low instead of alphabetica

    I have used your data to pivot the information in Power Query (Get and Transform Data found on the Data Tab). If you filter the data after closing to Excel it keeps the data in the format. Not sure if this is what you are looking for. It is the best I can offer.
    Please Login or Register  to view this content.
    If you are looking for something else, then hang in there and hopefully, someone will come along with some help.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 10
    Last Post: 11-09-2021, 04:21 AM
  2. [SOLVED] Overcoming Pivot sortin alphabetical order
    By CliffyBiro in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 07-16-2018, 08:14 AM
  3. [SOLVED] Rank items in Pivot table from high to low and low to high based on the filter selected
    By jholiday78 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 02-19-2017, 11:22 AM
  4. Rank table and return values to the left in alphabetical order
    By kirbster in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-21-2014, 08:31 AM
  5. Sorting a table into alphabetical order?
    By elliottt in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-21-2014, 12:57 PM
  6. Pivot Table/Chart - Months in Alphabetical order
    By MunichMag in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 09-04-2013, 09:06 AM
  7. Vlookup table only works in alphabetical order???
    By neurotypical in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-26-2007, 01:22 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1