I noticed this problem was solved offline years ago, however I'd just like to include this solution that I've used elsewhere for future reference.
I've written a quick MODLR process which takes a dimension and a hierarchy as prompts and creates a csv file in the model's file system (under...