PowerPivot - Timings ignoring down hours from another table

HarveyH123

New Member
Joined
Feb 18, 2017
Messages
8
Hello,

I am trying to create a formulae in powerpivot that calculates time between two date/times, ignoring hours which are down hours

i.e.

If Start Time was 04/01/2018 05:53:00 and End Time was 05/01/2018 07:33:00 the answer should be 1060 minutes.

Attached is the table. Ideally i would want to do this is PowerPivot opposed to normal formula. I hope it will be simpler anyway.

To confirm, any hours in the second table that has a No shouldnt be counted in the time function.

Thanks in advance
smile.gif


Harvey



Timings-Calc.png
[/URL]

[/IMG]
gT3m0L



 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi Harvey,

I am getting 1,113 minutes for the below:

If Start Time was 04/01/2018 05:53:00 and End Time was 05/01/2018 07:33:00 the answer should be 1060 minutes.

Can you tell me how you come up with 1,060? I am getting 1,020 minutes for January 4th and 93 minutes for January 5th.
 
Upvote 0
Hi Harvey,

I am getting 1,113 minutes for the below:



Can you tell me how you come up with 1,060? I am getting 1,020 minutes for January 4th and 93 minutes for January 5th.

Hi VBA Geek,

Sorry i just quickly did that number manually,

Have you made a solution?

Im sure yours will be right.

Thank you,

Harvey
 
Upvote 0
You can get the file here: https://1drv.ms/x/s!AiiWkkwHZChHjzZc2WmnCMahT0xz

Look at the transformations done in the Query Editor


This is a great way to do it VBA Geek,

I changed it slightly and made it so it only uses Power Query opposed to PowerPivot as well.

As seen here, i also made it so we can see the proportion of valid and non-valid time.

https://1drv.ms/x/s!AioeuOc0ugjWq1hsib6LDXHDtC7L

As seen here.

List.DateTimes( [Start Time]) is going to be a great function when working in times in the future.

Cheers for your help,
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top