In SSRS, I have written a dynamic sql in which a column is populated from a case statement. The sql query is correctly populating the column in sql result but when I use it in a tablix for creating a group and summing it by 'X' column as shown below. It does not populate at all. Rest of tablix is populating fine. Can somebody please help.
eg: The columns generated by SQL has below result. Bucket is generated by case statement. In tablix I want the first row to be grouped by Bucket and in next row sum by the x column
> **X** **Bucket**
> 0 NULL
> 1 Today
> 1 1-10
> 1 11-20
> 0 NULL
> 1 1-10
> 1 Today
> 1 20-30
Expected Result
> Today 1-10 11-20 20-30
> 2 2 1 1
Set your column grouping expression to Bucket and the detail row will simply have an expression like =SUM(Fields!X.Value)
.
You don't need any row grouping
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.