
Dashboards
Power Pivot
Power Query

June 7, 2019

I'm trying to calculate the average per hour for each day from my Pivot Table. I don't have Power Pivot as an option. What is the recommend formula. Also I will be adding additional days every week.
see attached file.
Thanks


July 16, 2010

Hi John,
Seeing that you don't have Power Pivot. I'd use Power Query to aggregate the data the way you need because formulas are going to be overly complex and at risk of errors over time as your data grows. With Power Query you can add data to the table in Sheet1 and simply click the Refresh All button on the Data tab and it will update.
See file attached. Note: I deleted most of your data to reduce the file size.
Mynda

Dashboards
Power Pivot
Power Query

June 7, 2019

Hi Mynda,
I'm still struggling with this report. I decided to start to by extracting one days worth of data and use a Pivot Table to evaluate the average time per hour. If I have done this correctly then I want to upload each day going forward.
Can you let me know if I'm on the right track? Also I inserted a Slicer but what really need is to be able to create a table that captures each new day that is uploaded with the "Daily Average".
Lastly the date and time are not properly formatted when I extract it from my system. Do you recommend that I create macro to format it or should I manually updated it prior to uploading the main file?
I have attached the file for your review.
Thanks for your help.
John

Dashboards
Power Pivot
Power Query

June 7, 2019



July 16, 2010

Hi John,
Thanks for uploading the correct file. The date format appears to have already been fixed in your source data, so I can't help you with an example using Power Query to fix it.
In regards to the average time calculation. It's calculating correctly, although I'm not sure what value it provides, but you know your business better than I do.
Mynda

Dashboards
Power Pivot
Power Query

June 7, 2019

Hi Mynda,
Thanks for your reply.
The problem I'm having is how to upload additional dates to capture the Average per hour. I update a file with a table but I'm not sure where to go from here. Also is there a way to compress the data to avoid the file becoming too large?
Thanks
John

Dashboards
Power Pivot
Power Query

June 7, 2019


VIP

Trusted Members

December 7, 2016

Hello John,
Have you read this article on how update data from files in a folder using Power Query? I believe that is the best approach for you. Not sure of how familiar you are with Power Query, but here is a good article about it. I can also recommend this course, it helped me a lot to start using PQ.
With PQ you can choose to only link your data, so the file which you work with will not grow to much in file size, as the raw data will be in all the files in that folder. Give it a try, if you haven’t already.

Answers Post

Dashboards
Power Pivot
Power Query

June 7, 2019


Dashboards
Power Pivot
Power Query

June 7, 2019

Hi,
I tried the Power Query and it helped me to obtain the data and organized it. The problem I still have is calculating the average minutes for each hour. I have attached a portion of my file which list all the hours within one day with the related order numbers processed during the hour.
Please let me know if you can help.
Thanks,
John

Dashboards
Power Pivot
Power Query

June 7, 2019



July 16, 2010

Hi John,
Sorry, but I don't know what you mean by 'calculating the average minutes for each hour'. The average minutes in an hour is 60 😉
I was hoping your file would contain an example of what you'd like the output to be. i.e. what cells would you reference, what calculation would you do, what is the end result based on a sample of your data?
I don't understand the objective of the task at hand. Hopefully you can explain what you're trying to do in reference to your data. From there I can try to help you.
Mynda

Dashboards
Power Pivot
Power Query

June 7, 2019

Hi Mynda,
Sorry for all the confusion.
Basically I am trying to calculate the average minutes within an hour of a day to process (load trucks) tickets.
Here is the formula I would like to achieve:
= Find "TicketTime-Hour", Average minutes within related hour in column "TicketTime"
see attached file.
Thanks
John


July 16, 2010

Hi John,
Thanks for further clarifying, however I'd like to make sure I'm understanding correctly. You said:
"How can I report the average time it took to process tickets within the range of each hour.
We are loading trucks and some hours are busier than others which is why I am trying to capture the number of minutes used within the hour of the day."
But your data only has a 'TicketTime' column, which I presume is the time the truck loading began, as opposed to the duration it took to load the truck.
I would have thought that you need the start and finish times for each truck load in order to calculate the 'average time it took to process tickets'? I just don't think your data will give you the information you're after.
You might be better off plotting a box and whisker chart that shows the first and last ticket times and the ticket count to give a perspective of the time range the trucks are being loaded in and the number of trucks in that time range.
Mynda

Dashboards
Power Pivot
Power Query

June 7, 2019

1 Guest(s)
