title: Averaging a measure/create a table from measure DAX
body: <p>I have a measure calculating the running balance of invoices, see this question <a href="https://stackoverflow.com/questions/32902756/dax-model-invoice-running-balance">DAX model invoice running balance</a>. Now I would like to be able to average the running balance filtered by the query context.</p>
  
  <p>Ie Id like somehow to return a table using DateDim with a calculated invoice balance per day and average over that table using the selected period in the query context. I've tried some solutions but really haven't found a smart way to do it.</p>