Report variables are accessible using the @ prefix. For example:

dateAt(@dateParameter, {
  return M_NAME_1;
});

//or
dateInterval(@from,@to) {
  return M_NAME_1;
};
 
 

Variables can be used in formulas and in custom date/time interval definition.

Return types of different variable types:

Variable typeReturn type
Date
LocalDate
String
String
Number
Number
Filter
Array of Strings

 

Other report variables

FunctionDescription
DateTime lastDataUpdateTime()
Returns the last data update time as DateTime.
DateTime lastReportUpdateTime()
Returns the last update time of report as DateTime.

 

Next Steps