Indent code blocks with 4 spaces on each line (or click the "1010101" button which does this for you). This will make code show up properly on the site. I fixed this for you this time though.
If this helps anyone, I solved this using a streamstats which always resets:
... | streamstats reset_before="1=1" list(mvfield) as mvfield | table mvfield