Aggregate Totals - Datatables for Laravel                  [               Datatables for Laravel  ](/) [ 1.0.5](https://laravel-datatables.com/release-notes "Click to view release notes")

  Toggle main menu         [Docs](https://laravel-datatables.com/docs) [Demos](/demos) [Blog](https://laravel-datatables.com/blog) [Pricing](/pricing)        Search  ⌘ K   [ Log in ](/login) 

  [Docs](https://laravel-datatables.com/docs) [Demos](/demos) [Blog](https://laravel-datatables.com/blog) [Pricing](/pricing) 

 Search docs and demos  

Type at least 2 characters to search.

    Demos     

### Use Cases

- [ Simple Datatable ](https://laravel-datatables.com/demos/use-case-simple)
- [ Products Datatable ](https://laravel-datatables.com/demos/use-case-products)
- [ Sales Operations ](https://laravel-datatables.com/demos/use-case-sales)

### Features

- [ Accessibility ](https://laravel-datatables.com/demos/features-accessibility)
- [ Advanced Filtering ](https://laravel-datatables.com/demos/features-advanced-filtering)
- [ Aggregate Totals ](https://laravel-datatables.com/demos/features-aggregate-totals)
- [ Column Reordering ](https://laravel-datatables.com/demos/features-column-reordering)
- [ Custom Controls ](https://laravel-datatables.com/demos/features-custom-controls)
- [ Directionality (LTR / RTL) ](https://laravel-datatables.com/demos/features-directionality)
- [ Export ](https://laravel-datatables.com/demos/features-export)
- [ Frozen Columns ](https://laravel-datatables.com/demos/features-frozen-columns)
- [ Frozen Header ](https://laravel-datatables.com/demos/features-frozen)
- [ Frozen Header &amp; Columns ](https://laravel-datatables.com/demos/features-frozen-both)
- [ Pagination ](https://laravel-datatables.com/demos/features-pagination)
- [ Responsive Mobile ](https://laravel-datatables.com/demos/features-responsive-mobile)
- [ Row Grouping ](https://laravel-datatables.com/demos/features-row-grouping)
- [ Row Selection &amp; Bulk Actions ](https://laravel-datatables.com/demos/features-row-selection-bulk-actions)

### Cell Renderer

- [ Action Buttons ](https://laravel-datatables.com/demos/cell-renderer-action-buttons)
- [ Avatar ](https://laravel-datatables.com/demos/cell-renderer-avatar)
- [ Checkmark ](https://laravel-datatables.com/demos/cell-renderer-checkmark)
- [ Color Sample ](https://laravel-datatables.com/demos/cell-renderer-color-sample)
- [ Email Link ](https://laravel-datatables.com/demos/cell-renderer-email)
- [ External Link ](https://laravel-datatables.com/demos/cell-renderer-external)
- [ Friendly Timestamp ](https://laravel-datatables.com/demos/cell-renderer-friendly-timestamp)
- [ Image ](https://laravel-datatables.com/demos/cell-renderer-image)
- [ Long Text ](https://laravel-datatables.com/demos/cell-renderer-long-text)
- [ Phone Link ](https://laravel-datatables.com/demos/cell-renderer-phone-link)
- [ Progress Bar ](https://laravel-datatables.com/demos/cell-renderer-progress-bar)
- [ Status Badge ](https://laravel-datatables.com/demos/cell-renderer-status-badge)
- [ URL Link ](https://laravel-datatables.com/demos/cell-renderer-url)
- [ Wire Link ](https://laravel-datatables.com/demos/cell-renderer-wire)

### Value Formatter

- [ Compact Number ](https://laravel-datatables.com/demos/value-formatter-compact-number)
- [ Currency ](https://laravel-datatables.com/demos/value-formatter-currency)
- [ Duration ](https://laravel-datatables.com/demos/value-formatter-duration)
- [ Friendly Filesize ](https://laravel-datatables.com/demos/value-formatter-friendly-filesize)
- [ Friendly Timestamp ](https://laravel-datatables.com/demos/value-formatter-friendly-timestamp)
- [ Locale Timestamp ](https://laravel-datatables.com/demos/value-formatter-locale-timestamp)
- [ Number ](https://laravel-datatables.com/demos/value-formatter-number)
- [ Percent ](https://laravel-datatables.com/demos/value-formatter-percent)

Aggregate Totals
================

This demo adds an aggregate column to the table and calculates totals for the visible grouped data.

          Items per page        Filters      Export        Manage Columns   

    10  Current    25    50    100    

     CSV   XLSX   PDF   

 ​

### Filter options

   Product Name      

  Category    All  Audio &amp; Headphones Automotive Parts &amp; Accessories Baby Gear &amp; Nursery Beauty &amp; Personal Care Bedding &amp; Bath Beverages &amp; Coffee Board Games &amp; Puzzles Books &amp; E-Books Cameras &amp; Photography Cleaning Supplies Collectibles &amp; Art Computers &amp; Laptops Crafts &amp; Sewing Cycling &amp; Bicycles Electronics Event &amp; Party Supplies Fitness &amp; Gym Equipment Footwear Furniture Groceries &amp; Gourmet Food Hair Care Handbags &amp; Luggage Health &amp; Wellness Home Appliances Home Decor Industrial &amp; Scientific Jewelry &amp; Watches Kids &amp; Baby Apparel Kitchen Appliances Lawn &amp; Garden Lighting &amp; Ceiling Fans Men's Apparel Movies &amp; Music Musical Instruments Outdoor &amp; Camping Pet Supplies Safety &amp; Security Products Skincare Smart Home Devices Smartphones &amp; Accessories Sports Goods Stationery &amp; Office Supplies Tools &amp; Home Improvement Toys &amp; Games Travel &amp; Adventure Gear Video Games &amp; Consoles Vitamins &amp; Supplements Wearable Technology Wine, Beer &amp; Spirits Women's Apparel     

 Clear all Done 

 ​

###  Manage Columns 

  Apply   Cancel  

        Loading... 

             ID                Product Name                Category                Status               Units Sold        Unit Price               Total Price       Actions                        1       Cumque et ullam #1       Sports Goods       Active       915.0       $487.94       $446,465.10       View Edit Delete

                  2       Nesciunt doloribus voluptatum #2       Home Appliances       Active       18.0       $375.07       $6,751.26       View Edit Delete

                  3       Et ullam dignissimos #3       Crafts &amp; Sewing       Active       710.0       A$485.74       A$344,875.40       View Edit Delete

                  4       Exercitationem sapiente nihil #4       Groceries &amp; Gourmet Food       Active       836.0       CA$108.78       CA$90,940.08       View Edit Delete

                  5       Vel tempore dolores #5       Toys &amp; Games       Active       140.0       CA$211.49       CA$29,608.60       View Edit Delete

                  6       Qui consequatur sed #6       Wine, Beer &amp; Spirits       Active       1.0K       £422.27       £422,270.00       View Edit Delete

                  7       Sit quae occaecati #7       Outdoor &amp; Camping       Active       134.0       $374.05       $50,122.70       View Edit Delete

                  8       Esse nihil quam #8       Event &amp; Party Supplies       Active       1.0K       £437.97       £437,970.00       View Edit Delete

                  9       Corporis dolorum est #9       Vitamins &amp; Supplements       Inactive       12.0       £144.12       £1,729.44       View Edit Delete

                  10       Ut explicabo quia #10       Crafts &amp; Sewing       Inactive       307.0       A$364.24       A$111,821.68       View Edit Delete

                  Total                           5.1K 

              A$456,697.08
CA$120,548.68
£861,969.44
$503,339.06 

        « Previous       Next »    

 1 - 10 of 1000

                    1       2       3       4       5       6       7       8       9       10        ...          99       100                 

 - Demo code is available for licensed customers - 

### Related Documentation

 [Aggregate Columns

Features

Display aggregate values for your columns.](https://laravel-datatables.com/docs/feature-aggregate-columns) [Row Grouping

Features

Group rows and create group headers in your datatable for better organization and readability.](https://laravel-datatables.com/docs/feature-row-grouping) 

### Related Demos

 [Row Grouping

Features

Enable grouping of rows based on specific criteria.](https://laravel-datatables.com/demos/features-row-grouping) 

   © 2026 Copyright (C)  [ Morrow IT Consulting &amp; Services ](https://morrow-it.services)  

 [Terms of Service](https://laravel-datatables.com/legal/terms) [Privacy](https://laravel-datatables.com/legal/privacy) [Legal Disclosure](https://laravel-datatables.com/legal/disclosure)
