---
schema_version: "1"
id: 4d295b9e18c8a20053da27b9e3236c791061893454c8b300435194e3964a1d5b
title: SummaryValue Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_reports_summaryvalue.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_summaryvalue.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9428138481f1ebee5bba0633004709478bc20561bb991f0120f8ade9cd4a6bcb
description: Contains summary data for a cell of the report.Returns the formatted summary data for a specified cell.Returns the numeric value of the summary data for a specified cell.
---
# SummaryValue Class

Contains summary data for a cell of the report.

## 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.")

## SummaryValue Methods

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

- **[getLabel()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_summaryvalue.htm#apex_Reports_SummaryValue_getLabel)**  
    Returns the formatted summary data for a specified cell.
- **[getValue()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_reports_summaryvalue.htm#apex_Reports_SummaryValue_getValue)**  
    Returns the numeric value of the summary data for a specified cell.

### getLabel()

Returns the formatted summary data for a specified cell.

#### 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.")

### getValue()

Returns the numeric value of the summary data for a specified cell.

#### Syntax

public Object getValue()

#### Return Value

Type: Object