﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Reporting Services / Reporting Services 2005 Development  / grouping based on parameter selected / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 08:41:35 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: grouping based on parameter selected</title><link>http://www.sqlservercentral.com/Forums/Topic993403-1063-1.aspx</link><description>Thanks Steve, I think that will come in very helpful for me in the future too...</description><pubDate>Mon, 27 Sep 2010 15:56:28 GMT</pubDate><dc:creator>UMG Developer</dc:creator></item><item><title>RE: grouping based on parameter selected</title><link>http://www.sqlservercentral.com/Forums/Topic993403-1063-1.aspx</link><description>I do this a lot in my reports.  You can even tailor the layout of your headers and Detail areas using the same expression.Enter this in the grouping expression box.If you just have the two Choices:=iif(parameters!Parametername.value='State', Fields!State.Value,Fields!Company.Value)If you jave more than two=iif(parameters!Parametername.value='State', Fields!State.Value,Fields!Company.Value)     iif(parameters!Parametername.value='Company', Fields!Company.Value,         Etc.      )   )When I do something like this I also add a extra Header row and details row for each choince i the drop down.Then I Set the Visibility I useing the same expression=iif(parameters!Parametername.value='State', False,True)  For the State Header and Details row=iif(parameters!Parametername.value='State', False,True)  For the Company Header and Detail RowThis gives  you a lot of control over what gets displayed when either group is selected</description><pubDate>Mon, 27 Sep 2010 06:07:26 GMT</pubDate><dc:creator>Steven.Howes</dc:creator></item><item><title>RE: grouping based on parameter selected</title><link>http://www.sqlservercentral.com/Forums/Topic993403-1063-1.aspx</link><description>Hi Pravin,Do you want to perform grouping in sql query or else in your report layout?</description><pubDate>Mon, 27 Sep 2010 03:05:15 GMT</pubDate><dc:creator>peace.cog</dc:creator></item><item><title>grouping based on parameter selected</title><link>http://www.sqlservercentral.com/Forums/Topic993403-1063-1.aspx</link><description>Hi,I'm developing a SSRS 2005 report, where grouping depends on the value selected as the parameterEx: Parameter dropdown has 2 values i.e., 1) state  and 2) company1) If i select state, then the grouping should be as follows    state and then company2) If i select company, then the grouping should be as follows    Company and then state can we dynamically change grouping depending on the parameter value selected ?ThanksPravin</description><pubDate>Sun, 26 Sep 2010 18:09:36 GMT</pubDate><dc:creator>sql.pravin</dc:creator></item></channel></rss>