The HALFYEARVALUE function references another line item and returns the half-yearly time summary in place of the detail value.

For example, you can use the HALFYEARVALUE function to identify monthly sales that fell below average in the first half of a year.

HALFYEARVALUE(Line item)

ArgumentData typeDescription
Line itemNumber, Boolean, date, time period, list, textThe line item to reference the half-yearly time summary value for.

The HALFYEARVALUE function returns a result of the same data type as the line item you reference.

BehaviorPolarisClassic
Model Calendar settingsYou must enable Half-year Totals in the Model Calendar to use the functionYou can use the function regardless of whether Half-year Totals is enabled in the Model Calendar
In a result line item with a time scale greater than the functionNot supportedReturns 0
In line items with the Formula summary methodNot supportedSupported
  • If you do not select Half-Year Totals in Time  in the model settings bar, the HALFYEARVALUE function returns the line item's default value. For example, 0 for numeric line items.
  • The line item that contains the HALFYEARVALUE function must have a time scale of Day, Month, Quarter, or Year.
  • You cannot use the HALFYEARVALUE function in a model that has the Calendar Type set to Weeks: General.

In this example, an Income Statement module has line items on rows and Time on columns. The Cost of Goods line item has a numeric data type, and the Month below average for half year line item has a Boolean data type.

In this example, in the Summary column for Cost of Goods, Time Summary is set to Average. The formula returns a TRUE result for values that are below average for each month in the first half of the year.


Jan 21Feb 21Mar 21Apr 21May 21Jun 21H1 FY21
Cost of Goods103,00099,33298,00095,66079,00080,50092,582

Month below average for half year

Cost of Goods < HALFYEARVALUE(Cost of Goods)