Formula Wizard
The Formula Wizard is a user-friendly interface that helps you generate a NECFORMULA function in a cell. NECFORMULA is a custom function that extracts data from a data model based on the criteria set in the Formula Wizard. It then aggregates the values to answer a specific question.
Using the Formula Wizard, you can select the environment, data model, field, and operator for your formula. You can also add filters, create filter groups, and preview the formula result.
You can access the Formula Wizard from the Analysis tab of a workbook.
When to use the Formula Wizard
- Simplifying calculations: Helps build complex formulas without needing advanced technical skills.
- Speeding up analysis: Allow quick data manipulation and analysis using predefined data models.
- Reducing errors: Minimizes errors by providing syntax assistance and error-checking features.
- Saving time: Avoid the need to learn complex formula syntax, letting you focus on analysis.
- Ensuring integration: Work with NECFORMULA to retrieve data from data models while maintaining user-level data security.
Create a formula with the Formula Wizard
You can create a formula to retrieve the specific data you need.
- Select the cell where you want to insert the formula.
- On the Analysis tab, select Formula Wizard.
- From the Environment and Data Model dropdown menus, select the environment and data model.
- In the Field dropdown menu, choose the field for the formula.
- Select an operator from the Operator dropdown menu.
- To narrow your results, select Add Filter or Add Group. Adding filters help target specific subsets of data, so you only create the pivot table you need.
- Use And or Or to create logical relationships between filters or groups.
- Select Preview Value to confirm the results before saving.
- Select Save to apply the formula.
For a detailed example, see [Formula Wizard Example].
Name Multiple Formulas in a Cell
When a cell contains multiple NECFORMULA functions, the Formula Wizard lets you assign a custom name to each one:
- Select a cell that contains multiple NECFORMULA functions.
- On the Analysis tab, select Formula Wizard.
- In the list on the left, select the pencil icon next to the formula you want to rename.
- Click Save. The custom names are applied to the NECFORMULA functions in the cell.
Refresh a formula wizard
Update a formula wizard with the latest data from your data source to ensure your analysis reflects the most current information.
- On the Toolbar panel, select Refresh.
- Ensure the Formulas slider is toggled.
- Select Entire Workbook to refresh all formula wizards, or Current Worksheet to refresh only those in the current worksheet.
Drill down on a NECFORMULA
Drill down on a NECFORMULA in the workbook to gain more detailed insight into the data behind the formula.
From the ribbon
- Select a cell that contains a NECFORMULA.
- On the Analysis tab, in the Tools section, select Drill Down.
- The Drill Down dialog opens and shows the formula details.
From the toolbar
- Select a cell that contains a NECFORMULA.
- On the Toolbar tab on the right, select Drill Down.
- The Drill Down dialog opens and shows the formula details.
For more information about setting up a drill down profile, see Create a drill down.
Formula Wizard properties
Fields
| Property | Description |
|---|---|
| Environment | Defines the environment for duplication. If set to Current Environment, the data is retrieved dynamically from the active environment. |
| Data Model | Defines the data model for the formula. |
| Fields | Specifies the field for the formula. This can be a dimension, measure, or description. |
| Operator | Specifies the operator for the formula. The available operators depend on the data model and field, may include:
|
Filters
| Property | Description |
|---|---|
| And, Or | Defines the logical relationship between filters or groups using And or Or. |
| Add Filter, Add Group |
To reference a cell, click the underscore in the Value field, then select the cell. This applies to both individual filters and groups. By default, character values are treated as cell references. To enter a text value instead, click the A icon next to the value field. When active, the icon turns blue, indicating the input is treated as a text. If you use the prompt, it's automatically set as text. |
| Clear all filters | Removes all filters and groups. |
Options
| Property | Description |
|---|---|
| Preview Value | Displays the formula result. If the formula is invalid, an error message appears. A timeout occurs if query time exceeds 300 seconds (5 minutes) or if the formula reaches 500,000 rows. |
| Save | Saves the formula. The workbook generates a function that is visible in the formula bar. Clicking the formula bar opens a dialog showing the NECFORMULA function (similar to NECACCESS in Excel Add-in). Unlike Excel Add-in, no reference configuration is required. Smart caching applies automatically based on the formula. |
| X | Closes the wizard without saving. |