Database Reference
In-Depth Information
Scope(
{
[Measures].[Sales Amount],
[Measures].[Sales Amount - Fact
Reseller Sales]
}
);
Then the
Year to Date
calculation is defined. First of all, the tuple is defined that
contains the members of the calendar years and the date members together with the
Year to Date
member. Then the
Aggregate
function is used that calculates the
Year to Date
value using the
PeriodsToDate
function.
Note
More information about the
Aggregate
and
PeriodsToDate
functions can
be found in the online manual at
http://msdn.microsoft.com/en-us/library/
/*Year to Date*/
(
[Order Date].[Hierarchy Order Date
Calculations].[Year to Date],
[Order Date].[Calendar Year].[Calendar
Year].Members,
[Order Date].[Date].Members
)
= Aggregate(
{ [Order Date].[Hierarchy Order
Date Calculations].[Current Order Date] }
*
PeriodsToDate(
[Order
Date].[Hierarchy].[Calendar Year],
[Order
Search WWH ::
Custom Search