Dear Experts
I have a problem in ssrs reporting..
I have a data like this
BILLNO AMT
==========
123 1000.00
1223 2000.00
I need to show in table or list in following way
123: 1000 1223:2000.00
like this...i tried by applying column and row grouping on two unique keys but it didnt work for me
please help
Loading

Tuhin PaulPosted Mar 24, 2025, 6:23 PM
Tuhin PaulPosted Mar 24, 2025, 6:22 PM
Step 3: Verify the Dataset
Ensure that your dataset (
YourDatasetName) contains the required fields (BILLNOandAMT). If the dataset is grouped or filtered, make sure the grouping does not exclude any rows.Step 4: Preview the Report
Run the report, and the concatenated result will appear in the textbox. For example:
Tuhin PaulPosted Mar 24, 2025, 6:20 PM
To display the data in the desired format (
BILLNO: AMTconcatenated into a single row), you can use SSRS expressions to concatenate the values and display them in a single cell.Step 1: Understand the Desired Output
You want to display the
BILLNOandAMTfields concatenated into a single string, separated by spaces, like this:This requires concatenating all rows of the dataset into a single string.
Step 2: Use SSRS Expressions for Concatenation
SSRS does not natively support concatenating multiple rows into a single cell using grouping or tablix controls. However, you can achieve this using a custom expression with the
Joinfunction.Here’s how:
Add a Textbox to Your Report:
Use the
JoinFunction:BILLNOandAMTfields for all rows in the dataset:Explanation:
LookupSet: This function retrieves all values from the dataset that match a condition. In this case, we're retrieving allBILLNOandAMTvalues.Fields!BILLNO.Value & ": " & Format(Fields!AMT.Value, "N2"): Concatenates theBILLNOandAMTfields, formatting theAMTvalue as a number with two decimal places."YourDatasetName": Replace this with the name of your dataset." ": The delimiter used to separate concatenated values (in this case, four spaces).Amira BedhiafiPosted Mar 24, 2025, 2:36 PM
You’ll need to dynamically pivot rows into columns, which SSRS does not support natively in a tabular report unless you pre-shape the data using SQL or custom code.
If the number of BILLNO values is small and known in advance, you can pivot the data in SQL:
Then use the result in a Table or Matrix in SSRS.
Or, if you don’t know how many BILLNO there are, but you're okay showing them all in one row or column, use SQL aggregation to create a single text field:
SQL Server 2017+ (STRING_AGG):
Older SQL Server versions:
Then display BillSummary in a Textbox in SSRS.