+ Reply to Thread
Results 1 to 5 of 5

Active sales promotions per week

  1. #1
    Registered User
    Join Date
    01-12-2019
    Location
    Herning, Denmark
    MS-Off Ver
    Office 2013
    Posts
    2

    Question Active sales promotions per week

    Hello dear Excellers!

    I'm posting here after hitting a wall with Excel for an awful amount of time, and despite my nature of not giving up easy, I had to post this thread.

    The problem

    I have an imported table which consists of information about sales promotions. What I'm currently looking into and most interested in is the number of weeks each promotion was valid (or active) and also which calendar weeks it is in.

    What I'm working with


    The way I use to calculate the duration of a sales promotion is fairly simple - I have the starting date and the finish date of the promotion in each row. (1 row = 1 promotion)

    The goal

    However, what makes things a bit more spicy and complicated is the fact that I want to be able to do a Pivot Chart (Clustered column or a Line chart) with every week of the year on the horizontal axis and the count of active promotions for this specific weeks, such as:

    image001.png

    I tried with creating some measures, as I guess the solution is most likely hidden somewhere in there, but as you can already guess, I had no success at all. My next attempt was trying to add multiple columns which list every week a promotion was active (some sales promotions last for over a year, so I added 57 columns as a safe margin) and then planned on including them as columns in a pivot chart, but I quickly discovered that the Pivot Chart has a limit of 255 line items (it stops adding columns after the 9th).

    I'll be super grateful if someone can give me an idea.

    Thank you for your time, guys!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Active sales promotions per week

    Hi and welcome,

    It would be easier to help if you could attach a copy of your workbook so we can see the data layout.

    BSB

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Active sales promotions per week

    Agree that a sample file will help a lot. However, have you looked at using countifS() to do the counting?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    01-12-2019
    Location
    Herning, Denmark
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: Active sales promotions per week

    Hi again,

    Thank you for the quick replies! The complete dataset is fairly obfuscated with a lot of additional and unnecessary data, but here I tried to clean it and make it a bit more relevant for this specific purpose.

    FDibbins I thought about it, but the way I see this one working is by making an additional table, where all the individual week numbers will be listed in the first column, and the
    total count of active promotions per this week will be listed in the second column. This would work perfectly fine for generating the graph to some extent (I'm still not entirely sure how can I deal with the issue of a promotion expanding into the next year - then the weeknum of "Promotion End Date" will be lower thant the weeknum of "Promotion Start date" and I also would like to filter by year and etc), but the thing that concerns me about that approach is that I won't be able to list the individual promotions through clicking on specific week on the pivot table.

    I'd also like to apply some filtering, based on other parameters, such as "Company Code Description", "Creator Name" and etc.


    I would appreciate any sense of direction.
    Attached Images Attached Images

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Active sales promotions per week

    We need to see some actual (sample) data, so we can play with it and see the best way to get you what you want

+ 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. Average sales per week per sales representative in pivot table
    By R12345 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-15-2016, 07:16 AM
  2. Average sales per week
    By R12345 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-14-2016, 07:35 PM
  3. [SOLVED] Week by week automatic sales table calculation
    By artner0112 in forum Excel General
    Replies: 2
    Last Post: 11-28-2015, 11:53 PM
  4. [SOLVED] Making Daily Sales Planner recognize which month and which week to pull sales data from
    By Topher53180 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2014, 10:33 AM
  5. Incorporating Trade Promotions into Sales Data
    By tuna666 in forum Excel General
    Replies: 0
    Last Post: 09-19-2013, 05:28 AM
  6. copy week total in weekly sales worksheet to appropriate week in monthly sales
    By Sandy2976 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-15-2009, 01:04 PM
  7. [SOLVED] Calculate sales in the week by day ?
    By Vass in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-08-2006, 12:55 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