Business applications collect data. Orders, invoices, time entries, inventory movements, and sales figures accumulate every day. Sooner or later, someone asks the obvious questions: Which region sold the most last quarter? Which product category is growing? How do this year's numbers compare to last year's? In this article, we take a closer look at the pivot tables and data analysis tools of TX Sheet Control, and how they let your users answer these questions themselves, directly in your application. From Records to Answers Raw records answer no questions. A list of 50,000 orders contains every answer, but it presents none of them. To see the revenue per region and quarter, the records must be grouped, aggregated, and arranged. Traditionally, this leaves two options, and neither is satisfying. Developers build a dedicated report for every question. This works for the questions that someone anticipated, but every new question becomes a new development task. Alternatively, users export the data and analyze it in an external spreadsheet. The data leaves the application, the analysis is disconnected from the source, and the results are outdated as soon as the next order arrives. What users need is a way to explore the data themselves, inside the application that owns it. Pivot Tables in TX Sheet Control A pivot table summarizes worksheet records into row groups, column groups, and aggregate values. Its source is a range, an Excel table, or a named range, and its result occupies a worksheet range that updates when the report changes. Users create a pivot table from the Insert tab. In the Create PivotTable dialog, they select the source data and a destination on a new or an existing worksheet. Building Reports by Drag and Drop The real power of a pivot table is that users rearrange the report themselves. The field list pane shows all fields of the source. Users drag fields to the Filters, Columns, Rows, and Values areas, and the report updates instantly. Field cards, reorder arrows, and per-field settings make building reports fast, and a search box finds fields in large sources. A question that once required a developer now takes a user a few seconds. Aggregations and Show Values As Values are aggregated with the function that fits the question: Totals and counts: Sum, count, count of numbers, and distinct count. Statistics: Average, minimum, maximum, product, standard deviation, and variance. Show Values As: Percentages of row, column, parent, and grand totals, differences, percentage differences, running totals, ranks, and indexes. A field can appear several times in the Values area, each with its own caption, aggregation, and number format. For example, the same Revenue field can show the total revenue next to the share of the grand total. Grouping, Filtering, and Sorting Real data rarely arrives in the shape of the question. Pivot tables in TX Sheet Control reshape it: Grouping: Dates are grouped by years, quarters, months, or days, numbers by intervals, and members into named groups. Filtering: Include or exclude members, compare labels and values, show the Top or Bottom N, and add report filters. Sorting: Sort by labels or values, with custom sort lists and built-in English and German month and weekday names. Pivot filters combine with each other and never change the filters of the source data. Calculated Fields and Show Details Calculated fields add per-record formulas, such as =[Revenue]-[Cost], to calculate a profit that does not exist in the source. And when a number raises a question, Show Details answers it: it creates a new worksheet with the records behind any value, so users see which orders make up a total. Layouts, Styles, and Pivot Charts Pivot tables are displayed in a compact, outline, or tabular layout, with options for subtotals, grand totals, repeated labels, and empty and error values. The PivotTable Options dialog shows the effect of layout and formatting settings in a live preview. The table styles on the Table Design tab format pivot tables like Excel tables, and pivot charts visualize the result. A pivot chart is bound to its pivot table and follows its fields, filters, sorting, and expansion automatically, so users explore the data and the chart together. Native in XLSX, Available on the Server Pivot tables are not only an editor feature. They are available in the browser editor, including its Angular component and the Blazor package, and in the .NET and Node.js server packages, without any additional package. A backend service can create a pivot report from application data and deliver it as an Excel workbook, in which ordinary pivot tables and their pivot charts are written as native linked objects. Learn moreLearn how TX Sheet Control loads, edits, and saves Excel XLSX workbooks with their formulas, formatting, tables, charts, and native pivot tables. This article covers conversion diagnostics, hardened import for untrusted files, and the other supported formats.Excel Compatibility in TX Sheet Control: Working with the Workbooks Your Users Already Have Data Tools for Everyday Analysis Not every analysis needs a pivot table. Often, the data must first be cleaned up, sorted, or combined. The Data tab of TX Sheet Control provides the tools for this: Sort: Sort ranges by several levels, with each sort as a single undoable operation. Column filters and advanced filters: Filter rows by their values or by several combined conditions, without deleting data. Text to Columns: Split delimited or fixed-width text into columns, optionally keeping the leading zeros of identifiers. Remove Duplicates: Remove duplicate rows based on selected columns, with header handling and case sensitivity. Consolidate: Combine up to 64 ranges of a worksheet with an operation and labels, optionally linked to the source data. Text to Columns, Remove Duplicates, and Consolidate show a preview before they are applied. Users review the result, and the transformation changes nothing until they confirm it. Each transformation is applied as a single undoable operation, so even a large cleanup can be reverted in one step. Clean Data Starts at Entry The best way to get clean data is to prevent invalid data in the first place. Data validation constrains cell input with dropdown lists, numeric and date limits, and custom conditions. Input messages tell users what to enter, and error alerts explain why an entry was rejected. Excel-style tables with named columns and calculated columns keep the data structured as it grows. From Analysis to Dashboards Pivot tables answer questions in tables. When the answers should be presented visually and explored interactively, dashboards take over. Dashboards in TX Sheet Control use the same worksheet tables and ranges as their data sources and add key metrics, more than 20 chart types, filters, and drill-down on top. Learn moreLearn how TX Sheet Control builds interactive dashboards directly from worksheet data, without a separate BI tool. This article covers KPI cards, more than 20 chart types, filters, drill-down, what-if parameters, 24 themes, and the dashboard viewer.Interactive Dashboards with TX Sheet Control: Spreadsheets and Dashboards in One Workbook Conclusion: Let Users Answer Their Own Questions Every report that a developer builds answers one question. Pivot tables and data tools let users answer many of the others themselves, inside your application and on current data. The pivot tables and data analysis tools in TX Sheet Control are: Interactive, with drag-and-drop field lists and instant results Powerful, with grouping, filtering, Show Values As, and calculated fields Safe, with previews and undo for data transformations Available in the browser and on the server, and native in XLSX If your application holds data that users want to analyze, TX Sheet Control gives them the tools to do it without leaving your application. Download trial Frequently Asked Questions Which data sources can a pivot table use? A pivot table in TX Sheet Control uses a worksheet range, an Excel table, or a named range as its source. Refreshing the pivot table re-reads the source, including rows added to an Excel table. Which aggregations do pivot tables support? Pivot tables support sum, count, count of numbers, average, minimum, maximum, product, standard deviation, variance, and distinct count. Show Values As adds percentages of totals, differences, running totals, ranks, and indexes. Are pivot tables available without the browser editor? Yes. Pivot tables are available in the browser editor, including its Angular component and the Blazor package, and in the .NET and Node.js server packages, without any additional package. Do pivot tables remain pivot tables when exported to Excel? Yes. TX Sheet Control writes ordinary pivot tables, their caches, and their connected pivot charts to XLSX as native linked objects. Pivot tables that use features such as grouping, record-level calculated fields, distinct counts, ranks, or other unsupported display or filter calculations are written as a snapshot whose refresh is disabled in Excel. Which data tools are available besides pivot tables? The Data tab provides multi-level sorting, column filters and advanced filters, Text to Columns, Remove Duplicates, and Consolidate. Text to Columns, Remove Duplicates, and Consolidate show a preview before they are applied.