CustomRollupColumn and aggregates


i've parent-child relation want cell value sum of children if cell value of parent given don't operate calculation.

so i've defined customrollupcolumn on parent forumla:

iif(isempty(([typehierarchy].[type].[3],[measures].[value])),([typehierarchy].[type].[1],[measures].[value])+([typehierarchy].[type].[2],[measures].[value]),([typehierarchy].[type].[3],[measures].[value]))

where [typehierarchy].[type].[3] parent of [1] , [2].

it works when want aggregate on dimension i've big issues.

just having following table: (id, type, date, value)

1113/12/2006 0:00:00101
2212/12/2006 0:00:00201
3113/12/2006 0:00:00102
4113/12/2006 0:00:00103
6314/12/2006 0:00:0087
7114/12/2006 0:00:009
8213/12/2006 0:00:001000
9115/12/2006 0:00:00401
10215/12/2006 0:00:00402
11315/12/2006 0:00:00403

when browse cube i've right results except total on dates wher type 3 i've 490 hoped have 1997 (201+1306+87+430). unfortunatelly sass doesn't sum 2 first columns calculated customrollupformula.

any idea solve issue welcome...

 seddryck wrote:
i've parent-child relation want cell value sum of children if cell value of parent given don't operate calculation.

using above logic expect example add 490 , can't follow values expect add 1997 coming from. maybe try re wording issue. want values children added value in parent if present?



SQL Server  >  SQL Server Analysis Services



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........