title: Access system tables in calculation
body: <p>Is there a way to access system tables in a SSAS cube calcuation? </p>
  
  <p>For example the following query can be executed on a SSAS cube to return a last processed date:</p>
  
  <pre><code>SELECT LAST_DATA_UPDATE FROM $System.MDSCHEMA_CUBES WHERE CUBE_NAME = 'Cube'
  </code></pre>
  
  <p>How would one access this information in a calculation?</p>
  
  <p><strong>Background:</strong> We were using ASSP before (a third party sproc) to get the last cube processed date. Recently, this sproc threw an exception on one of our cubes and caused SSAS to go down. Using the above line of MDX did not have this behavior. I would rather not have our cube depend on third party code so I am looking for a way to access LAST_DATA_UPDATE in a calc for a specific cube name.</p>