Биты и байты.

Биты и байты.

вторник, 18 февраля 2014 г.

Логические функции в Anaplan

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


AND
Enter several conditions and the ADD function tests to see if all conditions are met
Compares text values; result is 0 if they match, 1 or -1 if not matched
Shows the first non-blank text, list or date cell and uses the mapping to determine where to post the result
Conditional formula
Test to see if a date, text or list formatted cell is not blank
Tests whether a date, text or list formatted cell is blank
Tests whether 2 or more conditions are met
Tests whether condition is not true
Tests if any of 2 or more conditions is met
Tests whether a specified list item is an ancestor of the second specified list item (result is boolean formatted)
Tests whether an item is blank (the item must be date, text or list formatted and the result is boolean formatted)
Tests if a value in the source (first parameter) is the first occurrence of that value within the source (result is boolean formatted)
Tests whether an item is not blank (the item must be date, text or list formatted and the result is boolean formatted)
Shows the last non-blank text, list or date cell and uses the mapping to determine where to post the result
Looks up an amount from a source module using one or more mappings. Each mapping matches a list formatted line item or property from the source with a dimension of the target line item
Tests to see if a condition is not met (result is boolean formatted)
Tests to see if any of two or more conditions is met
Selects a specific item from one or more of the hierarchy lists
Selects a specific item from one or more of the hierarchy lists, then looks up a value based on matching that selection
Sum values based on a list formatted line item or property in the source that matches a dimension in the target
First it sums based on a list formatted line item or property in the source, then looks up a value from a source module using one or more mappings
First it selects a specific item from one or more of the hierarchy lists, then it sums values based on a list formatted line item or property in the source that matches a dimension in the target
Converts a numeric value to text



Особого внимания заслуживают функции SELECT и LOOKUP.
LOOKUP позволяет искать значения в других модулях по выбранным элементам в таблице
Формула записывается как  source[LOOKUP: mapping1, LOOKUP: mapping2, ...]
LOOKUP в целом аналогична функциям VLOOKUP и HLOOKUP в Excel

Учим математику вместе с Anaplan

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


Краткий список математических функций…

ABS
Returns the absolute value of a number
Flags where all members are populated with a checkmark (used with boolean format)
Flags where any members are populated with a checkmark (used with boolean format)
Calculates the average for a specified range of values
Returns e raised to the nth power, where e = 2.71828183
This takes at least two numeric arguments, and returns the first that is non-zero
Returns the natural logarithm of a number, based on the constant e
Returns the logarithm of a number to the specified base
Maximum value of selected line items
The maximum value for a specified member of one of the dimensions of the target. The source will have a list formatted item for this dimension
Extract a substring from a string starting at any character
Minimum of selected line items
The minimum value for a specified member of one of the dimensions of the target. The source will have a list formatted item for this dimension
Modulus: remainder after dividing a dividend by a divisor
Round to the nearest desired multiple
Converts a list item to text
Raise a value to a power
Rounds a value to a specified number of decimal places
Show the sign of a number (result = -1 if the value is negative, 1 if positive, 0 if zero)
Square root of a value

Ниже приведу наглядные примеры


Наиболее интересные функции: RANK для ранжирования значений, функция MAX выбирает максимальное значение из списка значений (x,y,z), ROUND функция округления.


Функции SUM, MIN, MAX, AVERAGE могут вычислять  свои значения на основе значений из других модулей, по выбранному диапазону, в указанном
примере вычисляется минимальное значение по полю Location.
ANY  принимает значение TRUE, если условие выполняется хотя бы для одного элемента
ALL  принимает значение TRUE, если условия выполняются для всех элементов
Всегда можно проверить расчеты с помощью опции детализация DRILL DOWN правой кнопкой мыши.

понедельник, 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
И тд.


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

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

пятница, 7 февраля 2014 г.

Анаплан в деталях. Line Item Subsets.

Есть  в Анаплане одна полезная опция которая называется Line Item Subsets если переводить на русский
получится что-то вроде подмножества линейных элементов, что не особо кажется понятным на первый взгляд.




С ее помощью возможно  набор показателей превратить в измерение и  привязать их к другим  показателям (LINE ITEMS) в новом модуле.
Хотя задачи которые можно решить с помощью этой опции гораздо больше.
Об этом и гораздо подробнее будет мой рассказ дальше поэтому усаживайтесь поудобнее)
Для тех кто любит видео и английский язык  вот ссылка.

Чтобы стало понятнее, небольшой пример


Как создать Line Item Subset и как этим пользоваться? Все элементарно, делаем по шагам, переходим в пункт Line Item Subsets, жмем кнопку вставить,
выбираем модуль из которого нужны показатели LINE ITEMS и жмем кнопку создать.

About