+ Reply to Thread
Results 1 to 5 of 5

Two Identical Pivot Charts behaving diff (Hourly Grouping)

  1. #1
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Two Identical Pivot Charts behaving diff (Hourly Grouping)

    I am learning Pivot Tables and Charts, I built out this dashboard with Pivot Tables. One of them simple has OrderDate in the Rows field and that data consists of the date and a time stamp.

    I used group and chose hours and it automatically named them by the hour like "11 AM, 12 AM, 1 PM" etc.

    I then remade the exact table with the exact data but this time I "added to data model".

    When I group this time it adds an extra item in the rows (OrderDate and OrderDate(Hour) - and the fields are listed as 0, 1, 2, 3, 4 instead of 11 AM 12 AM etc.

    I cannot figure out why or how to get it to display the other way. It is super frustrating. I know I can manually type those names in but I want to learn why it is behaving this way?

    Related it seems that Excel added "OrderDate (Month)" and "OrderDate (Hour)" to the fields list for some reason. Also the "Starting" and "Ending" dates are greyed out. Definitely something different here...and the only thing I did differently was adding to data table. I had to do this because Distinct Count only shows up when I use a data table.

    My assumption is it is something to do with the data model using OLAP (not sure what that means). That leads my to my initial reason for using the data model, there was no DISTINCT COUNT option for fields in the non data model method. So I am not sure what workaround to use for that?

    The only other solution is a helper column but I have 800k rows, so this is not very viable. Takes 30-60 mins to run, and this report needs to stay updated daily

    Edit: I then decided to just rename them using data model because I need to finish this by tomorrow and when using the data model, the slicers don't use the name you manually type in so now the names are all wrong AND won't sort. So frustrated. (see image)
    Attached Images Attached Images
    Last edited by NewYears1978; 09-16-2021 at 06:44 AM.

  2. #2
    Forum Contributor
    Join Date
    06-20-2021
    Location
    UK
    MS-Off Ver
    2016
    Posts
    126

    Re: Two Identical Pivot Charts behaving diff (Hourly Grouping)

    Can you attach sample of your workbook? And show me your field selections for rows.

  3. #3
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Two Identical Pivot Charts behaving diff (Hourly Grouping)

    Quote Originally Posted by immigrated4urjob View Post
    Can you attach sample of your workbook? And show me your field selections for rows.
    It's 800,000 rows with like 30 fields that's why I did not place one. But let me see if I can make one because I am super frustrated.

    All the solutions I try work, but they break other stuff.

    1. Helper column in the data breaks slicers and filtering.
    2. Data Model works great with it's built in Distinct but it breaks grouping and Slicers as shown in the above photo ( I couldn't sort or rename slicers properly. Slicer would always use it's own default name no matter what I did)
    3. PowerQuery - works, but also doesn't allow me to use slicers with all my tables.

    I'll work on a sample right now. I am not sure if you need the sample with the one I made with the data model, or the one without. I'll try to make a sample for both.

  4. #4
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Two Identical Pivot Charts behaving diff (Hourly Grouping)

    I just finished making one of the samples and think I may have figured something out. Before I post sample I will try a few things.

    Question though, when using the "Data Model" version and grouping date timestamps by HOUR, it names them like I showed in my picture just with digits 0, 1, 2, 3 (military time) - if I tried to sort that it only sorts it like they are numbers. Is there a way around that? I have to manually drag and drop them to sort them properly..which works but just wondering why it behaves like that.

    In the non data model where it labeled them as 11 AM 12 AM 1 PM etc it would properly sort it as time.

  5. #5
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Two Identical Pivot Charts behaving diff (Hourly Grouping)

    Yeah I got it all working now. It was a little wonky but it is working! Few kinks but I think I am good now =D

    Only thing I am wondering now is before sharing a dashboard can I delete my actual dataset once I am finished? It's stored in the data model right now correct? As long as no one hits REFRESH it will all work?

    That way I can have a "working" version and an "exported" version for sharing. Every week I will update the working version and then replace the exported version with it after I update - is this right?

    Because this thing is 250MB as it is and that's bad for sharing.


    And the one thing I COULD NOT figure out is how to rename the slicers items using the data model version. Excel always seems to give them default formatting and changing them does nothing. In the old normal Pivot Table without data model if I renamed those groups the slicer automatically updated with those names. I have OrderDate(Month) slicers and I renamed the groups to long name months but it still shows them automatically as short name months. Annoying!
    Attached Images Attached Images
    Last edited by NewYears1978; 09-16-2021 at 12:55 PM.

+ 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. Read sheet rows and divide into hourly grouping
    By Hayz33 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2018, 09:15 PM
  2. Replies: 2
    Last Post: 05-31-2018, 06:18 PM
  3. Replies: 2
    Last Post: 05-09-2017, 04:55 PM
  4. Grouping data, creating pivot charts
    By AliceKO in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-01-2015, 03:38 PM
  5. Help with grouping identical rows/columns
    By NewbieDummy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2012, 09:18 AM
  6. charts not behaving consistently
    By StrawberryFields in forum Excel General
    Replies: 2
    Last Post: 04-21-2011, 11:31 AM
  7. Grouping cells with identical data
    By ChacoKevy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-23-2008, 03: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