| Products | Versions |
|---|---|
| Spotfire Statistica | 14.0 and higher |
There is sometimes a need to pass on filtering values from a downstream document in a workspace to a criteria in Enterprise ad-hoc analysis. The Enterprise Ad-hoc analysis with input data node is used for this purpose
OS: Windows
To use the node, follow the below steps.
1. Ensure that filtering criteria is enabled on the dependent data configuration. Refer to this KB to see how non-interactive filtering can be enabled. For example, when using a Data Configuration named Product Assembly Data, with the following columns, enabling the filtering criteria looks like below. For the example, both Location and Building Number will have the SQL Criteria, Filtering Options, enabled. Note that these columns are defined as Labels:
Location (and Building Number) are both Labels:
2. Create an ad-hoc analysis configuration from the dependent data configuration if one is not present already.
a. Right-click on the data configuration (Product Assembly Data, in the example) and select "New Analysis Configuration off this Data":

b. A new IQC Analysis object is created. Change this to an Ad hoc Analysis:

c. The final object will have the spreadsheet icon but have the Type as "Ad hoc Analysis":

3. From Statistica Home tab, select Open>>Open Examples>>Workspaces>>Example_Enterprise Ad Hoc Analysis with Input Data.sdm. Click on Open. You may type "Enterprise" in the Feature Finder (top right) or find it in the node browser.
4. Copy the node named "Enterprise Ad Hoc Analysis with Input Data (Example)" to the workspace of interest (the workspace that needs to use a downstream document in a workspace as filter for an Enterprise ad-hoc analysis configuration).
a. Copying the Enterprise Ad Hoc Analysis with Input Data (Example) node to another workspace:

b. In the example, the node was copied to the workspace with a downstream document:

5. Open the node Enterprise Ad Hoc Analysis with Input Data (Example) and select the ad-hoc Analysis configuration referred to in Step 2:

6. To pass filtering criteria from the spreadsheet to the Ad-hoc analysis, enter SQL criteria in the syntax : [LOGICAL_OPERATOR]=>[QUERY_NAME]=>[FIELD_NAME]=>[REFERENCE_VALUES]=>[SQL OPERATORS].
This is explained in detail below:
![]()

The upstream document, in this case a spreadsheet, is Adhoc and the variable name in the spreadsheet is Site:


Available operation are:
7. When the node is run, the results will be equivalent of results of the query with values contained in the referenced spreadsheet used as a filtering criteria:

Note that the filtered options for Building Number, though Enabled, are not used in the SQL Criteria in the Enterprise Ad Hoc Analysis with Input node.
How to use Enterprise Adhoc Analysis with Input data node?