eo
MIS
- Apr 3, 2003
- 809
Hi,
SSAS 2008.
SQL Server 2008 Standard Edition
I have two measure types in my cube, standard sum aggregated measures (which are baased over deltas/ changes from one day to another), and semi additive.
The semi-additive have been implemented succesfully (using MDX calc measures) and so has the deltas (normal sum aggregation - no MDX). The problem is that:
when the two meaasures are viewed by a dimension member the semi-additive and the sum(delta) display as expected, but when an As At Date dimension member is added, then the semi-additive shows the value as at that date as expected, but the delta now only shows the delta recorded at that As At Date, and not the sum from the beginning of time untill that As At Date.
I will show by example. Example source data:
If the cube is viewed by slicing both Delta and SemiAdditive by AccountNumber only, then no problem, I get the following:
but when the AsAtDate component is added, then te DeltaValue no longer makes sense
...as opposed to what I am aiming for...
Is there a way the Delta can be implemented using MDX calc measure to work with when the AsAtDate is used and when it is not used (i.e. then for all dates)
EO
Hertfordshire, England
SSAS 2008.
SQL Server 2008 Standard Edition
I have two measure types in my cube, standard sum aggregated measures (which are baased over deltas/ changes from one day to another), and semi additive.
The semi-additive have been implemented succesfully (using MDX calc measures) and so has the deltas (normal sum aggregation - no MDX). The problem is that:
when the two meaasures are viewed by a dimension member the semi-additive and the sum(delta) display as expected, but when an As At Date dimension member is added, then the semi-additive shows the value as at that date as expected, but the delta now only shows the delta recorded at that As At Date, and not the sum from the beginning of time untill that As At Date.
I will show by example. Example source data:
Code:
AsAtDate AccountNumber DeltaValue SemiAdditive
01.01.2010 100A 100,000 45,000
02.01.2010 100A 10,000 46,000
03.01.2010 100A 15,000 46,000
04.01.2010 100A -5,000 48,000
If the cube is viewed by slicing both Delta and SemiAdditive by AccountNumber only, then no problem, I get the following:
Code:
AccountNumber DeltaValue SemiAdditive
100A 120,000 48,000
but when the AsAtDate component is added, then te DeltaValue no longer makes sense
Code:
AsAtDate AccountNumber DeltaValue SemiAdditive
04.01.2010 100A -5,000 48,000
...as opposed to what I am aiming for...
Code:
AsAtDate AccountNumber DeltaValue SemiAdditive
04.01.2010 100A 120,000 48,000
Is there a way the Delta can be implemented using MDX calc measure to work with when the AsAtDate is used and when it is not used (i.e. then for all dates)
EO
Hertfordshire, England