This is an interesting workaround. I like to try to understand the solution. I get everything up to the point of adding the filter to context.
What does adding the filter to context do?
And I understand this necessarily requires one blank dummy column. If anyone else can come up with an alternative without this, that'd be great.