ITsCalendarSettings.IsDateEnd

Syntax

IsDateEnd(Level:DimCalendarLevel): Boolean;

Properties

Level. Calendar level.

Description

The IsDateEnd property determines whether the period start date is replaced with period end date for the specified calendar level.

Comments

Available values:

Offset is available for the following levels:

Use the ITsCalendarSettings.OffsetDate property to specify the number of days, to which the data offset of period data start.

Example

This example displays a custom series calculation method. To execute the example, add links to the Dimensions, Ms, Transform system assemblies.

Function OffsetDate(Input: ITimeSeries): ITimeSeries;
Var
    pContext: ITsCalculationContext;
    i: Integer;
    pSeries: ITimeSeries;
    CalendSett: ITsCalendarSettings;
Begin
    pContext := TsCalculation.Current;
    pSeries := pContext.CreateTimeSeries;
    CalendSett := Input.CalendarSettings;
    If (CalendSett.IsDateEnd(DimCalendarLevel.Year)) And (CalendSett.OffsetDate(DimCalendarLevel.Year) = 1Then
        For i := Input.StartIndex To Input.EndIndex Do
            pSeries.Item(i) := 1 + Input.Item(i);
        End For;
    Else
        pContext.RaiseWarning("Used calendar parameters do not fit for method calculation");
    End If;
    Return pSeries;
End Function OffsetDate;

The method increases values of input series if an offset of the calendar level shifted to the year from the end of the calendar level is used.

See also:

ITsCalendarSettings