+ Reply to Thread
Results 1 to 8 of 8

Sort on Difference between '21 and '22 sales not working

  1. #1
    Registered User
    Join Date
    11-16-2022
    Location
    Chicago, IL
    MS-Off Ver
    Office 365
    Posts
    4

    Sort on Difference between '21 and '22 sales not working

    Doing a simple comparison between 2021 sales data by customer and 2022 to determine which customers are decreasing in sales. Created a difference column but cannot sort largest to smallest on this column. Any advice appreciated.
    Screenshot 2022-11-16 at 12.07.17 PM.png

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,311

    Re: Sort on Difference between '21 and '22 sales not working

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    11-16-2022
    Location
    Chicago, IL
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Sort on Difference between '21 and '22 sales not working

    For Excel Forum.xlsx

    Makes sense - small example attached. When sorting it defaults to the sales total instead of the difference in sales yr/yr

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,982

    Re: Sort on Difference between '21 and '22 sales not working

    Power Query soltuion

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    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

  5. #5
    Registered User
    Join Date
    11-16-2022
    Location
    Chicago, IL
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Sort on Difference between '21 and '22 sales not working

    Thank you Alan - I am certain what you provided is an excellent solution however for users like me who know much more than a novice but are not programmers is there something more intuitive / point and click that can be done? I am open to PowerPivot although have not used in the past. This challenge seems like it would be very common need for biz analysis.

    A simple process for finding customers who are trending down in sales...

    thanks in advance
    pm

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,982

    Re: Sort on Difference between '21 and '22 sales not working

    What I gave you is the result of Point and Click in Power Query. Similar to Recording a Macro. Suggest you look at the links I provided. You will find that it is very easy to follow and extremely powerful.

  7. #7
    Registered User
    Join Date
    11-16-2022
    Location
    Chicago, IL
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Sort on Difference between '21 and '22 sales not working

    Thank you Alan - I checked out links and can see that Power Query could be very powerful. In the spirit of keeping things more streamlined, can you think of any other way to skin the cat w/out modifying the base data; instead manipulating w/in standard pivot tables to accomplish same result?

    many thanks - PM

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,982

    Re: Sort on Difference between '21 and '22 sales not working

    Cannot. Tried to build a DAX measure in Power Pivot but was unsuccessful.

+ 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. [SOLVED] Calculate % difference between current & previous month sales
    By Keshy85 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-21-2022, 08:59 PM
  2. Help in working on a sales chart
    By Vishnubalagopal in forum Excel General
    Replies: 1
    Last Post: 08-14-2021, 01:03 AM
  3. [SOLVED] % of sales increase/decrease depending on new 2020 sales vs 2019 sales.
    By scubakerny in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-04-2020, 08:05 PM
  4. is the sales incentive working?
    By lemonap618 in forum Excel General
    Replies: 1
    Last Post: 09-04-2020, 02:59 AM
  5. Replies: 1
    Last Post: 02-08-2020, 10:32 PM
  6. Sort Daily Sales Item by VB Code
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2014, 10:34 PM
  7. Replies: 6
    Last Post: 10-19-2013, 04:53 PM

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