Help with FLATTEN (DATOVIEW)

I had a similar question, albeit with a calculation involved, that a forum member was kind enough to help me with. Perhaps it could help?