PivotForge.Core 0.5.0-preview.1

This is a prerelease version of PivotForge.Core.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package PivotForge.Core --version 0.5.0-preview.1
                    
NuGet\Install-Package PivotForge.Core -Version 0.5.0-preview.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PivotForge.Core" Version="0.5.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PivotForge.Core" Version="0.5.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="PivotForge.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PivotForge.Core --version 0.5.0-preview.1
                    
#r "nuget: PivotForge.Core, 0.5.0-preview.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PivotForge.Core@0.5.0-preview.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PivotForge.Core&version=0.5.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=PivotForge.Core&version=0.5.0-preview.1&prerelease
                    
Install as a Cake Tool

PivotForge Core

PivotForge Core is a dependency-light pivot table engine for .NET 8 and newer applications.

Features

  • Group rows and columns from objects, dictionaries, DataTable, JSON, or CSV
  • Sum, count, average, minimum, and maximum aggregations
  • Filters and row sorting by labels, totals, or a selected column value
  • Percentages, differences, percent differences, and running totals
  • Source-record drill-down for detail cells, subtotals, and grand totals
  • Result pagination and cooperative cancellation
  • Dependency-free .xlsx export

Installation

dotnet add package PivotForge.Core --version 0.1.0-preview.1

Create a pivot

using PivotForge.Core;

var sales = new[]
{
    new { Region = "North", Year = 2025, Amount = 120m },
    new { Region = "North", Year = 2026, Amount = 180m },
    new { Region = "South", Year = 2026, Amount = 90m }
};

var request = new PivotRequest
{
    Rows = ["Region"],
    Columns = ["Year"],
    Values = [PivotValueDefinition.Sum("Amount")]
};

var result = new PivotEngine().Execute(sales, request);

Pass a CancellationToken to the Execute overload for cancellable calculations.

Drill down

var records = new PivotEngine().DrillDown(
    sales,
    request,
    rowPath: ["North"],
    columnPath: ["2026"]);

Use an empty path for an axis total or a prefix path for a subtotal.

Pagination

var page = PivotResultPaginator.CreatePage(result, offset: 0, pageSize: 100);

Excel export

using PivotForge.Core.Excel;

var document = new PivotExcelDocument
{
    Title = "Sales Pivot",
    Rows =
    [
        new PivotExcelRow
        {
            Cells =
            [
                new PivotExcelCell { Text = "Region", Role = PivotExcelCellRole.Header },
                new PivotExcelCell { Text = "Amount", Role = PivotExcelCellRole.Header }
            ]
        }
    ]
};

var xlsx = new PivotExcelExporter().Export(document);
File.WriteAllBytes("pivot.xlsx", xlsx);

PivotForge Core is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on PivotForge.Core:

Package Downloads
PivotForge.AspNetCore

An interactive ASP.NET Core pivot table UI powered by PivotForge. Includes static web assets, endpoint registration, drill-down, Excel and CSV export, conditional formatting, large-data paging, request cancellation, and caching.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.0-preview.6 58 10/2/2026
0.6.0-preview.5 60 9/30/2026
0.6.0-preview.4 64 9/30/2026
0.6.0-preview.3 52 9/30/2026
0.6.0-preview.2 60 9/30/2026
0.6.0-preview.1 56 9/29/2026
0.5.0-preview.1 90 8/17/2026
0.4.0-preview.8 72 8/16/2026
0.4.0-preview.7 76 8/16/2026
0.4.0-preview.6 79 8/16/2026
0.4.0-preview.5 73 8/16/2026
0.4.0-preview.4 64 8/16/2026
0.4.0-preview.3 68 8/16/2026
0.4.0-preview.2 76 8/16/2026
0.4.0-preview.1 66 8/16/2026
0.3.0-preview.2 72 8/16/2026
0.3.0-preview.1 83 8/16/2026
0.2.0-preview.1 73 8/15/2026
0.1.0-preview.2 79 8/14/2026
0.1.0-preview.1 79 8/14/2026

Behaviour change: row labels and filter values now collate with CultureInfo.CurrentCulture, resolved per call, instead of a hard-coded tr-TR. new PivotEngine(culture) pins it. This is a correctness fix, not a cosmetic one: in Turkish C-cedilla is a letter of its own that sorts after every word starting with C, so results reorder outside Turkish. Also adds PivotEngine.DistinctValues for object, DataTable and dictionary sources, which backs the packaged filter value picker.