title: SSRS 2008 - How to link 2 or more year parameters into 1
body: <p>After some research, I see that blending parameters is a popular topic but I haven't found a solution to this specific situation. Shortly said, I have 3 parameters from various datasets all stating the same year and I want to blend them (visually) into 1 so to eliminate this redundancy for my report's end-user.</p>
  
  <p>In the "Available values" from "Parameter properties", all the values are taken from a dataset (hidden) and the "value field" is <code>[Measures].[ParameterValue]</code> from their corresponding hidden dataset.</p>
  
  <p>When I "show hidden datasets" and go into "text mode" of each of these hiden datasets are these are the 3 <code>MEMBER [Measures].[ParameterValue] AS</code> :</p>
  
  <pre><code>[Time].[Financial Year].CURRENTMEMBER.UNIQUENAME
  [Financial Period].[FP - Year].CURRENTMEMBER.UNIQUENAME
  [Time exit].[Financial Year Exit].CURRENTMEMBER.UNIQUENAME
  </code></pre>
  
  <p>When you look at what value this gives, they have the following output (accordingly):</p>
  
  <pre><code>[Time].[Financial Year].&amp;[2017]
  [Financial Period].[FP - Year].[FP - Year].&amp;[2017]
  [Time exit].[Financial Year Exit].Financial Year Exit].&amp;[2017]
  </code></pre>
  
  <p><strong>A.</strong> So, in my opinion, since the "roots" of each <code>[Year]</code> parameter value are different I need to create a dataset or a member within each of these hidden datasets that replaces this <code>[2017]</code>. Is that "doable" and, if yes, any guidance on how?</p>
  
  <p><strong>B.</strong> If not, another outcome would be acceptable as well: the end user would need to generate mostly <code>current year</code> and <code>current year-1</code>. To tackle this I made a Template "Year" DS with the same content as in FP - Year and added the following members:</p>
  
  <pre><code>Member [Measures].[Last Year] as 'YEAR(NOW())-1'
  Member [Measures].[Current Year] as 'YEAR(NOW())'
  </code></pre>
  
  <p>I inserted them into SELECT and previewed, it displays 2 new columns with 2017 and 2016. Then I went and changed in that PF-Year parameter's DS, value and label and I get an error. Any suggestions?</p>
  
  <p>Any suggestions on this?</p>
  
  <p><strong>EDIT1:</strong> I have tackled <strong>B.</strong> and found a solution to it, I simply created the following 2 Default values for each parameter:</p>
  
  <p>Current year: <code>="[Time].[Financial Year].&amp;[" + CStr(Year(Now())) + "]"</code></p>
  
  <p>Last year: <code>="[Time].[Financial Year].&amp;[" + CStr(Year(Now())-1) + "]"</code></p>
  
  <p>However, even though with this result I presume it will minimize the number of actions for the end-user, I would still prefer having 1 parameter showing instead of 3...</p>
  
  <p><strong>EDIT2 &amp; partial solution</strong> I found another solution for <strong>A.</strong>, it's not exactly what I wanted but it kind of gets the job done.</p>
  
  <ol>
  <li>Created a new Year parameter with 2 available values: <code>[CurrentYear]</code> and <code>[LastYear]</code></li>
  <li>For each of the default values of each other parameter, I swaped the 2017 and 2016 values for <code>CStr(Parameters!Year.Value(0))</code> and for <code>CStr(Parameters!Year.Value(1))</code> accordingly. Example: <code>="[Year exit].[Financial Year exit].&amp;[" + CStr(Parameters!Year.Value(0)) + "]"</code>. </li>
  <li>In the options of each parameter, I set them as "Hidden" expect for my new Year parameter.</li>
  <li>Now, I have 1 Year parameter with a dropdown list displaying <code>Current Year</code> and <code>Last Year</code>.</li>
  </ol>
  
  <p><em>Even though this alleviates the issue, is there anyway to have a similar outcome but with the drop down menu displaying the actual years?</em> i.e. it would be dynamic so in years to come, there would be 2018, 2019, etc. that would pop up? This way the end user would be able to compare not only current and past year but any 2 years?</p>
  
  <p>Thanks to all!</p>
  
  <p><strong>EDIT3</strong> Here is a screen shot of where I am at, at this point:</p>
  
  <p><a href="https://i.stack.imgur.com/9vHAK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9vHAK.jpg" alt="enter image description here"></a></p>
  
  <p><strong>EDIT4</strong></p>
  
  <p>I have arrived to a fix: since I know that the end-users will only be comparing 2 years at a time (so 2 default values per parameter), I left hidden 2 parameters out of 3 and for the 2 hidden, I changed their default values.
  So, I kept <code>@[Financial Year]</code> as my main parameter and the others have the following default values:</p>
  
  <p>@[FP - Year]:</p>
  
  <p><code>="[Financial Period].[FP - Year].[FP - Year].&amp;[" + CStr(Parameters!Financial Year(0)) + "]"
  ="[Financial Period].[FP - Year].[FP - Year].&amp;[" + CStr(Parameters!Financial Year(1)) + "]"</code></p>
  
  <p>@[Financial Year exit]:</p>
  
  <p><code>="[Year exit].[Financial Year exit].&amp;[" + CStr(Parameters!Financial Year(0)) + "]"
  ="[Year exit].[Financial Year exit].&amp;[" + CStr(Parameters!Financial Year(1)) + "]"</code></p>
  
  <p>And voilà the result:</p>
  
  <p><a href="https://i.stack.imgur.com/fklOD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fklOD.jpg" alt="enter image description here"></a></p>