+ Reply to Thread
Results 1 to 5 of 5

Pivot Table Slicer Field names (Data model vs Non Data Model)

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

    Pivot Table Slicer Field names (Data model vs Non Data Model)

    Hello all!

    I have created a very nice large sales dashboard using Pivot tables and charts. At some point to fix an issue I was having I had to switch to using the "Data Model" type tables instead of the normal. This solved one issue but it introduced a new one.
    With the normal pivot table non data model, I was able to change the field names in the pivot table itself and it would update slices. SO for instance on my dates field, that was grouped by Month, excel changed them to abbreviations like Jan, Feb, Mar and I was able to manually type in January, February ,March, etc.

    Now when I switched to the data model type, when I use groups they are auto named and I cannot change them. Is there any way to do this? The only way I can think of is if in my source data I split out my days by Month, day and year instead of using one field. This is super inconvenient but figured I would ask.

    The abbreviations are fine for now - but this is more a question just for learning purposes.

    Thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    05-09-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    148

    Re: Pivot Table Slicer Field names (Data model vs Non Data Model)

    Hi There,

    I am quite new to using data model in Excel, but have played around with it exactly as you have. What I have learned to do is the following.

    Create a table called calendar, here you make a date column that is the full date, start with the earliest date you will use and drag down to the latest, yes this will have many rows. From here you can then create helper columns, like quarter, month, day what ever you need, using formulas so that is easy to maintain. For this example you would only need one column additional to the date column, which is month, and you want the month number to show.

    Then, Create a Month table. Here you can have three columns (for example), an ID column with the month number, a Short name with "Jan/Feb/etc" and a Fullname with "January/February/etc.".

    Now, in your data model, create a relation between your date column in your "data" to the date column in the Calendar, Create another relation to the month number in the calendar table to the ID column in the month table.

    Now recreate your pivot, using the "Fullname" from the month table.... then recreate your slicer...

    Hopefully I understand your problem correctly and that this helps...

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

    Re: Pivot Table Slicer Field names (Data model vs Non Data Model)

    Hmmm I have not used relationships, this sounds good I need to try to figure it out, thanks for the tip. I will attempt this.

    I tried something similar to this but now I have a new problem because excel sorts that funny way, my slicers are not in order

    Because it sorts 1, 10, 11, 12 instead of 1, 2, 3, 4 etc
    Attached Images Attached Images
    Last edited by NewYears1978; 11-01-2021 at 02:05 PM.

  4. #4
    Forum Contributor
    Join Date
    05-09-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    148

    Re: Pivot Table Slicer Field names (Data model vs Non Data Model)

    Hi,

    Here is a small and digestible example for you. Take a look and try to use this in your file.

    Also look at this: https://sharepointmike.wordpress.com...ny-other-name/

    In my example, you could then experiment with adding Weeknumber in the Calendar table. Just
    1. Add a column called weeknumber
    2. Add a formula for the weeknumber

    Refresh data so that it appears in the pivot field list. Then add it to the pivot table.

    Good luck!
    Attached Files Attached Files

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

    Re: Pivot Table Slicer Field names (Data model vs Non Data Model)

    I got it sorted =D thanks for your help.

    I did it differently however your multiple table with relationships is cleaner, so I need to look into how to do that properly. I did it using a helper table with the dates ranges then used VLOOKUP in my data, but this slows the sheet down of course vs using a relationship.

    So hopefully I can get rid of the VLOOKUP and use a relationship instead =D

    Oh - I forgot I had to switch BACK from data model to normal model - if using normal model you can't have multiple tables in a pivot, can you?
    Last edited by NewYears1978; 11-02-2021 at 11:28 AM.

+ 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] Iterate over Data Model Pivot Table
    By jrean042 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2021, 04:55 PM
  2. Replies: 3
    Last Post: 03-08-2021, 07:31 AM
  3. [SOLVED] Calculated Field in Pivot from Data Model
    By Gazsim in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-18-2019, 11:44 AM
  4. Pivot Table and Data Model
    By olga6542 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-17-2018, 02:43 PM
  5. One slicer for two or more PivotTables without using Data Model
    By sandy666 in forum Tips and Tutorials
    Replies: 0
    Last Post: 07-15-2017, 09:41 AM
  6. power pivot table - Data model
    By pccamara in forum Excel General
    Replies: 2
    Last Post: 04-18-2016, 11:20 AM
  7. adding a calculated field to power pivot data model
    By stephme55 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-26-2016, 07:13 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