Overview
The BC.CREDITS function lets you retrieve the total credit amount of transactions affecting specified GL accounts between two dates.
This function requires the Velixo for Business Central extension to be installed in your Business Central environment.
Business Central creates year-end closing entries when you close a fiscal year. These entries are excluded from the result by default. Set IncludeClosingEntries to TRUE to include them, for example to report on the closing activity itself, or to calculate retained earnings the way the Business Central UI does.
Syntax
=BC.CREDITS(
ConnectionName,
Account,
AccountCategory,
AccountSubcategory,
FromDate,
ToDate,
Dimensions,
UseReportingCurrency,
IncludeClosingEntries
)
Arguments
|
Argument |
Required/Optional |
Description |
|
|
Optional |
Provide one of the following values:
OR Omit the argument to return results for all compatible connections with default aggregation settings. |
|
|
Optional if |
The code of the general ledger account, a spill range, or a cell range containing account codes. For example, Supports Velixo range expressions for specifying multiple values. |
|
|
Optional if |
One or more account category names, visible in the Business Central Chart of Accounts. The following values are accepted: Supports Velixo range expressions for specifying multiple values. |
|
|
Optional if |
One or more account subcategory names. Use the BC.EXPANDACCOUNTSUBCATEGORYRANGE function to retrieve available subaccount names. Supports Velixo range expressions for specifying multiple values. |
|
|
Required |
The inclusive start date in YYYY-MM-DD format (or a reference to a cell in a valid Excel date format) |
|
|
Required |
The inclusive end date in YYYY-MM-DD format (or a reference to a cell in a valid Excel date format) |
|
|
Optional |
A two-column Excel range where the first column contains the name of a dimension and the second column contains a semicolon-separated list of values for that dimension You can specify dimension values using ranges, wildcards, and other techniques. See the Using Dimensions article for more details. |
|
|
Optional |
When a reporting currency is configured for your organization, set this argument to Accepted values: Default value: |
|
|
Optional |
If Accepted values: Default value: Specifying this argument requires the Velixo for Business Central extension version 2026.7 or later. This applies to |
Example
=BC.CREDITS(
"BC",
,
"assets",
,
"2023-12-31",
"2023-12-31"
)
Description:
Returns the total of the credits applied to all accounts in the category Assets during December 2023, within the connection named BC.