---
schema_version: "1"
id: a7f86cc5369260eebff2c8120b62fa4c686e70b76b7cd8cb0271357e48a88b48
title: AggregateColumn Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_reports_aggregatecolumn.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_aggregatecolumn.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3d382d35a70ccaae70d82450609f10589758ac54a46eb157cea7324f4dfdc007
description: Contains methods for describing summary fields such as Record Count, Sum, Average, Max, Min, and custom summary formulas. Includes name, label, data type, and grouping context.Returns the unique API name of the summary field.Returns the localized display name for the summarized or custom summary formula field.Returns the data type of the summarized or custom summary formula field.Returns the column grouping in the report where the summary field is displayed.Returns the row grouping in the report where the summary field is displayed.
---
# AggregateColumn Class

Contains methods for describing summary fields such as Record Count, Sum, Average, Max, Min, and custom summary formulas. Includes name, label, data type, and grouping context.

## Namespace

[Reports](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Reports.htm "The Reports namespace provides classes for accessing the same data as is available in the Salesforce Reports and Dashboards REST API.")

## AggregateColumn Methods

The following are methods for AggregateColumn. All are instance methods.

- **[getName()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_aggregatecolumn.htm#apex_Reports_AggregateColumn_getName)**  
    Returns the unique API name of the summary field.
- **[getLabel()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_aggregatecolumn.htm#apex_Reports_AggregateColumn_getLabel)**  
    Returns the localized display name for the summarized or custom summary formula field.
- **[getDataType()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_aggregatecolumn.htm#apex_Reports_AggregateColumn_getDataType)**  
    Returns the data type of the summarized or custom summary formula field.
- **[getAcrossGroupingContext()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_aggregatecolumn.htm#apex_Reports_AggregateColumn_getAcrossGroupingContext)**  
    Returns the column grouping in the report where the summary field is displayed.
- **[getDownGroupingContext()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_aggregatecolumn.htm#apex_Reports_AggregateColumn_getDownGroupingContext)**  
    Returns the row grouping in the report where the summary field is displayed.

### getName()

Returns the unique API name of the summary field.

#### Syntax

public String getName()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getLabel()

Returns the localized display name for the summarized or custom summary formula field.

#### Syntax

public String getLabel()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getDataType()

Returns the data type of the summarized or custom summary formula field.

#### Syntax

public Reports.ColumnDataType getDataType()

#### Return Value

Type: [Reports.ColumnDataType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_reports_columndatatype.htm "The Reports.ColumnDataType enum describes the type of data in a column. It is returned by the getDataType method.")

### getAcrossGroupingContext()

Returns the column grouping in the report where the summary field is displayed.

#### Syntax

public String getAcrossGroupingContext()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getDownGroupingContext()

Returns the row grouping in the report where the summary field is displayed.

#### Syntax

public String getDownGroupingContext()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")