+ Reply to Thread
Results 1 to 11 of 11

Simplify Display of Data in Pivot Chart?

  1. #1
    Registered User
    Join Date
    06-23-2021
    Location
    Oceanside, CA
    MS-Off Ver
    365
    Posts
    10

    Question Simplify Display of Data in Pivot Chart?

    Hi,

    I have recorded temperature data and want to make a line graph of this data with power pivot.

    The issue I'm having is, I want to show a high resolution of the data (say 24 readings per day), but I only want the days to show up in the X axis, not the hours. Having 24 hours squeezed above each day under the axis is quite unsightly.

    The example file attached shows how it's currently set up. Is there a way to somehow hide the time so that only the day shows up?
    Attached Files Attached Files
    Last edited by Nick Saunders; 06-25-2021 at 02:59 PM.

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Simplify Display of Data in Pivot Chart?

    Remove Time column from your PivotTable.

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,056

    Re: Simplify Display of Data in Pivot Chart?

    Apply a custom number format of ;;; to the Time field in the pivot table.
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Registered User
    Join Date
    06-23-2021
    Location
    Oceanside, CA
    MS-Off Ver
    365
    Posts
    10

    Re: Simplify Display of Data in Pivot Chart?

    Thanks Rory, that works perfectly for a pivot table. However, with my actual data I am working in Power Pivot. For some reason the "numbers format" button is missing from the field settings window if the pivot chart comes from power pivot. Any ideas how to get around this?

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,056

    Re: Simplify Display of Data in Pivot Chart?

    Not that I can think of. Do you have to use a Power Pivot table?

  6. #6
    Registered User
    Join Date
    06-23-2021
    Location
    Oceanside, CA
    MS-Off Ver
    365
    Posts
    10

    Re: Simplify Display of Data in Pivot Chart?

    I have 35k + rows of data that will eventually grow to 100k + rows, so I would prefer to use power pivot if possible.

    EDIT: did my math wrong, it will actually grow to 500k rows of data. So yeah, I definitely prefer to use power pivot. If there isn't a way to remove those numbers in a power pivot chart, maybe I just take a screenshot from that section of a properly formatted pivot table, delete the horizontal axis on the real chart, and past the image over it. It's a bit tacky, but it's a weekly report where all the charts stay in the same place all year.
    Last edited by Nick Saunders; 06-24-2021 at 05:02 PM.

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,056

    Re: Simplify Display of Data in Pivot Chart?

    Unless you need DAX, you could simply use Power Query to load the data (connection only) and build a normal pivot table off that.

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,515

    Re: Simplify Display of Data in Pivot Chart?

    What are the key steps/elements of the entire data analysis/pivot/power pivot process? What is the pivot/power pivot table doing that is absent or problematic in the source data? In the example in post 1, it appears that the source data (columns B:D) and the pivot data (columns F:H) are essentially identical. The pivot/power pivot step did not really do anything to the data other than "combine" weekdays into "groups".

    I want to show a high resolution of the data (say 24 readings per day), but I only want the days to show up in the X axis, not the hours.
    I look at this description, and I think that an XY scatter chart would have no difficulty with this -- if the source data included some kind of date+time stamp column. An XY scatter chart could easily divide the horizontal axis into days while properly positioning each data point at the correct horizontal position for its date+time value. A pivot chart cannot be an XY scatter chart (not sure why), but, for the example, it would not matter if the XY scatter chart were based on the pivot table or the source data.

    To give it something concrete, I might enter suitable date+time values in column A. I could enter 1.25, 1.5, 1.75, 2.25, 2.5, 2.75, etc. into column A (where the numbers 1 to 7 represent the days of the week Sunday through Saturday, and the fractions represent 6 AM, noon, 6 PM for the time of day of the readings). Then use columns A and D to create an XY scatter chart. Format the horizontal axis to have a tick mark every day (and/or any other formatting you want) and to have min and max of 1 and 8, and you're done.

    Obviously, I'm reading a lot into the example file. As long as the pivot/power pivot step is doing nothing more than copying/filtering the source data, then I think something using an XY scatter chart on the source data might work better and bypass the need for the pivot/power pivot step.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  9. #9
    Registered User
    Join Date
    06-23-2021
    Location
    Oceanside, CA
    MS-Off Ver
    365
    Posts
    10

    Re: Simplify Display of Data in Pivot Chart?

    Mr Shorty, the source data comes from 17 remote temperature logging sensors that take a temperature reading every 15 minutes. These 17 sensors are also spread across 3 separate rooms, and I want to create a graph for each room that includes three lines of data over time:
    - the highest temperature
    - the lowest temperature
    - and the average temperature

    I've attached a more detailed example if you want to get an idea.

    But I think I've found simple solution that will work for my purposes. I'll just add major gridlines like you said and instance them every 24 times, so once per day. I can delete the axis and the gridlines are still there, and one can still figure out the days of the week pretty easily from that I think. (the final version will show the week/date elsewhere on the sheet, with slicers and such)

    The attached spreadsheet shows what one week's worth of data might look like for one of the three rooms.
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,515

    Re: Simplify Display of Data in Pivot Chart?

    If you have something you like, then go with what is easy for you.

    With this example, I could easily using a technique like this (https://peltiertech.com/regular-char...-pivot-tables/ ) to create a scatter chart from the pivot on "gridlines with no axis" -- if you are interested.

  11. #11
    Registered User
    Join Date
    06-23-2021
    Location
    Oceanside, CA
    MS-Off Ver
    365
    Posts
    10

    Re: Simplify Display of Data in Pivot Chart?

    I think I will go ahead and do the major gridlines and no axis. Shame that power pivot has that weird quirk with no way around it. Thanks for all the help!

+ 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. Add a ROW with aggregated data to pivot table and display on a chart
    By pfraiegari82 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-13-2018, 04:01 AM
  2. Pivot Chart - Display data in X axis (all) items regardless of count
    By gtp2014 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 10-22-2014, 11:50 AM
  3. Display months for which there are no data in pivot chart
    By Lindman in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-26-2014, 07:56 AM
  4. [SOLVED] Looking to Simplify Pivot Table and Formulas Used to Create Chart
    By mo4391 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-29-2013, 11:44 PM
  5. Pivot Table to roll up data and display in pivot chart
    By Dawson64 in forum Excel General
    Replies: 3
    Last Post: 09-26-2011, 05:06 PM
  6. Replies: 5
    Last Post: 01-27-2009, 11:22 AM
  7. [SOLVED] Can I display the actual data in the data field of a pivot chart?
    By Tom Pivot! in forum Excel General
    Replies: 1
    Last Post: 01-12-2006, 01:15 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