Please explain your raw data (best with illustration, anonymize as needed) and your desired output with illustration, then any logic to relate data to desired output if it is not painfully obvious. I'm pretty sure things are possible. But it is unfair to expect volunteers to speculate these things because different hypotheses can lead to vastly different paths.