Биты и байты.

Биты и байты.

понедельник, 17 февраля 2014 г.

Путешествие во времени с Anaplan

Для путешествия по временному измерению, расчета промежуточных и общих итогов очень полезно иметь под рукой функции по работе с датой и временем.
Ниже приведу полный список функций из документации по Anaplan.


Add a specified number of months to a date
Add a specified number of years to a date
Cumulative sum from the first period of the timescale
The end date of the 'current period'
The start date of the 'current period'
Converts numbers yyyy, mm and dd to a date. Date format depends on your locale
DAY
Converts a date to a day in number format. Date format depends on your locale
Number of days in the current period
Number of days in a specified calendar month
Number of days in a specified year where year is formatted as a four digit number, YYYY
Calculates the difference in a value in the current period vs previous period
END
Result is the last date in the period
Tests whether a date falls within the period specified on the time dimension (result is Boolean-formatted)
LAG
Take the value from n periods in the past. If this is before the start of the timescale, use z instead as the overflow value.
Take the value from n periods in the future. If this is beyond the end of the timescale, use z instead as the overflow value
Converts a date to a month in number format
Sum the values for the current month (used with daily or weekly timescales)
Returns a value from the next period
Returns a value from a specified number of periods in advance
Post a value to a specified number of periods in the future
Takes a value from the previous period
Allocates a value over the next few periods based on a table containing % current period, % next period, % pd+2 etc.
Sums the values for the current quarter
Spreads a value evenly over a number of periods
Result is the first date in the period
Sums the current week
Converts a date to a year in number format
Sum the current financial year

Для наглядного понимания приведу примеры.


По названию функции можно легко определить ее преназначение, YearValue  - это годовой итог, QuarterValue – квартальный итог,
Previous – предыдущее значение, Next  - следующее значение, Cumulate нарастающий итог

Profile – рассчитывает значения на основе таблицы распределения на n месяцев, в зависимости от указанных процентов
Lead – берет значение из будущего значения на указанное число шагов, если значение выходит за временную шкалу берется значение Z
И тд.


На этом все.. И по традиции анекдот)

Запись в школьном дневнике: ВАШ сын единственный, кто взял в поход водку… Спасибо ВАМ за сына!!!

About