+ Reply to Thread
Results 1 to 4 of 4

Want Pivot table's average to show average by number of month.

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    403

    Want Pivot table's average to show average by number of month.

    Hi, whenever i change the value setting to average. My pivot keep giving me totalsum/totalcount. How do i change it to totalsum/totalmonth?

    See attached
    Attached Files Attached Files

  2. #2
    Forum Guru Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    5,625

    Re: Want Pivot table's average to show average by number of month.

    Do you want the "Number of Months" to be the months which had sales for each Pdt / Salesman combination? Or the total number of months in the dataset?

    Are you still using Excel 2010, or a later version? If 2010 - do you have / can you install PowerPivot?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    403

    Re: Want Pivot table's average to show average by number of month.

    I want it to be divided by the number of months. In my case, it will be 3 since May, Jun and July. If i input Aug data, it will be 4 since May, June, July and AUg.

    Yes, i do have powerpivot. So do you mean i should check the "add to data model" first when creating the Pivot Table?

  4. #4
    Forum Guru Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    5,625

    Re: Want Pivot table's average to show average by number of month.

    Add your data table to the PowerPivot data model.

    Add the following measure:
    Please Login or Register  to view this content.
    Now create your Pivot Table from the Data Model, and use that measure in the Values section.

    See attached for worked example.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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