User1955997337 posted
Hi,
Im having an issue where I can't get my row values to total upwards when using a tablix and the 'recursive parent' option. The following should help explain what im trying to achieve:
My Dataset:
;with cols as
(
SELECT 1 colID, 'C1' col
UNION SELECT 2, 'C2'
)
, rows as
(
SELECT 1 RowID, 'R1' row, null ParentID
UNION SELECT 2, 'R2', 1
UNION SELECT 3, 'R3', 2
UNION SELECT 4, 'R4', 2
UNION SELECT 5, 'R5', 1
UNION SELECT 6, 'R6', 1
)
,data
AS
(
SELECT 3 RowID, 1 as Amount
UNION SELECT 4 RowID, 2 as Amount
)
SELECT r.RowID, r.row, c.colID, c.col, d.Amount, r.ParentID
FROM rows r
CROSS JOIN cols c
LEFT JOIN data d on d.RowID = r.RowID
In my 'RowGroup' properties I go to 'advanced' and then set 'Recursive parent' to be 'ParentID' and I've also set the padding left to be '=level()*20 & "pt"' to show the indent of the parent - child relationship
My matrix configuration and output looks like the following. Notice how R1 and R2 have no values. I want them to show '3' as this is the rolled up total of the children rows.

Thanks for all your help