+ Reply to Thread
Results 1 to 10 of 10

Need to Calculate uptime in Pivot

  1. #1
    Registered User
    Join Date
    01-17-2014
    Location
    Pune, India
    MS-Off Ver
    Excel 2010
    Posts
    17

    Need to Calculate uptime in Pivot

    Hi All,

    I have created a report and added a pivot to obtain the total downtime of a service # in a month and the up time of the service on monthly basis.

    I tried to add a field on pivot using =1-('TL DOWNTIME' /DAYS) to calculate the up time. but the result are incorrect.

    the raw data is in "Tickets Data" sheet.

    in which, I added the inventory of service. and added the ticket data. to differentiate inventory from Ticket data have following column header
    Tickets. Major Tickets, Circuit Count, DAYS.

    but the uptime % in Uptime By Service ID sheet is not coming accurate.

    I want to calculate uptime on month on month basis and Fix the formula in the field on pivot =1-('TL DOWNTIME' /DAYS)
    Attached Files Attached Files
    Last edited by neelesh4; 05-07-2020 at 03:08 PM.

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

    Re: Need to Calculate uptime in Pivot

    Try modifying the field1 formula to read: =1-('TL DOWNTIME'/(MIN(DAYS)*8))
    Note that I put in the value 8 to represent the hours in a workday, it should be changed to represent the actual number of hours that the service #'s are used per day.
    I notice that E47 is highlighted with a value of 99.716%. I assume that is not correct so if the above mentioned change doesn't help, please tell us what the correct value should be and unless blatantly obvious how it would be manually calculated.
    Let us know if you have any questions.
    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
    01-17-2014
    Location
    Pune, India
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Need to Calculate uptime in Pivot

    Hi JeteMc

    thank you for your response. the service is 24/7 o I replaced 8 by 24 and the new result is 99.988% which is also not correct.
    the correct result that is obtained manually is 99.148%.

    formula =1-(downtime/number of days in the respective month)

    I did some research over the weekend, the formula is calculating the number of days multiple times. in case of the service ID A40. it is taking February month days (29) 3 times from "ticket Data Sheet" i.e. from Source Type
    Inventory
    Email
    Fault Management

    I need to find a way that the formula only pick the number of days in respective month only once.
    Last edited by neelesh4; 05-11-2020 at 12:55 AM.

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

    Re: Need to Calculate uptime in Pivot

    I feel that the way to do what you want is to add a Min of DAYS column to the pivot table and use a column outside of the pivot table populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-17-2014
    Location
    Pune, India
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Need to Calculate uptime in Pivot

    Thank you JetMc this works perfectly outside pivot table. when I try to add this formula in calculate field, it give me an error. Reference, name, and arrays are not supported in pivot table formulas.

    Is it this picking up data from the Tickets Data Sheet Days Column "AE"?

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

    Re: Need to Calculate uptime in Pivot

    The GETPIVOTDATA formula is meant to be used outside of the pivot table, not as a calculated field.
    According to support.office.com "The GETPIVOTDATA function returns visible data from a PivotTable".
    Let us know if you have any questions.

  7. #7
    Registered User
    Join Date
    01-17-2014
    Location
    Pune, India
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Need to Calculate uptime in Pivot

    right but this cause an issue when I enter another month to the table.

    with the above solution, i would have to add an additional row outside pivot table for calculation. I am trying to achieve a formula that can be entered in "field" function to pick number of days only once.

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

    Re: Need to Calculate uptime in Pivot

    Would it be possible to only enter 29 as the number of days for the rows that have inventory in column A? When I delete the 29's from cells AE70:AE146 then I get the value of 99.148% for cell E47 in the file attached to post #1.
    Column AE (Tickets Data sheet) could be populated using: =IF(A2<>"Inventory","",DAY(EOMONTH(B2,0)))
    Let us know if you have any questions.

  9. #9
    Registered User
    Join Date
    01-17-2014
    Location
    Pune, India
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Need to Calculate uptime in Pivot

    Thanks Jete and sorry for the delay in response. I marked /30 in the formula and that helped

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

    Re: Need to Calculate uptime in Pivot

    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. [SOLVED] Step chart with uptime and downtime
    By ripcurlksm in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-01-2020, 11:29 AM
  2. Server Uptime/Downtime Calculation
    By rovert.natsud in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-13-2018, 12:28 PM
  3. Replies: 16
    Last Post: 12-04-2017, 09:46 PM
  4. [SOLVED] Calculate Uptime in Days within the constraint of Total Days in Each Month
    By jchungerford in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 04-29-2017, 06:54 PM
  5. Convert server downtime to Uptime in Hours for whole month
    By AsuraSinX in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-29-2016, 09:07 PM
  6. Create Uptime Calculation
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2013, 01:00 AM
  7. Help with creating uptime/downtime calculation/analysis
    By buerm009 in forum Excel General
    Replies: 0
    Last Post: 02-19-2013, 02:24 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