Introduction
SSRS Report Developer faces a common problem in implementing Interactive sorting on a column group in a matrix. Whenever we add interactive sorting on the column group, a sorting symbol will appear but does not make the change until we click it. This is one of the limitations of SSRS.
Now, we can implement Interactive sorting on the column group with the help of the following steps.
Step 1
Create a script as shown below to retrieve the Customer Name, Product Name, and Sales Amount.
Note. I use AdventureWorksLT2008R2 Database,
Select Top 50 D.CompanyName, C.Name,Sum(B.UnitPrice) as SalAmount
From SalesLT.SalesOrderHeader As A
inner join SalesLT.SalesOrderDetail As B on (A.SalesOrderID=B.SalesOrderID)
inner join SalesLT.Product As C on (B.ProductID= C.ProductID)
inner join SalesLT.Customer As D on (D.CustomerID=A.CustomerID)
group by
D.CompanyName,C.Name

Step 2
Now, I will develop a report which shows product-wise sales details for a single customer.
Create one data source pointing to AdventureWorksLT2008R2 and one dataset named SALES_DATA with the query written in step 1.

Report preview

Step 3
Create a Parameter Named as Sel_Cal (This parameter stores the selected column name),

Set Available value = none.
Set the default value to null, as shown below:

Create another Parameter Named Sort_by (This parameter stores the Sorting type and is named as Asc/ Desc)

Set Available value = none
Step 4. Go to Row group properties. Set the default Parameter as shown below:














Sql NewbiePosted Apr 24, 2020, 4:11 PM
I have given this =iif(Parameters!Sort_by.Value + "ASC","DESC","ASC")
Sql NewbiePosted Apr 24, 2020, 4:10 PM
I get an error Sort_by parameter is missing value .. .i followed the exact steps shown above ?
Red RedPosted Jul 31, 2018, 3:37 PM
"Cint" is kind of limited for the record, need to be careful of the float like 5.87 and 6.10
SubashPosted Oct 7, 2016, 12:38 AM
Good
Prerana TiwariPosted Jun 7, 2016, 12:16 AM
good..
Sonu ChaudharyPosted Jun 6, 2016, 9:56 AM
good one...
Ketak BhalsingPosted Jun 2, 2016, 1:36 AM
Helpful information....
Debasis SahaPosted Jun 1, 2016, 1:47 AM
Nice share..
Prerana TiwariPosted May 31, 2016, 12:18 AM
Nice article...
Raja TPosted May 31, 2016, 12:16 AM
Good, Thansk for sharing
Vignesh ManiPosted May 30, 2016, 5:02 PM
Nice
Debasis SahaPosted May 30, 2016, 1:55 PM
Good One..
Bhuvanesh MohankumarPosted May 30, 2016, 1:15 PM
Good one