+ Reply to Thread
Results 1 to 5 of 5

Pivot flow chart (line) showing week, month by choice, different products

  1. #1
    Registered User
    Join Date
    10-16-2013
    Location
    Nederland
    MS-Off Ver
    Excel 2003
    Posts
    38

    Pivot flow chart (line) showing week, month by choice, different products

    Hello people!

    After I searched for some time at the forum for a similar problem I gave up. It's probably my code reading skill that lacks a bit.

    Anyway, I have a sheet with a large amount of data gathered over 7 years. In order to present this data efficiently, I'd like to make a flow line chart that shows the development of the prices of four different products (each a different color) by day, month and week (depending on what the user selects and wants to see). Also, the user must be able to select what products are shown (min 1, max 4). Also, it would be perfect if the user could choose to see the development in cash (like column E), or in % (as in how much higher or lower is E11 than E12).

    What can be found where:

    Week: Column A
    Date (for the days view): Column B
    Prices of product 1: Column E
    Prices of product 2: Column M
    Prices of product 3: Column S
    Prices of product 4: Column T

    Empty cells indicate that the product didn't exist, there was a holiday, etc.

    I would love to know how I can put all these wishes in one perfect pivot/flowchart (line). Obviously, the prices shouldn't stack.

    Thanks a lot in advance.

    psjpsjpsjpsj
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Pivot flow chart (line) showing week, month by choice, different products

    Can you please explain the layout of the sheet? What do the column headers represent, and how do I tell what the products are? The data are not set up for good pivot table use so we will have to figure out a way around that.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    10-16-2013
    Location
    Nederland
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: Pivot flow chart (line) showing week, month by choice, different products

    Hi dflak,

    I'm sorry that I couldn't reply earlier.

    Columns:
    A - Weeknumber
    B- Date
    C- Euro rate
    D- Irrelevant
    E- Product 1 (prices)
    F- Irrelevant
    G- Irrelevant
    H- Irrelevant
    I- Irrelevant
    J- Irrelevant
    K- Irrelevant
    L- Irrelevant
    M- Product 2 (prices)
    N- - Irrelevant
    O- Irrelevant
    P- Irrelevant
    Q- Irrelevant
    R- Irrelevant
    S- Product 3 (prices)
    T- Product 4 (prices)

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Pivot flow chart (line) showing week, month by choice, different products

    I added some helper columns. This program makes used of a pivot table to collect and organize the data. However, it is overlaid with named dynamic ranges for the purposes of plotting the charts. I also had to add in some headers since pivot tables don't like blank column headers.

    I recorded a macro to give me the syntax I needed to "swap out" the first column in the pivot chart which, by design, are named Daily, Weekly and Monthly - the same as the dropdown list in cell B4 on the chart page. If you translate this program make sure the code matches the dropdown names. I highlighted these column headers in orange on the marktprijzen sheet. Make sure you pick them up in the pivot table as well.

    I "translated" the product names to Product 1, Product 2, etc. You can change these in the pivot table headers and on the names of the series on the chart without affecting the code. You can also change them in cells A10:A13 on the chart sheet without issue.

    I have 4 calculated fields in the pivot chart to compute the row percent. I switch what to plot by adding an extra offset to the named dynamic ranges. Cell E1 on the pivot sheet manages this. Once again, if you change the dropdown values in cell B6 on the Chart page, change the formula in Cell E1.

    Finally, I hide series you don't want to see on the chart by hiding the columns on data driving the chart. It's an old trick, but it still works.

    I also threw in a pair of start and end dates. These calculate into the Use helper column. This column also makes sure that the non-date values in the data don't mess up the pivot chart.
    Attached Files Attached Files
    Last edited by dflak; 07-08-2016 at 03:57 PM. Reason: Attach Zip File

  5. #5
    Registered User
    Join Date
    10-16-2013
    Location
    Nederland
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: Pivot flow chart (line) showing week, month by choice, different products

    Hi dflak,

    Thanks a lot for your help! I got the data I need to get the job done.

    I did not have access to internet last week so I could not reply earlier (again..).

    Anyway I'm happy now

    Kind regards,

    psj

+ 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] Line chart showing line of those cells who have zero value
    By Imran Magsi in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-28-2016, 06:30 AM
  2. [SOLVED] Line Chart Showing What I Think Is Progress
    By HarryGreenwood in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-29-2015, 07:26 AM
  3. Showing combined bar and line chart
    By Lemons83 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-05-2014, 04:47 AM
  4. Line Chart/Flow chart help
    By clicky555 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 07-15-2014, 09:18 AM
  5. [SOLVED] Formula for week to date chart, but not showing until data entered.
    By paul*r in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-14-2014, 01:41 PM
  6. [SOLVED] Showing Fridays of each month in a 4 week month and a five week month
    By david_j_p in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-09-2013, 06:27 AM
  7. Flow chart of code? Is there a way to produce a graphical flow chart?
    By Craigm in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-23-2005, 05:05 AM

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