<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.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>Jorg Klein : SSRS</title><link>http://sqlblog.com/blogs/jorg_klein/archive/tags/SSRS/default.aspx</link><description>Tags: SSRS</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>SQL Azure Reporting is announced!</title><link>http://sqlblog.com/blogs/jorg_klein/archive/2010/11/04/sql-azure-reporting-is-announced.aspx</link><pubDate>Thu, 04 Nov 2010 14:54:27 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:30165</guid><dc:creator>jorg</dc:creator><slash:comments>2</slash:comments><comments>http://sqlblog.com/blogs/jorg_klein/comments/30165.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/jorg_klein/commentrss.aspx?PostID=30165</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/jorg_klein/rsscomments.aspx?PostID=30165</wfw:comment><description>&lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jorg_klein/sqlazurelogolg_36D64ECA.jpg"&gt;&lt;img style="border-right-width:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" title="sql-azure-logo-lg" border="0" alt="sql-azure-logo-lg" src="http://sqlblog.com/blogs/jorg_klein/sqlazurelogolg_thumb_63EB3B98.jpg" width="240" height="66" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;With SQL Azure Reporting Services you can use SSRS as a service on the Azure platform with all the benefits of Azure and the most features and capabilities of premise. It’s also possible to embed your reports in your Windows or Azure applications. &lt;/p&gt;  &lt;p&gt;Benefits of the Azure platform for Azure Reporting Services are:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Highly available, the cloud services platform has built-in high availability and fault tolerance &lt;/li&gt;    &lt;li&gt;Scalable, the cloud services platform automatically scales up and down &lt;/li&gt;    &lt;li&gt;Secure, your reports and SQL Azure databases are on a safe place in the cloud &lt;/li&gt;    &lt;li&gt;Cost effective, you don’t have to set up servers and you don’t have to invest in managing servers &lt;/li&gt;    &lt;li&gt;Use the same tools you use today to develop your solutions. Just develop your reports in BIDS or Report Builder and deploy to Azure &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Disadvantages are:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;SQL Azure databases are the only supported data sources in the first version, more data sources are expected to come &lt;/li&gt;    &lt;li&gt;No developer extensibility in the first version, so no custom data sources, assemblies, report items or authentication &lt;/li&gt;    &lt;li&gt;No subscriptions or scheduled delivery &lt;/li&gt;    &lt;li&gt;No Windows Authentication, only SQL Azure username/password is supported in the first version, similar to SQL Azure database. When SQL Azure database gets Windows Authentication, Azure Reporting will follow &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Despite the disadvantages of the first version I think SQL Azure Reporting Services offers great capabilities and can be extremely useful for a lot of organizations.    &lt;br /&gt;I’m really curious about the CTP, which will be available before the end of this year. You can sign up for the SQL Azure Reporting CTP &lt;a href="https://connect.microsoft.com/sqlazurectps?wa=wsignin1.0"&gt;here&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Read more about SQL Azure Reporting &lt;a href="http://www.microsoft.com/en-us/sqlazure/reporting.aspx"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=30165" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/jorg_klein/archive/tags/Azure/default.aspx">Azure</category><category domain="http://sqlblog.com/blogs/jorg_klein/archive/tags/SSRS/default.aspx">SSRS</category></item><item><title>Start / Stop SQL Server, SSIS, SSAS, SSRS and SQL Server Agent at once with a batch file</title><link>http://sqlblog.com/blogs/jorg_klein/archive/2009/01/06/start-stop-sql-server-ssis-ssas-ssrs-and-sql-server-agent-at-once-with-a-batch-file.aspx</link><pubDate>Tue, 06 Jan 2009 21:50:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:19800</guid><dc:creator>jorg</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/jorg_klein/comments/19800.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/jorg_klein/commentrss.aspx?PostID=19800</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/jorg_klein/rsscomments.aspx?PostID=19800</wfw:comment><description>&lt;P&gt;&lt;FONT size=2 face=verdana,geneva&gt;A lot of developers have SQL Server and its different services running on their PC or notebook to develop or test BI solutions. Unfortunately this slows down your system quite a lot. To speed things up when not using SQL Server, I used to stop and start each service manual quite often.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=verdana,geneva&gt;Recently I found out that it's possible to start and stop all services at once with a simple batch file. It now only takes a couple of seconds instead of a few minutes and some annoying steps.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=verdana,geneva&gt;Copy/paste the following in a .txt file and rename it to .bat to make it a batch file, execute it by double clicking the file.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=verdana,geneva&gt;START SCRIPT:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;&lt;FONT size=2 face=verdana,geneva&gt;NET START "SQL Server Agent (MsSqlServer)" &lt;BR&gt;NET START "MsSqlServer" &lt;BR&gt;NET START "MsSqlServerOlapService" &lt;BR&gt;NET START "ReportServer" &lt;BR&gt;NET START "SQL Server Integration Services"&lt;/FONT&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=verdana,geneva&gt;STOP SCRIPT:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;&lt;FONT size=2 face=verdana,geneva&gt;NET STOP "SQL Server Agent (MsSqlServer)" &lt;BR&gt;NET STOP "MsSqlServer" &lt;BR&gt;NET STOP "MsSqlServerOlapService" &lt;BR&gt;NET STOP "ReportServer" &lt;BR&gt;NET STOP "SQL Server Integration Services"&lt;/FONT&gt;&lt;/I&gt;&lt;/P&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=19800" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/jorg_klein/archive/tags/SSAS/default.aspx">SSAS</category><category domain="http://sqlblog.com/blogs/jorg_klein/archive/tags/SSIS/default.aspx">SSIS</category><category domain="http://sqlblog.com/blogs/jorg_klein/archive/tags/SSRS/default.aspx">SSRS</category></item><item><title>SSRS – Matrix that adds a new column each time 5 rows are filled with data</title><link>http://sqlblog.com/blogs/jorg_klein/archive/2008/08/06/ssrs-matrix-that-adds-a-new-column-each-time-5-rows-are-filled-with-data.aspx</link><pubDate>Wed, 06 Aug 2008 12:31:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:19928</guid><dc:creator>jorg</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/jorg_klein/comments/19928.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/jorg_klein/commentrss.aspx?PostID=19928</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/jorg_klein/rsscomments.aspx?PostID=19928</wfw:comment><description>&lt;p&gt;&lt;em&gt;What if you want a dynamic list of values in a matrix but with a maximum of 5 rows. How do you create a matrix like this? I thought this should be an easy job but I found out it was not really simple…&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;I tried to create a matrix like this for a dynamic list of countries. In this blog I will explain how you can achieve this with a few simple steps.   &lt;br /&gt; 1. You need to create an MDX(I used a SSAS datasource) query that returns the list of countries with a numbering:&lt;/p&gt;  &lt;p&gt;&lt;img src="http://sqlblogcasts.com/photos/jorg/images/4602/original.aspx" /&gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;2. Next thing you need to do is create a matrix:&lt;/p&gt;  &lt;p&gt;&lt;img src="http://sqlblogcasts.com/photos/jorg/images/4603/original.aspx" width="200" height="31" /&gt;&lt;/p&gt;  &lt;p&gt;3. Next and last thing you need to do is the following:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;i&gt;&lt;/i&gt;Use the following expression for the row group: &lt;i&gt;=(Fields!Country_Number.Value - 1) Mod 5&lt;/i&gt;&lt;/li&gt;    &lt;li&gt;&lt;i&gt;&lt;/i&gt;Use the following expression for the column group: =Floor((Fields!Country_Number.Value - 1) / 5) &lt;i&gt;&lt;/i&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Result:   &lt;br /&gt;&lt;img src="http://sqlblogcasts.com/photos/jorg/images/4604/original.aspx" /&gt;&lt;/p&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=19928" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/jorg_klein/archive/tags/SSRS/default.aspx">SSRS</category></item><item><title>SSRS – Static column headers in a Matrix</title><link>http://sqlblog.com/blogs/jorg_klein/archive/2008/07/16/ssrs-static-column-headers-in-a-matrix.aspx</link><pubDate>Wed, 16 Jul 2008 12:28:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:19925</guid><dc:creator>jorg</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/jorg_klein/comments/19925.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/jorg_klein/commentrss.aspx?PostID=19925</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/jorg_klein/rsscomments.aspx?PostID=19925</wfw:comment><description>&lt;p&gt;How do you create a static column header centered above your dynamic columns? One way to try achieving this is to place a textbox above your dynamic columns. One thing is for sure, the textbox will never be on the perfect centered location and what if the number of dynamic columns grow or shrink? &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Thing you need to do is to create a static column group. You do this by adding a new column group to the matrix and give it a static expression, for example: &lt;em&gt;=”static”&lt;/em&gt;    &lt;br /&gt;Now make it the top group by clicking Up for the static column group on the Groups tab of the matrix’s properties. You can also achieve this by just dragging the column group up in the layout view.&lt;/p&gt;  &lt;p&gt;&lt;img src="http://sqlblogcasts.com/photos/jorg/images/5466/original.aspx" /&gt;&lt;/p&gt;  &lt;p&gt;The result, a centered and perfect aligned column header with the text “YTD” above some dynamic columns containing years:&lt;/p&gt;  &lt;p&gt;&lt;img src="http://sqlblogcasts.com/photos/jorg/images/5469/original.aspx" /&gt;&lt;/p&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=19925" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/jorg_klein/archive/tags/SSRS/default.aspx">SSRS</category></item><item><title>SSRS - Custom expressions for subtotals in a matrix</title><link>http://sqlblog.com/blogs/jorg_klein/archive/2007/12/06/ssrs-custom-expressions-for-subtotals-in-a-matrix.aspx</link><pubDate>Thu, 06 Dec 2007 21:10:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:19792</guid><dc:creator>jorg</dc:creator><slash:comments>4</slash:comments><comments>http://sqlblog.com/blogs/jorg_klein/comments/19792.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/jorg_klein/commentrss.aspx?PostID=19792</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/jorg_klein/rsscomments.aspx?PostID=19792</wfw:comment><description>&lt;P style="MARGIN:0in 0in 10pt;" class=MsoNormal&gt;&lt;FONT face=verdana,geneva&gt;&lt;I&gt;&lt;SPAN&gt;If you want custom expressions for your subtotals in a matrix, for example to calculate an average &lt;/SPAN&gt;&lt;/I&gt;&lt;I&gt;&lt;SPAN&gt;instead of the default sum, you need to use the InScope() and Iif() functions in your data field…&lt;/SPAN&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN:0in 0in 10pt;" class=MsoNormal&gt;&lt;I&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;When you create a matrix with SSRS you get the following default groups: &lt;BR&gt;A row group named:&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;matrix1_RowGroup1 &lt;BR&gt;A column group named: &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;matrix1_ColumnGroup1&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN:0in 0in 10pt;" class=MsoNormal&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;With the normal functionalities you can’t change much on the behavior of your subtotals in your matrix. When you create a subtotal it calculates a subtotal and that’s about it ;-)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN:0in 0in 10pt;" class=MsoNormal&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;If you use the following expression in the data field of your matrix you can take full control on the behavior of all your subtotals:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class=MsoNormal&gt;&lt;I&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;=Iif(InScope(&lt;SPAN style="COLOR:maroon;"&gt;"matrix1_ColumnGroup1"&lt;/SPAN&gt;), &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;TEXT-INDENT:35.4pt;MARGIN:0in 0in 0pt;" class=MsoNormal&gt;&lt;I&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;Iif(InScope(&lt;SPAN style="COLOR:maroon;"&gt;"matrix1_RowGroup1"&lt;/SPAN&gt;), &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class=MsoNormal&gt;&lt;I&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:maroon;"&gt;"In Cell"&lt;/SPAN&gt;, &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class=MsoNormal&gt;&lt;I&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:maroon;"&gt;"In Subtotal of RowGroup1"&lt;/SPAN&gt;), &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class=MsoNormal&gt;&lt;I&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Iif(InScope(&lt;SPAN style="COLOR:maroon;"&gt;"matrix1_RowGroup1"&lt;/SPAN&gt;), &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class=MsoNormal&gt;&lt;I&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:maroon;"&gt;"In Subtotal of ColumnGroup1"&lt;/SPAN&gt;, &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class=MsoNormal&gt;&lt;I&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="COLOR:maroon;"&gt;"In Subtotal of entire matrix"&lt;/SPAN&gt;))&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY:'Courier New';FONT-SIZE:10pt;"&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY:'Courier New';FONT-SIZE:10pt;"&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class=MsoNormal&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;Replace &lt;I&gt;&lt;SPAN style="COLOR:maroon;"&gt;"In Cell"&lt;/SPAN&gt;&lt;/I&gt;, &lt;I&gt;&lt;SPAN style="COLOR:maroon;"&gt;"In Subtotal of RowGroup1"&lt;/SPAN&gt;&lt;/I&gt;, &lt;I&gt;&lt;SPAN style="COLOR:maroon;"&gt;"In Subtotal of ColumnGroup1"&lt;/SPAN&gt;&lt;/I&gt; and/or &lt;I&gt;&lt;SPAN style="COLOR:maroon;"&gt;"In Subtotal of entire matrix"&lt;/SPAN&gt;&lt;/I&gt; with the expressions or fields that you want.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR&gt;&lt;FONT face=verdana,geneva&gt;For example, if you want to calculate an average: &lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/SPAN&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0in 0in 0pt;" class=MsoNormal&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;Replace &lt;I&gt;&lt;SPAN style="COLOR:maroon;"&gt;"In Cell"&lt;/SPAN&gt;&lt;/I&gt; with &lt;I&gt;Sum(Fields!Amount.Value)&lt;/I&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN:0in 0in 10pt;" class=MsoNormal&gt;&lt;SPAN&gt;&lt;FONT face=verdana,geneva&gt;Replace &lt;I&gt;&lt;SPAN style="COLOR:maroon;"&gt;"In Subtotal of RowGroup1"&lt;/SPAN&gt;&lt;/I&gt; with &lt;I&gt;Avg(Fields!Amount.Value)&lt;/I&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN:0in 0in 10pt;" class=MsoNormal&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;FONT face=verdana,geneva&gt;More information about the &lt;I&gt;InScope() &lt;/I&gt;function on &lt;/FONT&gt;&lt;A title=MSDN href="http://msdn2.microsoft.com/en-us/library/aa255807%28SQL.80%29.aspx" target=_blank&gt;&lt;FONT face=verdana,geneva&gt;MSDN&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=19792" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/jorg_klein/archive/tags/SSRS/default.aspx">SSRS</category></item><item><title>SSRS – Invalid row heights, BUG?</title><link>http://sqlblog.com/blogs/jorg_klein/archive/2007/10/26/ssrs-invalid-row-heights-bug.aspx</link><pubDate>Fri, 26 Oct 2007 12:38:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:19934</guid><dc:creator>jorg</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/jorg_klein/comments/19934.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/jorg_klein/commentrss.aspx?PostID=19934</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/jorg_klein/rsscomments.aspx?PostID=19934</wfw:comment><description>&lt;p&gt;&lt;i&gt;Because I got a few reactions regarding the screenshots below (people thought something was &lt;/i&gt;&lt;i&gt;wrong with the screenshots) please note that :&lt;/i&gt;&lt;/p&gt;  &lt;p&gt;&lt;i&gt;Some of the screenshots below look awful because I selected all the text in the matrices with CTRL-A. I did this to make the differences in row heights clear to see. I also made the numbers in the matrix unreadable.&lt;/i&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;     &lt;br /&gt;&lt;/b&gt;&lt;b&gt;Problem:&lt;/b&gt;    &lt;br /&gt;As you can see in the screenshot below the row height of rows that contain empty cells differ from the rows where all cells contain data. Screenshot below is taken from IE(with all rows selected), when I run the report in BIDS preview it renders fine!&lt;/p&gt;  &lt;p&gt;&lt;img src="http://sqlblogcasts.com/photos/jorg/images/4339/original.aspx" width="642" height="236" /&gt;&lt;/p&gt;  &lt;p&gt;I think this is strange if you look at the properties of the rows during the problems:&lt;/p&gt;  &lt;p&gt;&lt;img src="http://sqlblogcasts.com/photos/jorg/images/4340/original.aspx" /&gt;&lt;/p&gt;  &lt;p&gt;Can Grow and CanShrink are set to False so you won’t expect cells heights to grow or shrink. It seems the problem is that SSRS gives empty cells a row height of 0,25(the default) and I use a row height of 0,20. Result is that everything goes fine until there are rows with empty cells. What’s also very strange is that when I made a print of the report, the row heights were all fine!!&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Solution:     &lt;br /&gt;&lt;/b&gt;When I faced this problem I just tried a couple of things and it seemed the padding property gave an outcome. When I run the report with the following properties for the rows it renders fine and there are no problems:&lt;/p&gt;  &lt;p&gt;&lt;img src="http://sqlblogcasts.com/photos/jorg/images/4342/original.aspx" /&gt;&lt;/p&gt;  &lt;p&gt;As you can see in the screenshot from IE below, the row heights are fine now!&lt;/p&gt;  &lt;p&gt;&lt;img src="http://sqlblogcasts.com/photos/jorg/images/4341/original.aspx" width="659" height="232" /&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Conclusion:     &lt;br /&gt;&lt;/b&gt;It seems that when you     &lt;br /&gt;a) have a matrix with cells that can be empty     &lt;br /&gt;b) you use a row height that’s smaller then the default of 0,25     &lt;br /&gt;you need to use the following properties for your rows in the matrix to prevent problems:&lt;/p&gt;  &lt;p&gt;· Padding: 2,2,0,0   &lt;br /&gt;· VerticalAlign: Middle    &lt;br /&gt;· CanGrow: False    &lt;br /&gt;· CanShrink: False&lt;/p&gt;  &lt;p&gt;What makes this strange to me is that a print of the report and preview of the report in BIDS did not show differences in row heights but Internet Explorer did. This problem occurred with IE 7 and a SQL Server 2005 installation with SP and updates installed.&lt;/p&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=19934" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/jorg_klein/archive/tags/SSRS/default.aspx">SSRS</category></item></channel></rss>