<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Dynamic MDX in Reporting Services</title>
	<atom:link href="http://www.purplefrogsystems.com/blog/index.php/2008/09/dynamic-mdx-in-reporting-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.purplefrogsystems.com/blog/index.php/2008/09/dynamic-mdx-in-reporting-services/</link>
	<description>Purple Frog-Blog for all that is Business Intelligence</description>
	<lastBuildDate>Sat, 04 Sep 2010 09:00:59 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Muthu Vijayans</title>
		<link>http://www.purplefrogsystems.com/blog/index.php/2008/09/dynamic-mdx-in-reporting-services/comment-page-1/#comment-4653</link>
		<dc:creator>Muthu Vijayans</dc:creator>
		<pubDate>Sat, 09 Jan 2010 07:10:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.purplefrogsystems.com/blog/?p=18#comment-4653</guid>
		<description>Hi thanks for giving the ideas. am looking for Mdx analyser, formatter and Parser.

is there any links to check plz help.

http://www.dotnetpgm.co.cc</description>
		<content:encoded><![CDATA[<p>Hi thanks for giving the ideas. am looking for Mdx analyser, formatter and Parser.</p>
<p>is there any links to check plz help.</p>
<p><a href="http://www.dotnetpgm.co.cc" rel="nofollow">http://www.dotnetpgm.co.cc</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naveen Das</title>
		<link>http://www.purplefrogsystems.com/blog/index.php/2008/09/dynamic-mdx-in-reporting-services/comment-page-1/#comment-4636</link>
		<dc:creator>Naveen Das</dc:creator>
		<pubDate>Fri, 08 Jan 2010 00:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.purplefrogsystems.com/blog/?p=18#comment-4636</guid>
		<description>Alex

You CAN use expressions in the underlying MDX query. I have used it with success, example as under:

=&quot;SELECT [Measures].[Internet Sales Amount] on 0,TOPCOUNT( [Customer].[State-Province].CHILDREN,&quot;+cstr(Parameters!ParameterN.Value)+ &quot;,[Internet Sales Amount]) ON 1 FROM [Adventure Works]&quot;</description>
		<content:encoded><![CDATA[<p>Alex</p>
<p>You CAN use expressions in the underlying MDX query. I have used it with success, example as under:</p>
<p>=&#8221;SELECT [Measures].[Internet Sales Amount] on 0,TOPCOUNT( [Customer].[State-Province].CHILDREN,&#8221;+cstr(Parameters!ParameterN.Value)+ &#8220;,[Internet Sales Amount]) ON 1 FROM [Adventure Works]&#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nulled Scripts</title>
		<link>http://www.purplefrogsystems.com/blog/index.php/2008/09/dynamic-mdx-in-reporting-services/comment-page-1/#comment-4423</link>
		<dc:creator>Nulled Scripts</dc:creator>
		<pubDate>Tue, 22 Dec 2009 21:34:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.purplefrogsystems.com/blog/?p=18#comment-4423</guid>
		<description>Excellent post..Keep them coming :) Thanks for sharing.</description>
		<content:encoded><![CDATA[<p>Excellent post..Keep them coming <img src='http://www.purplefrogsystems.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.purplefrogsystems.com/blog/index.php/2008/09/dynamic-mdx-in-reporting-services/comment-page-1/#comment-4073</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 24 Nov 2009 20:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.purplefrogsystems.com/blog/?p=18#comment-4073</guid>
		<description>Have you checked that the variables do actually contain the exact value of the attribute key? 

Try making a copy of the report, then delete the dataset from the copy. Then put a large textbox on the report which just shows the contents of the mdx query you are trying to run. You can then copy that query into SSMS to get a more helpful error message.</description>
		<content:encoded><![CDATA[<p>Have you checked that the variables do actually contain the exact value of the attribute key? </p>
<p>Try making a copy of the report, then delete the dataset from the copy. Then put a large textbox on the report which just shows the contents of the mdx query you are trying to run. You can then copy that query into SSMS to get a more helpful error message.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karl</title>
		<link>http://www.purplefrogsystems.com/blog/index.php/2008/09/dynamic-mdx-in-reporting-services/comment-page-1/#comment-4068</link>
		<dc:creator>karl</dc:creator>
		<pubDate>Tue, 24 Nov 2009 12:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.purplefrogsystems.com/blog/?p=18#comment-4068</guid>
		<description>i think now is my last problem of all this . i hope.

the things that is behind the &#039;where&#039;.

I have 2 parameter(tiempo and project). it is a date day and name project

......FROM [cube]
where  ( [Time].[Date].&amp;[2009-10-01T00:00:00]) ,
,([Project].&amp;[one]) 

i have tried...
t=params(&quot;tiempo&quot;).value.ToString()
p=params(&quot;project&quot;).value.ToString()

mdx += &quot; ....  FROM [ANALISIS DE PLANTA]  WHERE ([Time].[Date].&amp;[&quot; + t +  &quot;]&quot;) ,([Project].&amp;[&quot; + p + &quot;]&quot;) 

but fall in the query.

any idea??</description>
		<content:encoded><![CDATA[<p>i think now is my last problem of all this . i hope.</p>
<p>the things that is behind the &#8216;where&#8217;.</p>
<p>I have 2 parameter(tiempo and project). it is a date day and name project</p>
<p>&#8230;&#8230;FROM [cube]<br />
where  ( [Time].[Date].&amp;[2009-10-01T00:00:00]) ,<br />
,([Project].&amp;[one]) </p>
<p>i have tried&#8230;<br />
t=params(&#8220;tiempo&#8221;).value.ToString()<br />
p=params(&#8220;project&#8221;).value.ToString()</p>
<p>mdx += &#8221; &#8230;.  FROM [ANALISIS DE PLANTA]  WHERE ([Time].[Date].&amp;[" + t +  "]&#8220;) ,([Project].&amp;[" + p + "]&#8220;) </p>
<p>but fall in the query.</p>
<p>any idea??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karl</title>
		<link>http://www.purplefrogsystems.com/blog/index.php/2008/09/dynamic-mdx-in-reporting-services/comment-page-1/#comment-4067</link>
		<dc:creator>karl</dc:creator>
		<pubDate>Tue, 24 Nov 2009 11:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.purplefrogsystems.com/blog/?p=18#comment-4067</guid>
		<description>i solved the problem, Checked access rights of the user which is used to create the db connection.
it was problem of my user.</description>
		<content:encoded><![CDATA[<p>i solved the problem, Checked access rights of the user which is used to create the db connection.<br />
it was problem of my user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.purplefrogsystems.com/blog/index.php/2008/09/dynamic-mdx-in-reporting-services/comment-page-1/#comment-4060</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 23 Nov 2009 20:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.purplefrogsystems.com/blog/?p=18#comment-4060</guid>
		<description>Could you post how you solved the problem?

The next problem is probably caused by the value being returned as a string. Cast it to a number before applying sum. That should sor it out.</description>
		<content:encoded><![CDATA[<p>Could you post how you solved the problem?</p>
<p>The next problem is probably caused by the value being returned as a string. Cast it to a number before applying sum. That should sor it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karl</title>
		<link>http://www.purplefrogsystems.com/blog/index.php/2008/09/dynamic-mdx-in-reporting-services/comment-page-1/#comment-4055</link>
		<dc:creator>karl</dc:creator>
		<pubDate>Mon, 23 Nov 2009 16:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.purplefrogsystems.com/blog/?p=18#comment-4055</guid>
		<description>ok I&#039;ve got it.

But now i have another problem on the report. in the cell of matrix i write =sum(fields!medida.value), and when i esecute report  error message appears into the cell (# errror) , but if I remove the word &#039;sum&#039; there is not error , but the result not the correct.

my code :

Public Function CreateMDX(ByVal params as Parameters) as string
Dim mdx as string 
....
....
.....
 mdx +=&quot;SELECT  &quot;&quot;[Empresa].[Empresa].[MEMBER_CAPTION]&quot;&quot; AS group1    &quot;

mdx += &quot;, &quot;&quot;[Measures].[qty]&quot;&quot; as medida  FROM OpenRowset( &#039;MSOLAP&#039;,  &#039;.....................&quot;
.....
....</description>
		<content:encoded><![CDATA[<p>ok I&#8217;ve got it.</p>
<p>But now i have another problem on the report. in the cell of matrix i write =sum(fields!medida.value), and when i esecute report  error message appears into the cell (# errror) , but if I remove the word &#8217;sum&#8217; there is not error , but the result not the correct.</p>
<p>my code :</p>
<p>Public Function CreateMDX(ByVal params as Parameters) as string<br />
Dim mdx as string<br />
&#8230;.<br />
&#8230;.<br />
&#8230;..<br />
 mdx +=&#8221;SELECT  &#8220;&#8221;[Empresa].[Empresa].[MEMBER_CAPTION]&#8220;&#8221; AS group1    &#8221;</p>
<p>mdx += &#8220;, &#8220;&#8221;[Measures].[qty]&#8220;&#8221; as medida  FROM OpenRowset( &#8216;MSOLAP&#8217;,  &#8216;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8221;<br />
&#8230;..<br />
&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karl</title>
		<link>http://www.purplefrogsystems.com/blog/index.php/2008/09/dynamic-mdx-in-reporting-services/comment-page-1/#comment-3992</link>
		<dc:creator>karl</dc:creator>
		<pubDate>Wed, 18 Nov 2009 15:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.purplefrogsystems.com/blog/?p=18#comment-3992</guid>
		<description>hi alex,

the same error:

cannot read the next data row for the data set mydataset.
OLE DB provider “MSOLAP.3” for linked server “(null)” returned message . Access denied 

i have the sqlserver 2005 sp3  , not sp2

Can it be that the error is another cause?</description>
		<content:encoded><![CDATA[<p>hi alex,</p>
<p>the same error:</p>
<p>cannot read the next data row for the data set mydataset.<br />
OLE DB provider “MSOLAP.3” for linked server “(null)” returned message . Access denied </p>
<p>i have the sqlserver 2005 sp3  , not sp2</p>
<p>Can it be that the error is another cause?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.purplefrogsystems.com/blog/index.php/2008/09/dynamic-mdx-in-reporting-services/comment-page-1/#comment-3989</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 18 Nov 2009 13:05:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.purplefrogsystems.com/blog/?p=18#comment-3989</guid>
		<description>Try replacing MSOLAP with MSOLAP.3

It could be that the wrong MSOLAP provider is being used by default.</description>
		<content:encoded><![CDATA[<p>Try replacing MSOLAP with MSOLAP.3</p>
<p>It could be that the wrong MSOLAP provider is being used by default.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
