Hi folks. I have two separate datasets that i would like to Join via DataTime. Each dataset reports within a 15 minute window but each are off by a minute or two of each other. With no coherence in the minute the Join won’t work.
I want to create a calculated field for each Dataset that rounds the time to a 15 minute block, following @faisalchohan and @Max using this however I get the error (see red text image below) - using many variations of their calc snippet below. @Max solution is good within an Analysis but fails in Dataset preparation Joins.
Any way of tweaking this to use in Dataset editing and calculated field creation to Join datasets? Or can you provide an alternative calculation?
addDateTime(-(extract(‘MI’,{DateTime})%15),‘MI’,{DateTime})
|Dateset 1||
|DateTime|Value|
|2024/06/01T12:01|20|
|2024/06/01T12:17|80|
|2024/06/01T12:35|30|
|2024/06/01T12:48|11|
|2024/06/01T13:02|65|
|2024/06/01T13:18|89|
|2024/06/01T13:36|41|
|2024/06/01T13:49|30|
|2024/06/01T14:03|22|
|2024/06/01T14:19|55|
|2024/06/01T14:37|68|
|2024/06/01T14:50|11|
|Dateset 2||
|DateTime|Value|
|2024/06/01T12:06|22|
|2024/06/01T12:15|55|
|2024/06/01T12:37|68|
|2024/06/01T12:50|11|
|2024/06/01T13:04|65|
|2024/06/01T13:16|89|
|2024/06/01T13:33|41|
|2024/06/01T13:46|30|
|2024/06/01T14:08|65|
|2024/06/01T14:16|89|
|2024/06/01T14:31|41|
|2024/06/01T14:46|30|