+ Reply to Thread
Results 1 to 6 of 6

Thread: months counting problem in Pivot Table

  1. #1
    Registered User
    Join Date
    09-07-2011
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    6

    months counting problem in Pivot Table

    Hi Everyone.

    Sorry if that has been solved before, I just found nothing so far.
    I have faced a problem working in Pivot Table.
    I have set ROW LABLES to be months and years, and then in the SUM VALUES I have stated that I want Difference in % of a previous month.
    I had only 2 years of data: 2010 and 2011. In 2010 (as it should), first field (Junuary 2010) was blank, as Excel had nothing to compare the data to. But then in January 2011 field came up to be blank as well, meaning Excel does not recongnize 12.2010 to be previous month of 01.2011.

    Has anyone had similar problem before?

    Many Thanks

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,351

    Re: months counting problem in Pivot Table

    can you post example file to illustrate your problem.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,285

    Re: months counting problem in Pivot Table

    Hi gutkinma and welcome to the forum,

    After playing awhile with my attached pivot table, you are correct. The previous looks to be using the row previous, which is blank because of the grouping.

    Maybe you should ungroup the dates (don't group by year) and see if that gives you the answer you want.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * below to say thanks.

  4. #4
    Registered User
    Join Date
    09-07-2011
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: months counting problem in Pivot Table

    Thank you Andy and MarvinP,

    Andy, sorry not to be clear, there is a small example attached. You can see, Jan2011 is empty, although, it should have had value of difference, comparing to Dec2010.

    MarvinP, unfortunately, I was not the one putting data together, and I am not too sure I can rearrange it the way you have in your attached example.
    And the amount of data is very large (not the example, the actual data I am working with), so I can't do it manually.

    Thank you both again
    Attached Files Attached Files

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,351

    Re: months counting problem in Pivot Table

    Using just the month field will not allow the PT to understand the row 2 is not the same as row 14 in your data.

    You need a proper date field in order to do what you describe.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  6. #6
    Registered User
    Join Date
    09-07-2011
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: months counting problem in Pivot Table

    In deed, that is a solution.
    Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0