Configure Query-Based Rollup for a Visualization
Configure query-based rollup when you want a visualization to aggregate data from a specific set of shells instead of all sub-shells. By defining query conditions based on shell attributes, you can include only the matching projects, programs, buildings, or other shell types that are relevant to the visualization.
For example, you can roll up data from projects that belong to a specific program or from buildings that meet defined criteria.
For each attribute condition, you can select a Constant or Dynamic value type. A Dynamic value uses a data element (DE) from the current shell and resolves when the visualization is displayed. This enables one rollup configuration to work across multiple shells without hardcoding a program, project, or other shell-specific value.
Dynamic query conditions can be exported and imported in configuration packages and add-on packages. The destination environment must contain the required shell types and DEs. If a referenced current-shell DE is unavailable in the destination, Unifier clears the Current Shell Data Element value rather than deleting the condition.
Prerequisites
Ensure that:
- The visualization uses Standard Data Sources.
- You have the required permissions to administer at the company or project level.
- The visualization properties have been set up as outlined in Edit Visualization Properties.
- You know the shell type and attribute filters that you want to use.
- To use Dynamic values, ensure that the following criteria are also met:
- The current shell type includes the DE that you want to use as the Dynamic value.
- The target shell type includes the DE that you want to evaluate.
- If you plan to use a shell template, ensure that the selected current-shell DE is available in every shell that will receive the template.
Limitations
- You can define up to 5 query condition groups across shell types.
- You can define up to 10 attribute conditions within a shell type.
- Conditions within a shell type use AND or OR logic. Query-condition groups across shell types are always combined with OR logic.
- When you select a current-shell DE that might not be available in every target shell, the system displays this warning:
Selected Dynamic Data Element may not be available in every target shell. - If a referenced DE is removed from a shell design, Unifier ignores the affected condition until you open Rollup Configuration. At that time, the system displays required-field validation.
- If a shell type is made inactive after conditions are configured and you do not revisit Rollup Configuration, Unifier ignores conditions for that shell type in User mode.
Procedure
To configure query-based rollup for a visualization:
How Dynamic Values Work
At runtime, the system retrieves the value of the selected current-shell DE, substitutes that value into the query condition, and returns matching target shells.
For example, configure:
- Target data element: Projects / Program Name
- Condition: Is
- Value Type: Dynamic
- Current Shell Data Element: Program Name
When the visualization is displayed in a shell whose Program Name is Healthcare Expansion, the rollup includes only projects whose Program Name is Healthcare Expansion.