+ Reply to Thread
Results 1 to 6 of 6

PivotTable: Get average over period instead over occurrence

  1. #1
    Registered User
    Join Date
    05-26-2022
    Location
    Eindhoven
    MS-Off Ver
    Office 365
    Posts
    18

    PivotTable: Get average over period instead over occurrence

    Hello,

    I am creating a financial overview Excel file and I'd like to know the average over a certain period.
    Let's say I have 12 months and in one month there is a cost of €1000 occurring once, then I want to know the average over the total period (i.e. 1000/12).
    This so to show the monthly averages.
    I know, that for good reasons Excel calculates average over the amount of times it occurs (i.e. 1000/1).

    Nevertheless I want to know the figure over the amount of periods.
    The periods will change as I am using a pivot table with Timeline.

    Besides showing it finally in a chart, I also want to be able to show the averages in textboxes that I use in my dashboard.
    Each textbox refers to a certain cell for a value.

    However I need to retrieve the values.
    First I don't get the average over the selected period to work. Once I have that I can use some formula's to get the values also in the textboxes no problem.
    I tried many different kinds of things to get these averages.
    All of them didn't work and therefore I hope you can help me.

    An example file is attached.

    Feb Shareable Overview - Avg.xlsm

    Thanks in advance!

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: PivotTable: Get average over period instead over occurrence

    In the sample file would you want June's average for Belastingen to display -1.86 based on -19.56 + -2.71= -22.27 and -22.27/12=-1.855833333?
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    05-26-2022
    Location
    Eindhoven
    MS-Off Ver
    Office 365
    Posts
    18
    Quote Originally Posted by JeteMc View Post
    In the sample file would you want June's average for Belastingen to display -1.86 based on -19.56 + -2.71= -22.27 and -22.27/12=-1.855833333?
    Thank you for your reply

    The intent for me is to get an average for the period selected using the slicer. So if these costs are the only ones in a year and that year is selected then indeed divide by twelve (like I'm your calculation). I am making a dynamic dashboard for which I want to add averages per category for the selected period in the slicer.

    Hope this clarifies.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: PivotTable: Get average over period instead over occurrence

    I don't feel that you can get the desired results using a timeline, however I could be wrong.
    My feeling is that a Months table could be added to the data model.
    The following measure could be used to give the average based on the number of months > Average over Time:=SUM(tbl_Data[Bedrag])/SUM(tbl_Months[Months])
    Let us know if you have any questions.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-26-2022
    Location
    Eindhoven
    MS-Off Ver
    Office 365
    Posts
    18

    Re: PivotTable: Get average over period instead over occurrence

    Thank you. This inspired me.
    What I did to resolve it is to create one pivot table (somewhat like yours) and a formula to calculate the amount of months selected.
    Then create a second sheet and make a table with a couple of formulas to extract the totals of each category.
    Lastly I converted this data to a pivot table and voila. It worked.

    Probably not the nicest solution but it works!

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: PivotTable: Get average over period instead over occurrence

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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: 7
    Last Post: 03-05-2019, 02:05 PM
  2. Replies: 6
    Last Post: 11-03-2017, 10:39 AM
  3. Weighted Average Interest Rate in PivotTable
    By jmgoldjr in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-26-2013, 11:58 AM
  4. Calculating a Moving Average - PivotTable
    By lufcluke in forum Excel General
    Replies: 2
    Last Post: 01-19-2011, 07:28 AM
  5. Excel 2007 : Weigthed Average in Pivottable
    By pansovic in forum Excel General
    Replies: 1
    Last Post: 11-05-2010, 09:32 PM
  6. [SOLVED] PivotTable day-average from data that's sub-day
    By Kevin Lucas in forum Excel General
    Replies: 2
    Last Post: 06-06-2006, 06:10 AM
  7. Replies: 7
    Last Post: 03-02-2006, 02:08 AM

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