<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Reporting Services drill-through for a matrix report</title><link>http://blogs.technet.com/b/andrew/archive/2008/07/31/reporting-services-drill-through-for-a-matrix-report.aspx</link><description>One of the great things about working in Microsoft is the huge e-mail threads with where we share problems and resolve them, as you get to learn loads of tips and tricks. One of the nightmares of working at Microsoft is the huge e-mail threads with where</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Reporting Services drill-through for a matrix report</title><link>http://blogs.technet.com/b/andrew/archive/2008/07/31/reporting-services-drill-through-for-a-matrix-report.aspx#3197573</link><pubDate>Thu, 05 Feb 2009 18:43:20 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3197573</guid><dc:creator>Al</dc:creator><description>&lt;p&gt;Last week we found the solution to the problem I mentioned above. It was a known fault which was fixed in SP2 cumulative pack 5. We have just updated the server to the new SP3, and the report now works as we want it to.&lt;/p&gt;
&lt;p&gt;See &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/945910/"&gt;http://support.microsoft.com/kb/945910/&lt;/a&gt; for details&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3197573" width="1" height="1"&gt;</description></item><item><title>re: Reporting Services drill-through for a matrix report</title><link>http://blogs.technet.com/b/andrew/archive/2008/07/31/reporting-services-drill-through-for-a-matrix-report.aspx#3157086</link><pubDate>Thu, 20 Nov 2008 20:17:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3157086</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;How would this example look if you had both quarters and months?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3157086" width="1" height="1"&gt;</description></item><item><title>re: Reporting Services drill-through for a matrix report</title><link>http://blogs.technet.com/b/andrew/archive/2008/07/31/reporting-services-drill-through-for-a-matrix-report.aspx#3119839</link><pubDate>Fri, 05 Sep 2008 16:24:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3119839</guid><dc:creator>Al</dc:creator><description>&lt;p&gt;Hi. Thanks for this blog. I have nearly got this working on one of our matrix reports apart from one thing. I'd be grateful if you could help.&lt;/p&gt;
&lt;p&gt;My matrix looks something like this:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Error1 &amp;nbsp;Error2 Error3 &amp;nbsp;Totals:&lt;/p&gt;
&lt;p&gt;Provider1 Prog1 &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Prog2 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Prog3 &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Totals: &amp;nbsp; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; &amp;nbsp;12&lt;/p&gt;
&lt;p&gt;Provider2 etc.&lt;/p&gt;
&lt;p&gt;The matrix and detail reports share the same stored procedure, and both have parameters for provider and contract month. I have added parameters and put filters on the detail report for programme and errortype to restrict the results based on the selected row and column in the matrix. As specified above, I have told these 2 new parameters to allow NULL values.&lt;/p&gt;
&lt;p&gt;My matrix report links the parameters as follows: &lt;/p&gt;
&lt;p&gt;&amp;quot;Provider=Fields!Provider.Value&amp;quot; &lt;/p&gt;
&lt;p&gt;&amp;quot;ContractMonth=Fields!ContractMonth.Value&amp;quot;&lt;/p&gt;
&lt;p&gt;(the provider and contract month must be specified)&lt;/p&gt;
&lt;p&gt;&amp;quot;Programme=IIF(InScope(&amp;quot;Grp_Programme&amp;quot;),Fields!Programme.Value,Nothing)&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;ErrorType=IIF(InScope(&amp;quot;Grp_ErrorType&amp;quot;),Fields!ErrorType.Value,Nothing)&amp;quot;&lt;/p&gt;
&lt;p&gt;The filters on the detail report specify &amp;quot;Fields!Programme.Value=IIF(Parameters!Programme.Value=Nothing,Fields!Programme.Value,Parameters!Programme.Value)&amp;quot; and similarly for ErrorType. &lt;/p&gt;
&lt;p&gt;I can drill-through to the detail table report from the matrix detail cells and the row subtotal (5,2,5 above) cells. However, if I try to drill-through on any of the column subtotal cells (7,1,4 above), the detail report returns the entire data set, which I would only expect after clicking the bottom-right corner cell (12 above)&lt;/p&gt;
&lt;p&gt;I have put textboxes onto the detail report to see what is being passed from the matrix report. &amp;quot;IIF(Parameters!Programme.Value=Nothing,&amp;quot;True&amp;quot;,&amp;quot;False&amp;quot;)&amp;quot; always returns True, so the problem seems to be getting the parameter out of the matrix report rather than anything on the detail report.&lt;/p&gt;
&lt;p&gt;I expect that the problem is due to the Programme group being a second-level group but can't think why.&lt;/p&gt;
&lt;p&gt;If you have any suggestions, I would be grateful.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3119839" width="1" height="1"&gt;</description></item><item><title>re: Reporting Services drill-through for a matrix report</title><link>http://blogs.technet.com/b/andrew/archive/2008/07/31/reporting-services-drill-through-for-a-matrix-report.aspx#3117242</link><pubDate>Wed, 03 Sep 2008 20:09:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3117242</guid><dc:creator>YAK</dc:creator><description>&lt;p&gt;&amp;gt;Dawn said: &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;gt;How would you &amp;quot;write the dataset query accordingly in your drillthrough target report&amp;quot;&lt;/p&gt;
&lt;p&gt;Just include in your query in the where part something like that :&lt;/p&gt;
&lt;p&gt;SELECT ...&lt;/p&gt;
&lt;p&gt;FROM Table&lt;/p&gt;
&lt;p&gt;WHERE (@Quarter IS NULL) /* NULL value means ALL the quarter */&lt;/p&gt;
&lt;p&gt;OR Table.Quarter = @Quarter /* Standard Quarter restriction */&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3117242" width="1" height="1"&gt;</description></item><item><title>re: Reporting Services drill-through for a matrix report</title><link>http://blogs.technet.com/b/andrew/archive/2008/07/31/reporting-services-drill-through-for-a-matrix-report.aspx#3106002</link><pubDate>Thu, 14 Aug 2008 23:57:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3106002</guid><dc:creator>Dawn</dc:creator><description>&lt;p&gt;How would you &amp;quot;write the dataset query accordingly in your drillthrough target report&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3106002" width="1" height="1"&gt;</description></item></channel></rss>