Hello,

Does anyone know how to do this in power query? Is M required or is there an easier way?

Thanks!