So I've defined a CustomRollupColumn on the parent with the 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] is the parent of [1] and [2].
It works really well but When I want to aggregate on another dimension I've a big issues.
Just having the following table: (ID, Type, Date, Value)
When I browse the cube I've the right results except for the total over dates wher for Type 3 I've 490 where I hoped to have 1997 (201+1306+87+430). But unfortunatelly SASS doesn't sum the two first columns which are calculated by the CustomRollupFormula.
Any idea to solve this issue is really welcome...
Seddryck wrote:
I've a parent-child relation where I want the cell value will be the sum of children but if the cell value of the parent is given don't operate this calculation.
Using the above logic I would expect your example to add up to 490 and I can't follow where the values you expect to add up to 1997 are coming from. Maybe you could try re wording your issue. Is it that you want the values from the children added to the value in the parent if it is present?
|||This is the table I've with "Time" on columns and "Type" on rows12/12 13/12 14/12 15/12 Total
#1 - 306 9 401 716
#2 201 1000 - 402 1603
#3(1+2) 201 1306 87 403 490
As
you see the row #3 is calculated (sum of rows#1 and #2) only in the
case the value is not in my fact table (Case for columns 12/12 and
13/12). If the value is provided by my fact table I use it. To
implement this I've used the CustomRollup and the formula displayed in
first post.
Everything is working as I hoped except the Total of
row #3. The Total of row #3 only used value of columns 14/12 and 15/12
but I want to use also calculated values of columns 12/12 and 13/12 so
I wanted to have a total of 201+1306+87+403 and not a total of 87+403
Thx for your reply
No comments:
Post a Comment