Dilawer
For simplicity I converted your raw data into a table however depending on your data source, size and frequency I might use a data range or indeed an sql interrogation.
I am sure there is a far more elegant way to do this in PQ however you are getting a quick and dirty today.
Knock 'em dead Tiger!
Excuse any Tardiness in responding as I am not on the site much.