Combine date and time to create a perfect dataset with 24H per day for a periode of two year

Sannasol

New Member
Joined
Sep 30, 2013
Messages
1
I have a model that works nicely with a time reference every day.
The problems starts when I want to take advantage of the fact that I have new data points from measurements every 15 minutes.
I would very much like be able to aggregate my data at least on hour basis and not just days in order to see effect of different setting on the machinery on our plant.
I've made a list for 2013 with timesteps every 15 minutes and then I've made a coupling between my measured data, collected at the same timesteps.

I think the reason why it doesn't work is that the two time colomns do not match perfectly numericly due to "sliding seconds due to the numerical representatiojn of data nad time in excell)". Is this correct? I do not get any error message, Power Pivot simply do not aggregate correctly. I guess what could solve my problem ( if I'm righ in my diagnoses) is a combination of dateadd and timeadd.
But there is no Timeadd in DAX.

I'm grateful for all advice.

Sannsol.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
It sounds as if you need to group your results into 15 minute slots? If so then read on ...

In Excel, dates are stored as integers and times are fractions of a day. This results in date/time values that can be formatted like this:

2013/10/06 10:45:00


Assuming you have your times in that format then the following formula should group any date/time value in cell A2 into 15 minute buckets. It will round the times back to the previous quarter hour.

=INT(A2)+INT(MOD(A2,1)*96)/96

This should then match your pre-defined groupings.
 
Last edited:
Upvote 0
recommendation: try creating a time table (for hours and minutes) and have a separate table just for the dates...then you'll create 2 calc columns from your main or fact table using the functions DATE (year, month and day) and TIME (hour and minute). This will help you create a pivot table for a whole day. If you need a contiguous pivot table from 1 day to the next then you'll have to make a product of both of those tables to a completely new table either sing SQL statements or with Power Query.
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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