title: How to create a full year calculated measure mdx?
body: <p>Hello MDX and SSAS people,</p>
  
  <p>I was wondering how to create a time calculation measure that summarizes the selected period/month's total value for the entire year in this case Budget. So if I select 202004 from my time hierarchy it should be the total budget of year 2020 and if I select 201904 it should be the total budget of 2019.</p>
  
  <p>In the picture below I have created [YTD Budget] with the following mdx code:</p>
  
  <pre><code>Aggregate(periodstodate([Time].[Year-Month-Day].[Year],[Time].[Year-Month-Day].currentmember), 
  [Measures].[Budget Amount])
  </code></pre>
  
  <p>Now I would like to create [Full year Budget] but have not found a solution yet (novice mdx user). Anyone that has a solution for this?</p>
  
  <p><a href="https://i.stack.imgur.com/1sShf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1sShf.png" alt="enter image description here"></a></p>
  
  <p>Best regards,
  Rubrix</p>