+ Reply to Thread
Results 1 to 4 of 4

Pivot Charting on realtime data (having gaps)

  1. #1
    Registered User
    Join Date
    03-07-2018
    Location
    Berlin
    MS-Off Ver
    2016
    Posts
    4

    Question Pivot Charting on realtime data (having gaps)

    Hi,

    I want to display gas prices from one or multiple stations changing during the day and compare to other days. Gas prices are delivered as CSV with one entry per change - if there is no update for several hours there is no entry for it. To draw a correct XY lline chart I had to double the data to account for the steady price until the next update happens:
    source2adjusted2chart.png

    What I want to achieve is a pivot chart from the source data where I can select one or multiple stations (id), one or several hours, days, weeks, ... I could mock this chart by blowing up the source data and generate a price value for each point in time. To keep Excel in a usable state I only created 108 (=(24-6) * 6) points per day. An exact chart with 1080 (=(24-6)*60) points is desired. And not having to blow up the data is desired as well. The mock up looks like:
    mockup.png

    My achievements with lines for several days for one station in the XY chart as well as in the pivot chart can be found here:
    gasdb.xlsx
    Last edited by TheChatty; 03-12-2018 at 09:52 AM.

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

    Re: Pivot Charting on realtime data (having gaps)

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    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
    03-07-2018
    Location
    Berlin
    MS-Off Ver
    2016
    Posts
    4

    Re: Pivot Charting on realtime data (having gaps)

    I rephrased the task and uploaded my example. It contains more than a week worth of data. To make the XY line chart more readible you can filter the table next to it to just a few days (e.g. to show Friday only). Same applies to the pivot chart. I hope for a clever calculated field or something.
    Last edited by TheChatty; 03-12-2018 at 09:57 AM.

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

    Re: Pivot Charting on realtime data (having gaps)

    Logically, I cannot see a way to do this without filling in the missing data. This can be accomplished with VBA. If you wish to preserve the original table, then you can write the data to a temporary table and plot off of that. In other words, use vb to create the table in the tab you have labeled as Mock.

    If you want the data to be plotted, it has to be there. The best other thing you can do is use the option to "connect the dots" which will connect the before and after points with a ramp instead of a step.

+ 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. total noob to charting/pivot, best way to display the data graphically
    By russkris in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 10-27-2017, 01:23 PM
  2. Help Surfacing Data - Pivot Tables and charting
    By taimoorh in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-21-2014, 06:29 PM
  3. Realtime Stock quote from Google Finance and charting
    By kaleem1919 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-21-2014, 06:11 AM
  4. gaps in pivot data source?
    By hello its dean in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-27-2013, 11:35 AM
  5. [SOLVED] Charting Date Gaps as Gaps
    By reactant in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 07-10-2012, 12:42 PM
  6. instant realtime data charting
    By dtvonly in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-07-2010, 06:06 AM
  7. simple charting through Pivot table data
    By lavi in forum Excel General
    Replies: 1
    Last Post: 05-13-2010, 04:45 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