It's hard to help you any further if you don't provide a reproducible example, we have no way to know the structure of your real data.