Functions
An overview of built-in functions
If
The if function allows you to create a conditional calculation. It is similar to what is available in Excel/Google Sheets.
if(condition, value_if_true, value_if_false)
If_month(num)
The if_month
function returns 1
if the time period is equal to the month number input in the formula, else 0
. E.g, you can input [1;12] into the formula.
if_month(1) will return
1
if the month is January, else0
if_month(6) will return
1
if the month is June, else0
If_quarter_month(num)
The if_quarter_month
function returns 1
if the time period is equal to the month number inside a given quarter. E.g., you can input [1;3] into the formula.
if_quarter_month(1)
will return1
if the month is January, April, July, or October, else0
.if_quarter_month(2)
will return1
if the month is February, May, August, or November, else0
.if_quarter_month(3)
will return1
if the month is March, June, September, or December, else0
.
Last updated