ACCOUNTSWITHHISTORY function

Created by Harry Lewis, Modified on Mon, 15 Apr 2024 at 02:12 PM by Harry Lewis

Applies to

  • GL Module
  • ERP:  Acumatica, CEGIC, Haufe x360, JAMIS Prime, MYOB Advanced

 

 

Description


The ACCOUNTSWITHHISTORY function returns a list of accounts for which there is account history during the specified period(s)

 


Velixo recommends the use of Excel 2021 or Microsoft 365 for this feature. Experimentally, Excel 2010 or higher may be used. See the Prerequisitesfor additional information.

 

TABLE OF CONTENTS



Syntax

ACCOUNTSTWITHHISTORY(Connection, LedgerOrRange, BranchOrRange, AccountOrRange, SubaccountOrRange, StartPeriodOrDate, EndPeriodOrDate, IncludeInactive, IncludeUnposted, UseMasterFinancialCalendar)

 

Parameters

The ACCOUNTSWITHHISTORY function uses the following parameters (see our article on Filtering Velixo functions):

 

Parameter

Required/Optional

Description

Connection

Required

The name of the connection as configured in the Connection Manager

LedgerOrRange

Optional

The ledger (or multiple ledgers in a delimited list) to be used in determining the list

BranchOrRange

Optional

The branch code (or range of branch codes) to be used in determining the list

AccountOrRange

Optional

The account code (or range of account codes) to be used in determining the list

SubaccountOrRange

Optional

The subaccount code (or range of subaccount codes) to be used in determining the list

StartPeriodOrDate

Required

The starting financial period, in MM-YYYY format

or

a date in a valid Excel format*

EndPeriodOrDate

Required

The ending financial period, in MM-YYYY format

or

a date in a valid Excel format*

IncludeInactive

Optional

TRUE/FALSE indicating whether or not to include inactive accounts and sub-account codes (default is TRUE)

IncludeUnposted

Optional

1 - Include posted transactions only (default)

2 - Include Unposted transactions only

3 - Include Posted and Unposted transactions

(note: Transactions with a status of "On Hold" are excluded. When Unposted transactions are included, the following two statuses are included: Balanced, Unposted)

IncludeBranches

Optional

TRUE/FALSE indicating whether or not to include the Branch IDs in the results.

UseMasterFinancial CalendarOptional

Use Acumatica's Master Financial Calendar instead of the financial calendar defined within the specific tenant associated with the connection being accessed (this can be useful for consolidation reports).


Possible values:

  • True
  • False (default)

*use of dates with Velixo Classic requires v7.1 or higher.

Examples

Example 1

 

=ACCOUNTSWITHHISTORY("demo","Actual",,,,"12-2019","12-2019",1)

Description

Lists all accounts with non-zero posted history in the Actual ledger during the twelfth financial period of the 2019 fiscal year.

 

Result

acct_hx.png

 

Example 2

 

=ACCOUNTSWITHHISTORY("demo","ACTUAL",,"19000:23000",,"12-2019","12-2019",TRUE,1,TRUE)

Description

Lists accounts 19000 through 23000 (and their associated branch) with non-zero posted history in the Actual ledger during the twelfth financial period of the 2019 fiscal year.

 

Result

Results are sorted first by branch and then by account:

 

history_pair01.png


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article