+ Reply to Thread
Results 1 to 19 of 19

Pivot Table shows same month twice!

  1. #1
    Registered User
    Join Date
    06-04-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    8

    Pivot Table shows same month twice!

    Hi!
    A colleague at work asked me to look into a problem he is having.
    The problem has to do with a pivot table he is using and it shows it self like this. He has data from every month, but for some reason Excel removes may, and shows the month of June twice.
    It looks like this then; month: 1, 2, 3, 4, 6, 6, 7, 8, 9, 10, 11, 12. May exists but is shown as June, minor issue but why does it happen?
    After searching the web I could not find a solution. Hopefully somebody here knows!

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pivot Table shows same month twice!

    Attach a sample workbook (not a picture!). 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.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Pivot Table shows same month twice!

    I suspect that there may be two columns which contain a reference to the months, and that a cell that has a reference to May in say column 1, has a reference to June in column 2 with perhaps a leading or trailing space to the text " June", making it different to all the other instances of June in column 2.

    That will mean that if you choose to show the column 2 field in the PT you'll see both "June" and " June"

    Just a guess but as Sansy has said, upload the workbook
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    06-04-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    8

    Re: Pivot Table shows same month twice!

    As you can see here, a "quick fix" was to use text in order to show month 5, may (this would be the after picture, how we would ike for it to be but without the manual override). The problem we are having is that the pivot table shows the wrong thing. It should display one of each month and not 2 "6".

    I would appreciate if someone could take a look at this and help me understand what is wrong!
    Attached Files Attached Files

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Pivot Table shows same month twice!

    Hi,
    It looks as though someone overtyped the data for month 5 to call it 6. Also, you have inconsistent formulas in your Månad column in the table. (some of the May data uses TEXT(MONTH([@Datum]),"5") for some reason)

    I suggest you correct those formulas so they are all consustent, then move the Månad field off the pivot table, refresh the table, then put the field back. I'd also change the source data for your pivot table to just refer to the Table and not entire columns.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Pivot Table shows same month twice!

    see Immatning tab and PT there

    try to recreate your PivotTables on this file
    Attached Files Attached Files
    Last edited by sandy666; 06-07-2018 at 03:34 AM.

  7. #7
    Registered User
    Join Date
    06-04-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    8

    Re: Pivot Table shows same month twice!

    Thanks for the quick response! We still have problems with the months though. It seems as nothing has changed, are we doing something wrong? Can you see the months in correct order for all years?

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pivot Table shows same month twice!

    Quote Originally Posted by Erik199 View Post
    Thanks for the quick response! We still have problems with the months though. It seems as nothing has changed, are we doing something wrong? Can you see the months in correct order for all years?
    Are you talking to ....?

  9. #9
    Registered User
    Join Date
    06-04-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    8

    Re: Pivot Table shows same month twice!

    Anybody who has seen the file, because the original problem is still there, the pivot table shows the wrong months, no may exept the one we forced with text, and 2 junes for some unknown reason to us.
    I'm just wondering when you (person who tries to solve the problem) try to use the pivot table, do you see every month in the correct order with no duplicates, or do you get the same result as we do.

  10. #10
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Pivot Table shows same month twice!

    This is what I get after taking the steps I outlined above.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    06-04-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    8

    Re: Pivot Table shows same month twice!

    Here is what I still see for some reason.
    Attached Images Attached Images

  12. #12
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Pivot Table shows same month twice!

    With the workbook I just posted?

    Edit: oops- I only did the bottom pivot table. Attached has both done.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    06-04-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    8

    Re: Pivot Table shows same month twice!

    Yes, both right after opening it, and after updating the table. Is there something wrong with our Excel perhaps?

  14. #14
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Pivot Table shows same month twice!

    See my edit above.

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Pivot Table shows same month twice!

    I said recreate not refresh PivotTable. It means: delete all your PivotTables and create them from the begining. All on my file.

    ad rem:
    check date column on your workbook. change format to General and if you'll see numbers from the top to the bottom dates are ok, so change back to the short date format.
    I don't understand why on Month column two formulas are used:
    =MONTH([@Datum])
    =TEXT(MONTH([@Datum]), "5") ???

    there should be one: =MONTH([@Datum]) from the top to the bottom

    but because maybe you need, from some reason, TEXT formula, I added double unary =--TEXT(MONTH([@Datum]), "5") to change text number to number number without changing formula construction.

    Now you should delete your Pivots and create them again
    Did you check on my Pivot Month filter? There are no duplicates.
    In your example duplicates exist because few rows of month are as text, few are as a number. For Excel these are different values.

    I changed formula on columns: År, Månad, Vecka to:
    =IF(A2="","",YEAR([@Datum]))
    =IF(A2="","",MONTH([@Datum]))
    =IF(A2="","",WEEKNUM([@Datum]))
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    06-04-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    8

    Re: Pivot Table shows same month twice!

    IT WORKS! Thank you all for the help!

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pivot Table shows same month twice!

    You are welcome

    If that takes care of your original question, & to say Thanks and for better Motivation, please
    1. click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
      then
    2. select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it already - ignore it.
    Thank you.

  18. #18
    Registered User
    Join Date
    06-04-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    8

    Re: Pivot Table shows same month twice!

    Will do! I am kinda the IT guy at this company and don't really know Excel on this level, but the people who asked me to help solve the problem understood what you said Sandy, I did not to the full extend. That's why I more wanted a solution than a how to but your explanation will help us avoid this in the future, so thank you!

  19. #19
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pivot Table shows same month twice!

    You are welcome and have a nice Excel-ing

+ 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. Replies: 0
    Last Post: 04-01-2016, 05:41 AM
  2. Why my Pivot Table Filter shows individual dates
    By chico.corrales in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 03-28-2016, 05:52 AM
  3. [SOLVED] A Second Column Which Shows Percentage Of Total In The Pivot Table
    By zanshin777 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-23-2015, 08:17 AM
  4. SQL Pivot table shows percentages as date and time
    By mhf89 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-19-2015, 09:09 PM
  5. [SOLVED] Pivot Table Not Grouping by Month for Latest Month (groups > 7/20/2013)
    By justforthis1 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 09-04-2013, 12:28 PM
  6. Replies: 1
    Last Post: 10-06-2009, 04:01 AM
  7. The last row of a pivot table shows blanks, but there is data.
    By D May in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-25-2006, 08:35 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