Breadcrumbs

SI.EXPANDPROJECTESTIMATERANGE

Overview

The SI.EXPANDPROJECTESTIMATERANGE function returns an array containing one or more Sage Intacct Project Estimate IDs (based on the specified projects and range).

Syntax

=SI.EXPANDPROJECTESTIMATERANGE(
    ConnectionName,
    Project,
    EstimateId,
    Status,
    IsPrimary,
    EstimateType
)

Arguments

The SI. EXPANDPROJECTESTIMATE RANGE function uses the following arguments (See Filtering Velixo Functions for how to include multiple values in a argument):

Argument

Required/ Optional

Description

ConnectionName

Optional

Provide one of the following values:

OR

Omit the argument to return results for all compatible connections with default aggregation settings.

Project

Optional

A range filter specifying the Project IDs to be used to determine the Estimate IDs to be displayed.

EstimateId

Optional

A range filter specifying the IDs of the Estimates to be displayed.

Status

Optional

An indicator of which status(es) of project to include in the results.

"A" - active

"I" - inactive

"F" - finalized

A combination may be used. The default is "AIF" to include all projects.

IsPrimary

Optional

TRUE
or
FALSE (default)

Setting this argument to TRUE allows us to filter the Primary estimate when reporting on estimate forecasts (there can only be one primary estimate, and only the primary estimate includes original and change requests)

EstimateType

Optional

Valid options (as defined in Sage Intacct):

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/J5fgvLupM12DbydI13OpRFIAxvhqm54wvg.png


Setting this argument allows us only to include or filter out non-forecast estimates when reporting an estimate amount over time.

Examples

For examples 1 through 3, we are assuming the following configuration within Sage Intacct:

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/TOkYC15uTpgurV_-6dpsTLKk4u-tbl33IQ.png
https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/i_W62JibslMg8XsDYSflpY4wQYUqdpCaOw.png
https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/wPbBI_Eqwve7GgkUnnk1utRO0atkumAyVQ.png

Example 1 - all Estimate IDs for a specific project

=SI.EXPANDPROJECTETIMATERANGE(
    "Sage",
    "20-001"
)


Description
Returns all Estimate IDs used in the 20-001 project.

Results

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/F1uIl5X4CcAqG3nr0LDci2Jl6ggGNVV6HQ.png

(the ProjectRange argument has been represented by a cell reference)


Example 2 - all Estimate IDs for projects starting with the same name

=SI.EXPANDPROJECTESTIMATERANGE(
    "Sage",
    "HAWK???"
)


Description
Returns all Estimate IDs for projects whose ID begins with HAWK

Results

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/KJ0WqmeJbCV0gfX5ySxSQTP72KdejFQ4eg.png


Example 3 - all Estimate IDs for multiple projects

=SI.EXPANDPROJECTESTIMATERANGE(
    "Sage",
    "20-001;20-004"
)


Description
Returns all Estimate IDs used in the two specified projects.

Results

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/J0dFSgswenbeOa7ymUxJzmDQBTyxiBPPDQ.png


Example 4 - all Estimate IDs with a specific status

Assuming the following configuration within Sage Intacct:

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/iQ3Ut7dWedoo-LSdZSDm-PGG1LbLSkFMhg.png
=SI.EXPANDPROJECTESTIMATERANGE(
    "Sage",
    ,
    "FI"
)


Description
Returns all Estimate IDs with a status of either Finalized or Inactive

Results

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/9A_wpryOejBK1ihccvdb8NyZpfBKyGTpUw.png


For examples 5 and 6, we are assuming the following estimates for Project Test-01:

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/lYYxltW542AZsMaBc9KmiYXjNPJiyC3I8A.png


Example 5 - exclude Draft estimates from the results

=SI.EXPANDPROJECTESTIMATERANGE(
    Connection,
    "Test-01",
    ,
    ,
    ,
    "*;-draft"
)


Description
Returns the non-draft Estimate IDs for project Test-01.

Results

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/7cahv7fRlvApL156mZ2QATGMmAsMeimqhg.png

(the ProjectRange argument has been represented by a cell reference)


If an estimate is not assigned an Estimate Type, it will be filtered out when Draft types are filtered out.


Example 6 - include only the Primary estimate for a project

=SI.EXPANDPROJECTESTIMATERANGE(
    Connection,
    "Test-01",
    ,
    ,
    TRUE
)


Description
Returns the primary Estimate ID for project Test-01.

Results

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/3ChQYpCfz5jRR_1TxzgNRGee77sea4V5ug.png

(the ProjectRange argument has been represented by a cell reference)


Troubleshooting

When using the EstimateType argument, if either:

  1. The filter specified in the argument eliminates all possible records OR

  2. There is an invalid type specified in the argument

The ExpandProjectEstimateRange function will return #VALUE!

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/BPknbRN_Pyc9j7Le9E1MfEt-z_-3DlDETA.png

(all possible records eliminated)


https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/MAppu1AYuiooYrneoxpA5eKIlAC2OYmmGA.png

(filter includes an invalid type)


along with the message:

No 'Estimate type' matches the requested value or range