SI.EXPANDGLHISTORY
Overview
If you want to get accounts with non-zero balances, you can use the SI.EXPANDGLHISTORY function.
You can make an even more precise query to select accounts with a non-zero balance of a specific type for particular dimensions from the specified account range. You can also specify books and balance types that should be used for the turnover calculation.
Syntax
=SI.EXPANDGLHISTORY(ConnectionName, AccountGroup, Account, FromDate, ToDate, LocationId, Books, Dimensions, UserDefinedDimensions, IncludeChildDimensionBalances, ExpansionOrder, IncludeInactive, BalanceTypesToLookAt, BudgetId)
Arguments
Argument | Required/Optional | Description |
---|---|---|
| Required | The name of the connection, as specified in the Connection Manager |
| Optional | The name of the account group that gathers the required accounts. |
| Optional | The account code ( |
| Required | The inclusive start date or dates in YYYY-MM-DD format or an Excel range reference. |
| Required | The inclusive end date or dates in YYYY-MM-DD format or an Excel range reference. |
| Optional | One or many IDs of the Sage Intacct entities or locations. |
| Optional | You can specify a reporting or global consolidation ( If you omit the argument, |
| Optional | You can specify the dimensions and their values if you want to consider transactions with these dimensions only. There are two ways to do it:
You can specify dimension values using ranges, wildcards, and other techniques. |
| Optional | You can specify the dimensions and their values if you want to consider transactions with these dimensions only. There are two ways to do it:
You can specify dimension values using ranges, wildcards, and other techniques.
|
| Optional | If you want to exclude combinations with inactive dimensions from your result, set this argument to |
| Optional | If you want to see in your result another set of dimensions than specified in |
| Optional | If you want to get all possible combinations of dimensions specified in |
| Optional | You can specify balance types to take into account as a comma-separated string (“ |
| Optional | The budget to look at for balances. |
Output
The function returns a spill range with account codes and dimensions specified in the arguments LocationId
, Dimensions
, UserDefinedDimensions
, or ExpansionOrder
.
It does not return balances or turnovers for these account codes and dimensions.
The output is always sorted by account code first, then by LocationId
if specified, and afterwards, each of the dimensions specified in Dimensions
and UserDefinedDimensions
or by ExpansionOrder
.
For example, if you specify ExpansionOrder
as Location
, Project
, the output will be sorted by Location
, then by Project
.
Example
You want to get closing balances for the accounts with transactions related to the Tango project.
Primarily, you need to get all accounts with non-zero turnover for the Project dimension.
=SI.EXPANDGLHISTORY("Sage",,"*","2024-01-01","2024-12-31",,{"Project", "Tango"})
Or this way, if you have them on the sheet:
=SI.EXPANDGLHISTORY(B2,,"*",B5,B6,,B3:B4)

Then, you can get the closing balance for each account.
=SI.CLOSINGBALANCE($B$2,,A8,$B$5,$B$6,,,$B$3:$B$4)

See the CLOSINGBALANCE function description for details.