SSRS Combine multiple group instances SQL Server Reporting Services-Grouping -
i have following sql server report:
bananas
--- green --- 5
--- yellow --- 10
--- brown --- 1
apples
--- red --- 5
--- gold --- 7
--- green --- 2
carrots
--- orange --- 4
--- brown --- 8
potatoes
--- white --- 3
--- brown --- 11
how go this:
fruit
--- green ----7
--- yellow ---10
--- brown------1
--- red--- ----5
--- gold - - - 7
vegetables
---orange---4
---brown---19
---white---3
do need create parent group(in tablix) group expression such =iif([fields!fruittype].value "bananas" "apples", "fruit", "vegetables")?
so... creating the input data
select type = 'bananas' ,color = 'green' ,total= 5 union select 'bananas' , 'yellow', 10 union select 'bananas' , 'brown' , 1 union select 'apples' , 'red' , 5 union select 'apples' , 'gold' , 7 union select 'apples' , 'green' , 2 union select 'carrots' , 'orange', 4 union select 'carrots' , 'brown' , 8 union select 'potatoes' , 'white' , 3 union select 'potatoes' , 'brown' , 11
rather creating group statement, create derived column in resultset (or in tsql?)
then create group...
then preview...
Comments
Post a Comment