GEXD Formula
The GEXD
formula is used to directly insert the detail results of a query to a spreadsheet.
GEXQ
summary field in Query Designer.- In Excel, select the cell where the formula is to reside, then, from the Spreadsheet Server Ribbon, select Formula Builder. The Formula Builder panel appears. Select the formula (GEXD) in the Query Formulas tab.
- Use the following table to enter data in the Formula Builder > GEXD panel:
- If targeting a range, the fill down formulas or values must reside outside of the output range.
- If Column Headings is selected, the fill down columns are required to be on the first row following the heading. If not selected, the fill down columns are required to be on the first two rows of the
GEXD
data. - In some instances, the GEXD Row function may be used in place of this option.
- Click Insert. The formula is inserted into the cell, and a label (
GenQueryDetail...
) appears in the cell. The true formula (GEXD(...)
) can be seen in the Excel formula bar. - To generate detail reports for all
GEXD
formulas in the workbook, from the Spreadsheet Server Ribbon, select Execute Reports > All Detail Reports (GEXD Formulas). The results for allGEXD
formulas are expanded into the appropriate formatted sheets. -
Note:
- If generating a
GEXD
to a table set to be cleared, and the system detects extra non-fill down columns at the end of the output table, a message appears, indicating the data in these extra columns will be lost, and allows the user to continue, or abort processing for theGEXD
. - If generating a
GEXD
to a range or table set to be cleared, and the system detects data adjacent to the range or table, a message appears, indicating the data in these adjacent columns will be lost, and allows the user to continue, or abort processing for theGEXD
.
- If generating a
Field | Description |
---|---|
Query Name |
Click the Browse button to navigate to, and, select the query to be executed. |
Worksheet |
Click the drop-down list, and select the worksheet destination for the formula. Defaults to the current active worksheet. |
Starting Cell |
Specify the starting cell for the template. |
Clear/Shift Worksheet |
Specify, when inserting data, whether to overwrite existing cell data in the worksheet, clear all cell data in the worksheet, insert the |
Target Worksheet |
Type the name of the worksheet, or click the drop-down list, and select the worksheet destination for the output. Defaults to the current active worksheet. |
Target Type |
Specify whether the expanded detail should be inserted into a table, range, or row in the target worksheet. |
Target Cell/Range/Table |
Type the cell, range, or table, or, click the drop-down list, and select the desired range or table of the output target. If Column Headings is selected, the cell represents the left-most column heading as defined in the query; otherwise it represents the left-most cell of the first row of data. If the range or table does not exist, a prompt appears, allowing for the creation of the table. |
Fill Down Columns |
Specify the number of columns that contain formulas or values to the right of the results grid. These columns fill down to match the number of records in the results. Valid values are:
Note:
|
Column Headings |
If selected, the generated output data will contain column headings from the query. Do not select this option if column headings will be manually entered in Excel. |
Auto Fit Column Sizes |
If selected, the system performs the Auto Fit Column Width feature of Excel, when the formula is executed. |
Clear a Range of Cells |
If the Target Type is a cell, specify the range of cells to be cleared prior to executing the formula.
Note: if using Fill Down Columns, exclude the first row from the clear range to avoid deleting the fill down formula or value (for example, if the Starting Cell is
A7 , the Clear Range of Cells must be A8:xx . |
Clear Sheet/Range/Table |
If selected, the entire output sheet (specified in the Target Worksheet field), or the range or table (specified in the Target Cell/Range/Table field) is cleared when the
Note: see Clear a Range of Cells for clearing a range of cell data.
|
Custom Layout |
Click the drop-down list, and select the custom layout to be used when the |
Use/Parameter |
If applicable, specify or modify the cells containing the query parameters. A maximum of 25 parameters may be selected. |
To generate detail reports for selected GEXD
formulas, select the cells containing the GEXD
formulas, from the the Spreadsheet Server Ribbon, select Execute Reports > Selected Detail Reports (GEXD Formulas), or, right-click and select Spreadsheet Server > Execute Selected Detail Reports (GEXD). The results for the selected GEXD formulas are expanded into the appropriate formatted sheet.