Overview
The editor allows you to:- Drag fields to Rows, Columns, or Values areas
- Reorder dimensions by dragging
- Configure aggregations and calculations
- Apply filters visually
- Remove fields by dragging out
The pivot editor is part of TeeBI’s visual controls and requires VCL or FireMonkey.
Using the Editor
Design-Time Setup
- Drop a
TBISummarycomponent on a form - Set the
Dataproperty to your data source - Right-click and select “Pivot Editor”
Runtime Configuration
Editor Areas
Fields List
Shows all available fields from your data:- Drag fields to Rows, Columns, or Values
- Search/filter the fields list
- Shows field data types with icons
Rows Area
Fields placed here create row groupings:- Multiple fields create hierarchies
- Order determines grouping levels
- Right-click for field options
Columns Area
Fields placed here create column groupings:- Cross-tabulates with row fields
- Multiple fields create nested columns
- Drag to reorder
Values Area
Fields placed here are aggregated:- Select aggregation type (Sum, Count, etc.)
- Configure calculations (%, running totals)
- Multiple measures show side-by-side
Field Configuration
Right-click a field in any area:For Dimensions (Rows/Columns)
- Sort Ascending/Descending - Order values
- Date Grouping - Group by Year, Quarter, Month, etc.
- Histogram - Create numeric intervals
- Remove - Remove from pivot table
For Measures (Values)
- Aggregation - Change Sum, Count, Average, etc.
- Show as Percentage - % of Total, Row, or Column
- Running Total - Cumulative sum
- Difference - Change from previous
- Missing Values - Treat as zero
Filters
Filter data before aggregation:BI.Summary.pas:466 for the Filter property.
Having Clause
Filter after aggregation usingTSummaryFilter (BI.Summary.pas:361-382):
BI.Summary.pas:467 for the Having property.
Remove Missing
Automatically remove empty rows/columns usingTRemoveMissing (BI.Summary.pas:384-396):
Sorting
Order results usingSortBy:
Complete Editor Example
Keyboard Shortcuts
| Key | Action |
|---|---|
| Delete | Remove selected field |
| F2 | Rename field |
| Ctrl+Z | Undo last change |
| Ctrl+Y | Redo change |
| Ctrl+F | Find field |
Next Steps
Overview
Learn pivot table basics
Visualization
Display pivot results in charts
