Hi folks, <div><br></div><div>I have a problem using prd3.5ga and mdx queries containing external parameters.</div><div><br></div><div>But basically the issue is about the parameters upon calculations, for example:</div><div>
<br></div><div><span class="Apple-style-span" style="font-family: &#39;Lucida Grande&#39;; font-size: 12px; white-space: pre-wrap; ">with member Measures.mitja as
&#39;(Measures.contavis)/(parameter(&quot;NAgencies&quot;, Integer, 52)&#39;
select Measures.mitja ON COLUMNS, {[event_time].[month].currentmember} ON ROWS
from [MyCube]
where parameter(&#39;ppeer&#39;, [peer], [peer].[peer1])</span></div><div><font class="Apple-style-span" face="&#39;Lucida Grande&#39;" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;"><br>
</span></font></div><div><font class="Apple-style-span" face="&#39;Lucida Grande&#39;" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;">I&#39;ve tried a lot of syntax in order to get that &#39;NAgencies&#39; to work.</span></font></div>
<div><font class="Apple-style-span" face="&#39;Lucida Grande&#39;" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;">I got an error as if &#39;Integer&#39; was not in the cube, so I understand that mondrian recognizes the parameters if they follow this syntax:</span></font></div>
<div><font class="Apple-style-span" face="&#39;Lucida Grande&#39;" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;">parameter(&#39;param_name&#39;, [dim], [dim].[default_param_value])</span></font></div>
<div><font class="Apple-style-span" face="&#39;Lucida Grande&#39;" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;">where &#39;dim&#39; is the dimension where the parameter will be applied to.</span></font></div>
<div><font class="Apple-style-span" face="&#39;Lucida Grande&#39;" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;"><br></span></font></div><div><font class="Apple-style-span" face="&#39;Lucida Grande&#39;" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;">Then, I just want to know if is it possible to do this, my current workaround is ugly and not sustainable at all.</span></font></div>
<div><font class="Apple-style-span" face="&#39;Lucida Grande&#39;" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;"><br></span></font></div><div><font class="Apple-style-span" face="&#39;Lucida Grande&#39;" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;">Thanks in advance</span></font></div>
<div><br></div><div><br></div><div><br></div>