Dump the results of a DAX query to CSV using PowerShell Written by Kasper de Jonge on 30 August 2013.