Forum Discussion

sakuraexcel's avatar
sakuraexcel
New Member
4 years ago
Solved

Combine multiple rows into one row within the same day

Hi,

I have a table generated from SQL that looks like this 

ts_startts_endunitNumberreason
1/11/2021 0:001/11/2021 10:42X1005000 
1/11/2021 10:422/11/2021 0:00X1000X
1/11/2021 0:001/11/2021 10:41X2005000 
1/11/2021 10:412/11/2021 0:00X2000X
1/11/2021 0:001/11/2021 10:26X3005000 
1/11/2021 10:262/11/2021 0:00X3000X
2/11/2021 0:003/11/2021 0:00X1000X
2/11/2021 0:002/11/2021 10:10X2000X
2/11/2021 10:102/11/2021 14:20X2002500Y
2/11/2021 14:203/11/2021 0:00X2005000 
2/11/2021 0:003/11/2021 0:00X3000X
3/11/2021 0:004/11/2021 0:00X1000X
3/11/2021 0:004/11/2021 0:00X2005000 
3/11/2021 0:003/11/2021 14:52X3000X
3/11/2021 14:523/11/2021 17:10X3002500Y
3/11/2021 17:104/11/2021 0:00X3001000Y
4/11/2021 0:005/11/2021 0:00X1005000 
4/11/2021 0:005/11/2021 0:00X2005000 
4/11/2021 0:005/11/2021 0:00X3005000 

 

 

Looking for solutions to combine multiple rows within the same day into a single row into something like below, is this doable using power query?

Thank you.