Almost all the content online, as well as built in functions of PowerPivot/Dax/PowerBI etc. cater for date calculations that stop at day level.. I.e. YTD, QTD, MTD
I have a requirement to model event activity down to the minute, and it is absolutely driving me around the bend - most notably where the activity "crosses" midnight..
I need to answer the following:
Ultimately the time will probably be reported hourly, or perhaps in 15-min segments - but the grain of the data is by second.
These events are very small, and fast... some might only last for a few seconds, and others a maximum of 3 or 4 minutes.
I have attached a workbook, with a simplified version of my model.. it contains a separate Date, and time dimension as well as a 'Fact' with a series of events - I have this model doing what it needs to do with regards to the Date upon which something happened... however, going below that level i am a bit stumped.
My thinking right now is that somehow i need to crossjoin the date and time dimension when analysing below the date level.. i need to give time some context as something i was getting yesterday was where 1am (for example) would be replicated upon all dates going into the future which obviously isn't right..
Initially, I'm just looking to get this working, however i know Marco / Alberto wrote a great paper on optimising Events in progress and my dataset is pretty large (many tens of thousands of events per hour) this is a concern!
Attached workbook: https://onedrive.live.com/redir?resid=6239C024A73A77F7!20866&authkey=!ACj9oxB3IxATkoo
Thanks!
I have a requirement to model event activity down to the minute, and it is absolutely driving me around the bend - most notably where the activity "crosses" midnight..
I need to answer the following:
- Number of starting events @ time x - DONE
- Number of ending events @ time x - DONE
- Number of events in progress @ time x - ONLY AT DATE
Ultimately the time will probably be reported hourly, or perhaps in 15-min segments - but the grain of the data is by second.
These events are very small, and fast... some might only last for a few seconds, and others a maximum of 3 or 4 minutes.
I have attached a workbook, with a simplified version of my model.. it contains a separate Date, and time dimension as well as a 'Fact' with a series of events - I have this model doing what it needs to do with regards to the Date upon which something happened... however, going below that level i am a bit stumped.
My thinking right now is that somehow i need to crossjoin the date and time dimension when analysing below the date level.. i need to give time some context as something i was getting yesterday was where 1am (for example) would be replicated upon all dates going into the future which obviously isn't right..
Initially, I'm just looking to get this working, however i know Marco / Alberto wrote a great paper on optimising Events in progress and my dataset is pretty large (many tens of thousands of events per hour) this is a concern!
Attached workbook: https://onedrive.live.com/redir?resid=6239C024A73A77F7!20866&authkey=!ACj9oxB3IxATkoo
Thanks!
Last edited: