---
schema_version: "1"
id: d3463959e865cced73f5a1325421ba6c940a2aae01630caf152e29d22f011c5d
title: Report
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_report.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_report.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e051a7ef701cb973ec8d0335f80c0c7e966abee085fc255b029cb62c3fc0b399
description: Represents a custom report. This metadata type only supports custom reports; standard reports aren’t supported.
---
# Report

Represents a custom report. This metadata type only supports custom reports; standard reports aren’t supported.

![Important](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

Redeploying a report with the same fullName as a previously deleted report via Metadata API restores the deleted report instead of creating a new one, even if the report was removed from the Recycle Bin. The restored report keeps its original Id, CreatedDate, and CreatedById.

## Declarative Metadata File Suffix and Directory Location

Reports are stored in the reports directory of the package directory. The file name consists of the report title with the extension .report.

## Retrieving Reports

You can’t use the wildcard (\*) symbol with reports in package.xml.

To retrieve the list of explicit report names to populate package.xml with, first call listMetadata(ListMetadataQuery\[\]) with a [ListMetadataQuery](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_listmetadataquery.htm "The ListMetadataQuery parameter represents a list of objects that specify which components you are interested in.") entry with the type field set to ReportFolder and the folder field to \* (wildcard). This call returns an array of [FileProperties](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_retrieveresult.htm#fileproperties_intro) objects with the names of report folders in the fullName field.

Now call listMetadata with ListMetadataQuery entries where the type field is Report and the folder fields are the full name values from the first listMetadata call. These calls return FileProperties objects where the fullName field is the combination of the folder name and report name. Use these values in the package.xml to designate the members for the Report metadata type.

ReportFolder isn’t returned as a type in describeMetadata(). Report is returned from describeMetadata() with an associated attribute of inFolder set to true. If that attribute is set to true, you can construct the type by using the component name with the word Folder, such as ReportFolder.

The following example shows folders in package.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>MyDBFolder/MyDBName</members\>
        <name\>Dashboard</name\>
    </types\>
    <types\>
        <members\>MyDocumentFolder/MyDocumentName</members\>
        <name\>Document</name\>
    </types\>
    <types\>
        <members\>unfiled$public/MarketingProductInquiryResponse</members\>
        <members\>unfiled$public/SalesNewCustomerEmail</members\>
        <name\>EmailTemplate</name\>
    </types\>
    <types\>
        <members\>MyReportFolder/MyReportName</members\>
        <name\>Report</name\>
    </types\>
    <version\>68.0</version\>
                        </Package\>

To retrieve or deploy ReportFolders, use the Report metadata type in your package.xml. When you reference a nested folder by itself (without its contents), the API can misinterpret the path as a report component.

For example, the API interprets <members\>TopLevel/SubLevel</members\> as a request for a report named SubLevel.

To correctly reference the nested folder, append a trailing slash (/) to its full name. This syntax explicitly identifies the member as a folder.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>TopLevel/SubLevel/</members\>
        <members\>TopLevel/SubLevel/MyReport</members\>
        <name\>Report</name\>
    </types\>
    <version\>58.0</version\>
</Package\>
                

Omitting the trailing slash (/) for the folder causes the operation to fail with an error: "Entity of type 'Report' named 'TopLevel/SubLevel' cannot be found".

## Version

Report components are available in API version 14.0 and later.

## Fields

The following information assumes that you’re familiar with creating and running reports. For more information on these fields, see [Build a Report](https://help.salesforce.com/s/articleView?id=analytics.rd_reports_build.htm&type=5&language=en_US) in Salesforce Help.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e267">Field</th>

              <th class="featureTableHeader  " id="d806901e270">Field Type</th>

              <th class="featureTableHeader  " id="d806901e273">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">aggregateFilters</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#ReportAggregateFilter">ReportAggregateFilter</a>[]
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">List that defines filters on custom summary formulas for summary,
                matrix, and joined reports. <p class="p">Available in API version 64.0 and
                  later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">aggregates</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#ReportAggregate">ReportAggregate</a>[]
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">List that defines custom summary formulas for summary, matrix,
                and joined reports. </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname" id="block"><a name="block"><!-- --></a>block</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#" title="Represents a custom report. This metadata type only supports custom reports; standard reports aren’t supported.">Report</a>[]
              </td>

              <td class="entry" headers="d806901e273" data-title="Description"><span class="ph" id="block_desc"><a name="block_desc"><!-- --></a>Represents each block in a joined report
                  where every block can be of a different report
                  type.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname" id="blockInfo"><a name="blockInfo"><!-- --></a>blockInfo</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type"><a class="xref" href="#ReportBlockInfo">ReportBlockInfo</a></td>

              <td class="entry" headers="d806901e273" data-title="Description"><span class="ph" id="blockInfo_desc"><a name="blockInfo_desc"><!-- --></a>Defines attributes for each block in a
                  joined report.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">buckets</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#ReportBucketField">ReportBucketField</a>[]
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">Defines a bucket field to be used in the report. This field is
                available in API version 24.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">chart</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type"><a class="xref" href="#ReportChart">ReportChart</a></td>

              <td class="entry" headers="d806901e273" data-title="Description">Defines a chart for summary and matrix reports.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">colorRanges</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#ReportColorRange">ReportColorRange</a>[]
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">List that specifies conditional highlighting for report summary
                data. Salesforce Classic only.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">columns</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#ReportColumn">ReportColumn</a>[]
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">List that specifies the fields displayed in the report. Fields
                appear in the report in the same order as they appear in the
                Metadata API file.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">crossFilters</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#ReportCrossFilter">ReportCrossFilter</a>[]
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">Defines a cross filter's object, related object, and condition
                (WITH or WITHOUT). This field is available in API version <span class="ph">68.0</span> and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">currency</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <span class="keyword parmname">CurrencyIsoCode</span> (enumeration of type
                string)
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">When using multiple currencies, some reports allow you to display
                converted amounts by selecting the appropriate column to display.
                For example, in opportunity reports, you can include the Amount
                (converted) column on the report. This field is an enumeration of
                type string that defines the currency in which to display converted
                amounts. Valid values: Must be one of the valid alphabetic,
                three-letter currency ISO codes defined by the ISO 4217 standard,
                such as <samp class="codeph nolang">USD</samp>, <samp class="codeph nolang">GBP</samp><samp class="codeph nolang">SLE</samp>, or <samp class="codeph nolang">JPY</samp>.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">dataCategoryFilters</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e273" data-title="Description">Specifies a filter according to the data category.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">description</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e273" data-title="Description">Specifies a general description, which is displayed with the
                report name. Maximum characters: 255 characters.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname" id="field_division"><a name="field_division"><!-- --></a>division</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e273" data-title="Description">
                <span class="ph" id="field_division_desc"><a name="field_division_desc"><!-- --></a>If your organization uses divisions
                  to segment data and the Affected by Divisions permission is
                  enabled, records in the report must match this
                  division.</span>
                <p class="p">This field is available in API version 17.0 and
                  later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">filter</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type"><a class="xref" href="#ReportFilter">ReportFilter</a></td>

              <td class="entry" headers="d806901e273" data-title="Description">Limits report results to records with specific data. For example,
                you can limit report results to opportunities for which the amount
                is greater than
                $1,000:<div class="codeSection xml">
                  <pre class="codeblock xml"><span class="tag">&lt;filter</span>&gt;
	<span class="tag">&lt;criteriaItems</span>&gt;
		<span class="tag">&lt;column</span>&gt;AMOUNT<span class="tag">&lt;/column</span>&gt;
		<span class="tag">&lt;operator</span>&gt;greaterThan<span class="tag">&lt;/operator</span>&gt;
		<span class="tag">&lt;value</span>&gt;1000<span class="tag">&lt;/value</span>&gt;
	<span class="tag">&lt;/criteriaItems</span>&gt;
<span class="tag">&lt;/filter</span>&gt;</pre>
                </div>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname" id="report_folderName"><a name="report_folderName"><!-- --></a>folderName</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e273" data-title="Description">
                <span class="ph" id="report_folderName_desc"><a name="report_folderName_desc"><!-- --></a>Name of the folder that houses
                  the report.</span>
                <p class="p">This field is available in API version 35.0
                  and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">format</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#ReportFormat">ReportFormat</a> (enumeration of type
                string)
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">Defines the report format. For example, <samp class="codeph nolang">Tabular</samp> for a simple data list
                without subtotals.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">formattingRules</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#ReportFormattingRule">ReportFormattingRule[]</a> (enumeration
                of type string)
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">List that specifies conditional highlighting for report data.
                Lightning Experience only.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">groupingsAcross</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#ReportGrouping">ReportGrouping</a>[]
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">List that defines the fields by which you want to group and
                subtotal data across a matrix report (row headings). When grouping
                by a date field, you can further group the data by a specific time
                period such as days, weeks, or months. Maximum: 2 fields.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">groupingsDown</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#ReportGrouping">ReportGrouping</a>[]
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">For Summary and Matrix reports: List that defines the fields by
                which you want to group and subtotal. For summary reports, choosing
                more than one sort field allows you to subsort your data. For matrix
                reports, specifies summary fields for column headings. When grouping
                by a date field, you can further group the data by a specific time
                period such as days, weeks, or months. Maximum for matrix reports:
                2. Maximum for summary reports: 3</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">historicalSelector</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type"><a class="xref" href="#ReportHistoricalSelector">ReportHistoricalSelector</a></td>

              <td class="entry" headers="d806901e273" data-title="Description">
                <span class="ph" id="historicalselector_desc"><a name="historicalselector_desc"><!-- --></a>Defines a date range for which
                  historical trend reporting data is to be captured. Default is
                  “Any Historical Date.” </span>
                <p class="p">Available in API
                  version 29.0 and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">isSmartTotalDisabled</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e273" data-title="Description">
                <samp class="codeph java">false</samp> displays smart totalling
                on the report.<p class="p">Available in API version 29.0 and
                  later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">name</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e273" data-title="Description">Required. The report name. For example, <samp class="codeph nolang">Opportunity Pipeline</samp>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">numSubscriptions</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">int</td>

              <td class="entry" headers="d806901e273" data-title="Description">
                <span class="ph" id="numSubscriptions_desc"><a name="numSubscriptions_desc"><!-- --></a>Indicates whether a user has
                  subscribed to this report Lightning Experience (1) or not (0).
                  Tied to user context.</span>
                <p class="p">This field is available in API
                  version 38.0 and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">params</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#ReportParam">ReportParam</a>[]
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">List that specifies settings specific to each report type, in
                particular options that let you filter a report to obtain useful
                subsets. For example, the Activities report type lets you specify
                whether you want to see open or closed activities or both and
                whether you want to see tasks or events or both. Valid values depend
                on the report type.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="ph" id="reportCustomDetailFormula"><a name="reportCustomDetailFormula"><!-- --></a><span class="keyword parmname">customDetailFormulas</span></span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#CustomDetailFormulas">CustomDetailFormulas</a>
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">Allows you to apply row-level formulas to reports. </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname" id="reporttype"><a name="reporttype"><!-- --></a>reportType</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e273" data-title="Description">Required. Defines the type of data in the report. For example,
                <samp class="codeph xml">Opportunity</samp> to create a report
                of opportunities data.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname" id="reporttypeapiname"><a name="reporttypeapiname"><!-- --></a>reportTypeApiName</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e273" data-title="Description">Defines the API Name for the report type. <p class="p">This field is
                  available in API version 48.0 and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname" id="field_roleHierarchyFilter"><a name="field_roleHierarchyFilter"><!-- --></a>roleHierarchyFilter</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e273" data-title="Description">
                <span class="ph" id="field_roleHierarchyFilter_desc"><a name="field_roleHierarchyFilter_desc"><!-- --></a>The role name for a
                  report drill down. Some reports, such as opportunity and
                  activity reports, display Hierarchy links that allow you to
                  drill down to different datasets based on the role
                  hierarchy.</span>
                <p class="p">This field is available in API version 17.0
                  and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">rowLimit</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">int</td>

              <td class="entry" headers="d806901e273" data-title="Description">Defines the maximum number of rows that can be returned for the
                report.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">scope</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e273" data-title="Description">Defines the scope of data on which you run the report. For
                example, whether you want to run the report against all
                opportunities, opportunities you own, or opportunities your team
                owns. Valid values depend on the <span class="keyword parmname">reportType</span>.
                For example, for Accounts reports:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">MyAccounts</samp></li>

                  <li class="li"><samp class="codeph nolang">MyTeamsAccounts</samp></li>

                  <li class="li"><samp class="codeph nolang">AllAccounts</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">showCommonRowsOnly</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e273" data-title="Description">Indicates whether the report shows common rows only
                (<span class="keyword parmname">true)</span> or not (<span class="keyword parmname">false</span>).
                Default is <span class="keyword parmname">false</span>.<p class="p">Available in API version
                  67.0 and later</p>
                .</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">showCurrentDate</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e273" data-title="Description">
                <span class="ph" id="showcurrentdate_desc"><a name="showcurrentdate_desc"><!-- --></a>Can be set to <samp class="codeph java">true</samp> for historical trending
                  reports in matrix format.</span>
                <p class="p">Available in API version 29.0
                  and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">showDetails</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e273" data-title="Description">
                <samp class="codeph java">false</samp> shows a collapsed view
                of the report with only the headings, subtotals, and total. Default:
                <samp class="codeph java">true</samp>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">showGrandTotal</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e273" data-title="Description">
                <samp class="codeph java">true</samp> displays the calculated
                total for the full report.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">showSubTotals</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e273" data-title="Description">
                <samp class="codeph java">true</samp> displays the calculated
                subtotals for sections of the report.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="ph" id="sortcol"><a name="sortcol"><!-- --></a><span class="keyword parmname">sortColumn</span></span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e273" data-title="Description">Specifies the field on which to sort data in the report. Use
                <span class="keyword parmname">sortOrder</span> to specify the sort
                order.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="ph" id="SortOrder_field"><a name="SortOrder_field"><!-- --></a><span class="keyword parmname">sortOrder</span></span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">
                <a class="xref" href="#SortOrder">SortOrder</a> (enumeration of type
                string)
              </td>

              <td class="entry" headers="d806901e273" data-title="Description">Specifies the sort order. Use <span class="keyword parmname">sortColumn</span> to
                specify the field on which to sort.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname" id="field_territoryHierarchyFilter"><a name="field_territoryHierarchyFilter"><!-- --></a>territoryHierarchyFilter</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e273" data-title="Description">
                <span class="ph" id="field_territoryHierarchyFilter_desc"><a name="field_territoryHierarchyFilter_desc"><!-- --></a>The territory name
                  for a report drill down. If your organization uses territory
                  management, some reports display Hierarchy links that allow you
                  to drill down to different datasets based on the territory
                  hierarchy.</span>
                <p class="p">This field is available in API version 17.0
                  and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname">timeFrameFilter</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type"><a class="xref" href="#ReportTimeFrameFilter">ReportTimeFrameFilter</a></td>

              <td class="entry" headers="d806901e273" data-title="Description">Limits report results to records within a specified time
                frame.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e267" data-title="Field"><span class="keyword parmname" id="field_userFilter"><a name="field_userFilter"><!-- --></a>userFilter</span></td>

              <td class="entry" headers="d806901e270" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e273" data-title="Description">
                <span class="ph" id="field_userFilter_desc"><a name="field_userFilter_desc"><!-- --></a>The username for a report drill
                  down. Some reports, such as opportunity and activity reports,
                  display Hierarchy links that allow you to drill down to
                  different datasets based on the user hierarchy.</span>
                <p class="p">This
                  field is available in API version 17.0 and later.</p>
              </td>

            </tr>

          </tbody>

        </table>

## ReportAggregateFilter

ReportAggregateFilter defines custom summary formula filters on summary, matrix, and joined reports.

| Field | Field Type | Description |
| --- | --- | --- |
| aggregate | string | Required. The name of the report aggregate to apply the filter to. |
| operator | string | Required. The filter operator. |
| value | string | Required. The filter value. |

## ReportAggregate

ReportAggregate defines custom summary formulas on summary, matrix, and joined reports. For more information on these fields, see [Add a Summary Formula Column to a Report](https://help.salesforce.com/s/articleView?id=analytics.building_custom_summary_formulas.htm&type=5&language=en_US) in Salesforce Help.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e1080">Field</th>

              <th class="featureTableHeader  " id="d806901e1083">Field Type</th>

              <th class="featureTableHeader  " id="d806901e1086">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e1080" data-title="Field"><span class="keyword parmname">acrossGroupingContext</span></td>

              <td class="entry" headers="d806901e1083" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1086" data-title="Description">Defines the row grouping level at which you want your custom
                summary formula to be displayed. This field is available in API
                version 15.0.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1080" data-title="Field"><span class="keyword parmname">calculatedFormula</span></td>

              <td class="entry" headers="d806901e1083" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1086" data-title="Description">Required. The custom summary formula. For example, <samp class="codeph xml">AMOUNT:SUM + OPP_QUANTITY:SUM</samp>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1080" data-title="Field"><span class="keyword parmname">datatype</span></td>

              <td class="entry" headers="d806901e1083" data-title="Field Type">
                <a class="xref" href="#ReportAggregateDatatype">ReportAggregateDatatype</a> (enumeration
                of type string)
              </td>

              <td class="entry" headers="d806901e1086" data-title="Description">Required. Specifies the data type for formatting and display of
                the custom summary formula results.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1080" data-title="Field"><span class="keyword parmname">description</span></td>

              <td class="entry" headers="d806901e1083" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1086" data-title="Description">The custom summary formula description. Maximum: 255
                characters.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1080" data-title="Field"><span class="keyword parmname">developerName</span></td>

              <td class="entry" headers="d806901e1083" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1086" data-title="Description">Required. The internal development name of the custom summary
                formula, for example, <samp class="codeph nolang">FORMULA1</samp>.
                This name is used to reference custom summary formulas from other
                report components, including conditional highlighting.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1080" data-title="Field"><span class="keyword parmname">downGroupingContext</span></td>

              <td class="entry" headers="d806901e1083" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1086" data-title="Description">Defines the column grouping level at which you want your custom
                summary formula to be displayed. This field is available in API
                version 15.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1080" data-title="Field"><span class="keyword parmname">isActive</span></td>

              <td class="entry" headers="d806901e1083" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e1086" data-title="Description">Required. <samp class="codeph java">true</samp> displays the
                formula result in the report. <samp class="codeph java">false</samp> doesn’t display the result in the
                report.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1080" data-title="Field"><span class="keyword parmname">isCrossBlock</span></td>

              <td class="entry" headers="d806901e1083" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e1086" data-title="Description">
                <span class="ph" id="isCrossBlockDef"><a name="isCrossBlockDef"><!-- --></a>Determines whether the custom summary
                  formula is a cross-block formula, which is available with joined
                  reports. <samp class="codeph java">true</samp> indicates a
                  cross-block custom summary formula. <samp class="codeph java">false</samp> indicates a standard custom summary
                  formula.</span>
                <p class="p">This field is available in API version 25.0 and
                  later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1080" data-title="Field"><span class="keyword parmname">masterLabel</span></td>

              <td class="entry" headers="d806901e1083" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1086" data-title="Description">Required. The custom summary formula label (name). </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1080" data-title="Field"><span class="keyword parmname" id="reportType"><a name="reportType"><!-- --></a>reportType</span></td>

              <td class="entry" headers="d806901e1083" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1086" data-title="Description">
                <span class="ph" id="reportType_desc"><a name="reportType_desc"><!-- --></a>Required for joined reports. Specifies
                  the <span class="keyword parmname">reportType</span> of the blocks to which the
                  <span class="keyword parmname">aggregate</span> can be added.</span>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1080" data-title="Field"><span class="keyword parmname">scale</span></td>

              <td class="entry" headers="d806901e1083" data-title="Field Type">int</td>

              <td class="entry" headers="d806901e1086" data-title="Description">The formula result is calculated to the specified number of
                decimal places. Valid values <samp class="codeph nolang">0</samp>
                through <samp class="codeph nolang">18</samp>.</td>

            </tr>

          </tbody>

        </table>

## ReportBlockInfo

ReportBlockInfo defines blocks in a joined report.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e1300">Field</th>

              <th class="featureTableHeader  " id="d806901e1303">Field Type</th>

              <th class="featureTableHeader  " id="d806901e1306">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e1300" data-title="Field"><span class="keyword parmname">aggregateReferences</span></td>

              <td class="entry" headers="d806901e1303" data-title="Field Type">
                <a class="xref" href="#ReportAggregateReference">ReportAggregateReference</a>[]
              </td>

              <td class="entry" headers="d806901e1306" data-title="Description">Lists the <span class="keyword parmname">aggregates</span> that represent the
                custom summary formulas used in a joined report block. </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1300" data-title="Field"><span class="keyword parmname">blockId</span></td>

              <td class="entry" headers="d806901e1303" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1306" data-title="Description">
                <span class="ph" id="blockIDDef"><a name="blockIDDef"><!-- --></a>Required. <span class="keyword parmname">blockId</span> is
                  used in cross-block custom summary formulas and joined report
                  charts to identify the block containing each summary field.
                  <span class="keyword parmname">blockId</span> is assigned automatically.
                  Valid values are B1 through B5. </span>
                <p class="p">This field is available
                  in API version 25.0 and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1300" data-title="Field"><span class="keyword parmname">joinTable</span></td>

              <td class="entry" headers="d806901e1303" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1306" data-title="Description">Required. Refers to the entity used to join blocks in a joined
                report. The entity provides a list of fields that are available for
                globally grouping across the blocks.</td>

            </tr>

          </tbody>

        </table>

## ReportAggregateReference

ReportAggregateReference defines the developer name used for custom summary formulas in joined reports.

| Field | Field Type | Description |
| --- | --- | --- |
| aggregate | string | Required. The developerName of the ReportAggregate, which specifies the custom summary formula used in a block of a joined report. |

## ReportBucketField

ReportBucketField defines a bucket to be used in the report.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e1449">Field</th>

              <th class="featureTableHeader  " id="d806901e1452">Field Type</th>

              <th class="featureTableHeader  " id="d806901e1455">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e1449" data-title="Field"><span class="keyword parmname">bucketType</span></td>

              <td class="entry" headers="d806901e1452" data-title="Field Type">ReportBucketFieldType (enumeration of type string)</td>

              <td class="entry" headers="d806901e1455" data-title="Description">Required. Specifies the type of bucket. Valid values:<ul class="ul bulletList">
                  <li class="li">text</li>

                  <li class="li">number</li>

                  <li class="li">picklist</li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1449" data-title="Field"><span class="keyword parmname">developerName</span></td>

              <td class="entry" headers="d806901e1452" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1455" data-title="Description">Required. A unique name used as the <samp class="codeph xml"><span class="tag">&lt;field</span>&gt;</samp> value to display a bucket field in the
                column list and other report components, including sort, filter,
                list, group, and chart. Must be of the format <samp class="codeph nolang">BucketField_<var class="keyword varname">name</var></samp>. For example, <samp class="codeph nolang">BucketField_BusinessSize</samp>.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1449" data-title="Field"><span class="keyword parmname">masterLabel</span></td>

              <td class="entry" headers="d806901e1452" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1455" data-title="Description">Required. The bucket field label. Maximum 40 characters. Any line
                breaks, tabs, or multiple spaces at the beginning or end of the
                label are removed. Any of these characters within the label are
                reduced to a single space.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1449" data-title="Field"><span class="keyword parmname">nullTreatment</span></td>

              <td class="entry" headers="d806901e1452" data-title="Field Type">ReportBucketFieldNullTreatment (enumeration of type
                string)</td>

              <td class="entry" headers="d806901e1455" data-title="Description">For numeric bucket fields only. Specifies whether empty values
                are treated as zeros (<samp class="codeph nolang">z</samp>) or not
                (<samp class="codeph nolang">n</samp>).</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1449" data-title="Field"><span class="keyword parmname">otherBucketLabel</span></td>

              <td class="entry" headers="d806901e1452" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1455" data-title="Description">The label of the container for unbucketed values.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1449" data-title="Field"><span class="keyword parmname">sourceColumnName</span></td>

              <td class="entry" headers="d806901e1452" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1455" data-title="Description">Required. The source field that the bucket is applied to. For
                example, <samp class="codeph nolang">SALES</samp> or <samp class="codeph nolang">INDUSTRY</samp>.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1449" data-title="Field"><span class="keyword parmname" id="BucketFieldValues"><a name="BucketFieldValues"><!-- --></a>values</span></td>

              <td class="entry" headers="d806901e1452" data-title="Field Type">
                <a class="xref" href="#ReportBucketFieldValue">ReportBucketFieldValue</a>
                (enumeration of type string)
              </td>

              <td class="entry" headers="d806901e1455" data-title="Description">Defines one bucket value used in the bucket field.<p class="p">While this
                  name is plural, it represents a single bucket. In typical use, a
                  bucket field contains multiple buckets.</p>
              </td>

            </tr>

          </tbody>

        </table>

## ReportBucketFieldValue

ReportBucketFieldValue defines a bucket value used in the bucket field.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e1619">Field</th>

              <th class="featureTableHeader  " id="d806901e1622">Field Type</th>

              <th class="featureTableHeader  " id="d806901e1625">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e1619" data-title="Field"><span class="keyword parmname">sourceValues</span></td>

              <td class="entry" headers="d806901e1622" data-title="Field Type">ReportBucketFieldSourceValue (enumeration of type string)</td>

              <td class="entry" headers="d806901e1625" data-title="Description">The value of a bucket in the bucket field. Valid values:<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">sourceValue</samp>—Used
                    for picklist and text bucket fields. For picklists,
                    describes the picklist item in the bucket. For example, the
                    sourceValue of a bucket on <samp class="codeph nolang">TYPE</samp> could be <samp class="codeph nolang">Customer</samp>. For text, the full string for the
                    item in the bucket. For example, the sourceValue of a bucket
                    on <samp class="codeph nolang">ADDRESS_STATE1</samp> could
                    be <samp class="codeph nolang">NY</samp>.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">from</samp>—Used only
                    on numeric bucket fields. A non-inclusive lower bound for a
                    numeric bucket range. This value must be a number.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">to</samp>—Used only on
                    numeric bucket fields. The inclusive upper bound for a
                    numeric bucket range. This value must be a number.
                  </li>

                </ul>
                <p class="p">In numeric buckets, the first value must only have <samp class="codeph nolang">to</samp> and last value must only
                  have <samp class="codeph nolang">from</samp>. All other values
                  must have both <samp class="codeph nolang">to</samp> and
                  <samp class="codeph nolang">from</samp>.
                </p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1619" data-title="Field"><span class="keyword parmname">value</span></td>

              <td class="entry" headers="d806901e1622" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1625" data-title="Description">Required. The name of a specific bucket value within the bucket
                field.</td>

            </tr>

          </tbody>

        </table>

## ReportGrouping

ReportGrouping defines how to group, subtotal, and sort data for summary, matrix, and joined reports.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e1727">Field</th>

              <th class="featureTableHeader  " id="d806901e1730">Field Type</th>

              <th class="featureTableHeader  " id="d806901e1733">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e1727" data-title="Field"><span class="keyword parmname" id="aggregatetype"><a name="aggregatetype"><!-- --></a>aggregateType</span></td>

              <td class="entry" headers="d806901e1730" data-title="Field Type">ReportAggrType (enumeration of type string) </td>

              <td class="entry" headers="d806901e1733" data-title="Description">
                <span class="ph" id="aggregateTypeDesc"><a name="aggregateTypeDesc"><!-- --></a>The type of aggregate value to sort
                  by.</span> Valid values are:<a name="aggregateTypeValues"><!-- --></a>
                <ul class="ul bulletList" id="aggregateTypeValues">
                  <li class="li"><samp class="codeph nolang">Sum</samp></li>

                  <li class="li"><samp class="codeph nolang">Average</samp></li>

                  <li class="li"><samp class="codeph nolang">Maximum</samp></li>

                  <li class="li"><samp class="codeph nolang">Minimum</samp></li>

                  <li class="li"><samp class="codeph nolang">RowCount</samp></li>

                  <li class="li"><samp class="codeph nolang">Unique</samp></li>

                  <li class="li"><samp class="codeph nolang">Median</samp></li>

                  <li class="li"><samp class="codeph nolang">Noop</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1727" data-title="Field"><span class="keyword parmname">dateGranularity</span></td>

              <td class="entry" headers="d806901e1730" data-title="Field Type">
                <a class="xref" href="#UserDateGranularity">UserDateGranularity</a> (enumeration of
                type string)
              </td>

              <td class="entry" headers="d806901e1733" data-title="Description">When grouping by a date field, the time period by which to
                group.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1727" data-title="Field"><span class="keyword parmname">field</span></td>

              <td class="entry" headers="d806901e1730" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1733" data-title="Description">Required. The field by which you want to summarize data. For
                example, <samp class="codeph nolang">CAMPAIGN_SOURCE</samp>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1727" data-title="Field"><span class="keyword parmname">hierarchyApiName</span></td>

              <td class="entry" headers="d806901e1730" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1733" data-title="Description">The hierarchy API name for this report.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1727" data-title="Field"><span class="keyword parmname">sortByName</span></td>

              <td class="entry" headers="d806901e1730" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1733" data-title="Description">The API name of the column, aggregate, or custom summary field
                used to order the grouping.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1727" data-title="Field"><span class="keyword parmname">sortOrder</span></td>

              <td class="entry" headers="d806901e1730" data-title="Field Type"><a class="xref" href="#SortOrder">SortOrder</a></td>

              <td class="entry" headers="d806901e1733" data-title="Description">Required. Whether to sort data in ascending or descending
                alphabetical and numerical order.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e1727" data-title="Field"><span class="keyword parmname">sortType</span></td>

              <td class="entry" headers="d806901e1730" data-title="Field Type">ReportSortType (enumeration of type string)</td>

              <td class="entry" headers="d806901e1733" data-title="Description">
                <span class="ph" id="sortTypeDesc"><a name="sortTypeDesc"><!-- --></a>Indicates if the grouping is sorted by a
                  column, aggregate, or custom summary field.</span> Valid values
                are:<a name="sortTypeValues"><!-- --></a>
                <ul class="ul bulletList" id="sortTypeValues">
                  <li class="li"><samp class="codeph nolang">Column</samp></li>

                  <li class="li"><samp class="codeph nolang">Aggregate</samp></li>

                  <li class="li"><samp class="codeph nolang">CustomSummaryFormula</samp></li>

                </ul>
              </td>

            </tr>

          </tbody>

        </table>

## ReportHistoricalSelector

ReportHistoricalSelector defines a date range for historical data.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e1918">Field</th>

              <th class="featureTableHeader  " id="d806901e1921">Field Type</th>

              <th class="featureTableHeader  " id="d806901e1924">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e1918" data-title="Field"><span class="keyword parmname">snapshot</span></td>

              <td class="entry" headers="d806901e1921" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e1924" data-title="Description">Represents the date value to apply a historical filter, either
                relative (in the format <samp class="codeph nolang">N_DAYS_AGO:2</samp>) or absolute (in the format <samp class="codeph nolang">yyyy-MM-dd</samp>). If unspecified, it’s
                assumed that the filter is applied to all the columns the user
                sees.<p class="p">Available in API version 29.0 and later.</p>
              </td>

            </tr>

          </tbody>

        </table>

## CustomDetailFormulas

CustomDetailFormulas defines row-level formulas for reports.

| Field | Field Type | Description |
| --- | --- | --- |
| calculatedFormula | string | Required. The custom formula. For example, AMOUNT:SUM + OPP\_QUANTITY:SUM |
| datatype | [ReportCustomDetailFormulaDatatype](#ReportCustomDetailFormulaDatatype) (enumeration of type string) | Required. Specifies the data type for formatting and display of the formula results. |
| description | string | The formula description. Maximum: 255 characters. |
| developerName | string | Required. The internal development name of the formula, for example, FORMULA1. This name is used to reference custom formulas from other report components, including conditional highlighting. |
| label | string | Required. The name that identifies this formula. |
| scale | int | The formula result is calculated to the specified number of decimal places. Valid values 0 through 18. |

## ReportCustomDetailFormulaDatatype

An enumeration of type string that specifies the data type for formatting and display of row-level formula results. Valid values:

| Enumeration Value |
| --- |
| Double |
| DateOnly |
| DateTime |
| Text |

## SortOrder

An enumeration of type string that defines the order in which data is sorted in the report fields. Valid values:

| Field | Description |
| --- | --- |
| Asc | Sorts data in ascending alphabetical and numerical order. |
| Desc | Sorts data in descending alphabetical and numerical order. |

## UserDateGranularity

An enumeration of type string that defines the time period by which to group data. Valid values:

| Enumeration Value | Description |
| --- | --- |
| None | No grouping by date |
| Day | By day |
| Week | By week |
| Month | By month |
| Quarter | By quarter |
| Year | By year |
| FiscalQuarter | By fiscal quarter. You can set the fiscal year for your organization. See [Set the Fiscal Year](https://help.salesforce.com/s/articleView?id=xcloud.setting_the_fiscal_year.htm&type=5&language=en_US) in Salesforce Help. |
| FiscalYear | By fiscal year |
| MonthInYear | By calendar month in year |
| DayInMonth | By calendar day in month |
| FiscalPeriod | When custom fiscal years are enabled: By fiscal period |
| FiscalWeek | When custom fiscal years are enabled: By fiscal week |

## ReportSummaryType

An enumeration of type string that defines how report fields are summarized. Valid values:

| Enumeration Value | Description |
| --- | --- |
| Sum | Total |
| Average | Average |
| Maximum | Largest value |
| Minimum | Smallest value |
| Unique | Unique values |
| Median | Median value |
| Noop | The summary is a no-op. |
| None | The field isn’t summarized. |

## ReportColorRange

ReportColorRange defines conditional highlighting for report summary data.

| Field | Field Type | Description |
| --- | --- | --- |
| aggregate | [ReportSummaryType](#ReportSummaryType) (enumeration of type string) | Required. Defines how the field specified in columnName is summarized. For example, Sum. |
| columnName | string | Required. Specifies the field whose value ranges are represented by background colors. |
| highBreakpoint | double | Required. Specifies the number that separates the mid color from the high color. |
| highColor | string | Required. Specifies the color (in HTML format) to represent data that falls into the high number range. This color spans from the highBreakpoint value. |
| lowBreakpoint | double | Required. Specifies the number that separates the low color from the mid color. |
| lowColor | string | Required. Specifies a color (in HTML format) to represent data that falls into the low value range, below the lowBreakpoint value. |
| midColor | string | Required. Specifies a color (in HTML format) to represent data that falls into the mid value range. |

## ReportColumn

ReportColumn defines how fields (columns) are displayed in the report.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e2643">Field</th>

              <th class="featureTableHeader  " id="d806901e2646">Field Type</th>

              <th class="featureTableHeader  " id="d806901e2649">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e2643" data-title="Field"><span class="keyword parmname">aggregateTypes</span></td>

              <td class="entry" headers="d806901e2646" data-title="Field Type">
                <a class="xref" href="#ReportSummaryType">ReportSummaryType</a>[] (enumeration of
                type string)
              </td>

              <td class="entry" headers="d806901e2649" data-title="Description">List that defines if and how each report field is summarized.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e2643" data-title="Field"><span class="keyword parmname">field</span></td>

              <td class="entry" headers="d806901e2646" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e2649" data-title="Description">Required. The field name. For example, <samp class="codeph nolang">AGE</samp> or <samp class="codeph nolang">OPPORTUNITY_NAME</samp>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e2643" data-title="Field"><span class="keyword parmname">isExtendedColumn</span></td>

              <td class="entry" headers="d806901e2646" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e2649" data-title="Description">Indicates whether the column is extended
                (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>).
                <p class="p">Available in API version 65.0 and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e2643" data-title="Field"><span class="keyword parmname">reverseColors</span></td>

              <td class="entry" headers="d806901e2646" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e2649" data-title="Description">
                <span class="ph" id="reversecolors_desc"><a name="reversecolors_desc"><!-- --></a>In historical trend reports, displays
                  greater Date values as green and greater Amount values as red,
                  reversing the default colors.</span>
                <p class="p">Available in API version
                  29.0 and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e2643" data-title="Field"><span class="keyword parmname">showChanges</span></td>

              <td class="entry" headers="d806901e2646" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e2649" data-title="Description">
                <span class="ph" id="showchanges_desc"><a name="showchanges_desc"><!-- --></a>In historical trend reports, adds a
                  column displaying the difference between current and historical
                  Date and Amount values.</span>
                <p class="p">Available in API version 29.0 and later.</p>
              </td>

            </tr>

          </tbody>

        </table>

## ReportFilter

ReportFilter limits the report results by filtering data on specified fields.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e2771">Field</th>

              <th class="featureTableHeader  " id="d806901e2774">Field Type</th>

              <th class="featureTableHeader  " id="d806901e2777">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e2771" data-title="Field"><span class="keyword parmname">booleanFilter</span></td>

              <td class="entry" headers="d806901e2774" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e2777" data-title="Description">Specifies filter logic conditions.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e2771" data-title="Field"><span class="keyword parmname">criteriaItems</span></td>

              <td class="entry" headers="d806901e2774" data-title="Field Type"><a class="xref" href="#ReportFilterItem">ReportFilterItem</a></td>

              <td class="entry" headers="d806901e2777" data-title="Description">The criteria by which you want to filter report data, either by
                comparing historical values or by applying a date
                range.<div class="codeSection xml">
                  <pre class="codeblock xml"><span class="tag">&lt;criteriaItems</span>&gt;
   criteriaItems ReportFilterItem
   <span class="tag">&lt;column</span>&gt;Opportunity.Opportunity__hd$Amount__hst<span class="tag">&lt;/column</span>&gt;
   <span class="tag">&lt;columnToColumn</span>&gt;false<span class="tag">&lt;/columnToColumn</span>&gt;
   <span class="tag">&lt;operator</span>&gt;equals<span class="tag">&lt;/operator</span>&gt;
   <span class="tag">&lt;snapshot</span>&gt;N_DAYS_AGO:90<span class="tag">&lt;/snapshot</span>&gt;
   <span class="tag">&lt;value</span>&gt;100<span class="tag">&lt;/value</span>&gt;
<span class="tag">&lt;/criteriaItems</span>&gt;</pre>
                </div>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e2771" data-title="Field"><span class="keyword parmname">language</span></td>

              <td class="entry" headers="d806901e2774" data-title="Field Type">Language (enumeration of type string)</td>

              <td class="entry" headers="d806901e2777" data-title="Description">The language used when a report filters against a picklist value
                using the operators <samp class="codeph soql">contains</samp> or
                <samp class="codeph soql">startsWith</samp>. For a list of
                valid language values, see <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_translations.htm" title="Metadata type that enables work with translations for various supported languages. The ability to translate component labels is part of the Translation Workbench.">Language</a>.
              </td>

            </tr>

          </tbody>

        </table>

## ReportFilterItem

ReportFilterItem limits the report results by filtering data on specified fields.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e2869">Field</th>

              <th class="featureTableHeader  " id="d806901e2872">Field Type</th>

              <th class="featureTableHeader  " id="d806901e2875">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e2869" data-title="Field"><span class="keyword parmname">column</span></td>

              <td class="entry" headers="d806901e2872" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e2875" data-title="Description">Required. The field in which to filter data. For example, <samp class="codeph xml">AMOUNT</samp>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e2869" data-title="Field"><span class="keyword parmname">columnToColumn</span></td>

              <td class="entry" headers="d806901e2872" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e2875" data-title="Description">
                <p class="p">Indicates whether the filter is a column-to-column
                  (field-to-field) filter.</p>

                <p class="p">Available in API version 29.0 and later for historical trending
                  reports. Available in API version 48.0 and later for general
                  reports.</p>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e2869" data-title="Field"><span class="keyword parmname">isUnlocked</span></td>

              <td class="entry" headers="d806901e2872" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e2875" data-title="Description">Optional. Indicates whether the report filter is unlocked
                (<samp class="codeph java">true</samp>) or locked (<samp class="codeph java">false</samp>). You can edit unlocked filters
                on the report run page in Lightning Experience. If unspecified, the
                default value is <samp class="codeph java">false</samp>.<p class="p">Available in API version 38.0 and
                  later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e2869" data-title="Field"><span class="keyword parmname">operator</span></td>

              <td class="entry" headers="d806901e2872" data-title="Field Type">FilterOperation (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d806901e2875" data-title="Description">Required. An enumeration of type string that defines the operator
                used to filter the data, for example, <samp class="codeph soql">greaterThan</samp>. Valid values are: <a name="ul_msr_vtr_q3c"><!-- --></a>
                <ul class="ul bulletList" id="ul_msr_vtr_q3c">
                  <li class="li"><samp class="codeph soql">equals</samp></li>

                  <li class="li"><samp class="codeph soql">notEqual</samp></li>

                  <li class="li"><samp class="codeph soql">lessThan</samp></li>

                  <li class="li"><samp class="codeph soql">greaterThan</samp></li>

                  <li class="li"><samp class="codeph soql">lessOrEqual</samp></li>

                  <li class="li"><samp class="codeph soql">greaterOrEqual</samp></li>

                  <li class="li"><samp class="codeph soql">contains</samp></li>

                  <li class="li"><samp class="codeph soql">notContain</samp></li>

                  <li class="li"><samp class="codeph soql">startsWith</samp></li>

                  <li class="li"><samp class="codeph soql">includes</samp></li>

                  <li class="li"><samp class="codeph soql">excludes</samp></li>

                  <li class="li">
                    <samp class="codeph soql">within</samp> (<samp class="codeph nolang">DISTANCE</samp> criteria
                    only)
                  </li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e2869" data-title="Field"><span class="keyword parmname">snapshot</span></td>

              <td class="entry" headers="d806901e2872" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e2875" data-title="Description">Represents the date value, either relative (in the format <samp class="codeph nolang">N_DAYS_AGO:2</samp>) or absolute (in the
                format <samp class="codeph nolang">yyyy-MM-dd</samp>).<p class="p">Available
                  in API version 29.0 and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e2869" data-title="Field"><span class="keyword parmname">value</span></td>

              <td class="entry" headers="d806901e2872" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e2875" data-title="Description">The value by which you want to filter the data, for example,
                <samp class="codeph xml">1000</samp>. The Metadata API filter
                condition values don’t always match the values that you enter in the
                report wizard. For example, in the Metadata API dates are always
                converted to the US date format and values entered in a non-US
                English language can be converted to a standard US English
                equivalent.
              </td>

            </tr>

          </tbody>

        </table>

## ReportFormat

An enumeration of type string that defines the report format. Valid values:

| Enumeration Value | Description |
| --- | --- |
| Matrix | Summarizes data in a grid. Use to compare related totals. |
| Summary | Lists, sorts, and subtotals data. |
| Tabular | Lists data with no sorting or subtotals. |
| Joined | Joins data from different report types storing each report’s data in its own block. |

## ReportFormattingRule

Defines conditional highlighting for report summary data. You can specify up to 5 formatting rules per report.

| Field | Field Type | Description |
| --- | --- | --- |
| aggregate | [ReportFormattingSummaryType](#ReportFormattingSummaryType) (enumeration of type string) | Defines how the field specified in columnName is summarized. For example, Sum. |
| columnName | string | Required. Specifies the field whose value ranges are represented by colors. |
| values | [ReportFormattingRuleValue](#ReportFormattingRuleValue) (enumeration of type string) | Required. Specifies the background colors and associated ranges for formatted data values. |

## ReportFormattingSummaryType

An enumeration of type string that defines how report fields are summarized. Valid values:

| Enumeration Value | Description |
| --- | --- |
| Sum | Total |
| Average | Average |
| Maximum | Largest value |
| Minimum | Smallest value |
| Unique | Unique values |

## ReportFormattingRuleValue

Specifies the background colors and associated ranges for formatted data values. You can specify up to 3 background colors and 0–3 range upper bounds. Valid values:

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e3328">Field</th>

              <th class="featureTableHeader  " id="d806901e3331">Field Type</th>

              <th class="featureTableHeader  " id="d806901e3334">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e3328" data-title="Field"><span class="keyword parmname">backgroundColor</span></td>

              <td class="entry" headers="d806901e3331" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e3334" data-title="Description">(Required) Specifies a highlighting color for the field in
                <samp class="codeph nolang">columnName</samp>. Must be a valid
                hex color string such as #54C254. At least one color is required.
                You can optionally specify a different color for up to 3 ranges as
                determined by <samp class="codeph nolang">rangeUpperBound</samp>.
                If you don’t specify a color for a particular range, the background
                is transparent.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3328" data-title="Field"><span class="keyword parmname">rangeUpperBound</span></td>

              <td class="entry" headers="d806901e3331" data-title="Field Type">double</td>

              <td class="entry" headers="d806901e3334" data-title="Description">Delineates a range to which a background color applies. If you
                don’t specify an upper bound for a particular range, the bound is
                assumed to be plus infinity. The following example sets the
                background color for the Sales column to #B50E03 for aggregate sales
                less than or equal to 100, sets no background for sales from 100 to
                1000, and sets the background color to #006714 for sales greater
                than 1000. <div class="codeSection xml">
                  <pre class="codeblock xml"><span class="tag">&lt;formattingRules</span>&gt;
	<span class="tag">&lt;aggregate</span>&gt;Sum<span class="tag">&lt;/aggregate</span>&gt;
	<span class="tag">&lt;columnName</span>&gt;Sales<span class="tag">&lt;/columnName</span>&gt;
        <span class="tag">&lt;values</span>&gt;
            <span class="tag">&lt;backgroundColor</span>&gt;#B50E03<span class="tag">&lt;/backgroundColor</span>&gt; 
            <span class="tag">&lt;rangeUpperBound</span>&gt;100.0<span class="tag">&lt;/rangeUpperBound</span>&gt;
        <span class="tag">&lt;/values</span>&gt;
        <span class="tag">&lt;values</span>&gt;
            <span class="tag">&lt;rangeUpperBound</span>&gt;1000.0<span class="tag">&lt;/rangeUpperBound</span>&gt;
        <span class="tag">&lt;/values</span>&gt;
        <span class="tag">&lt;values</span>&gt;
            <span class="tag">&lt;backgroundColor</span>&gt;#006714<span class="tag">&lt;/backgroundColor</span>&gt;
        <span class="tag">&lt;/values</span>&gt;
<span class="tag">&lt;/formattingRules</span>&gt;</pre>
                </div>
              </td>

            </tr>

          </tbody>

        </table>

## ReportParam

ReportParam represents settings specific to a report type, especially options that let you filter a report to certain useful subsets.

| Field | Field Type | Description |
| --- | --- | --- |
| name | string | Required. Specifies a specific reportType setting. |
| value | string | Required. The setting value. |

## ReportAggregateDatatype

An enumeration of type string that specifies the data type for formatting and display of custom summary formula results. Valid values:

| Enumeration Value |
| --- |
| currency |
| number |
| percent |

## ReportChart

ReportChart represents charts on summary, matrix, and joined reports.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e3520">Field</th>

              <th class="featureTableHeader  " id="d806901e3523">Field Type</th>

              <th class="featureTableHeader  " id="d806901e3526">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="ph" id="backgroundColor1"><a name="backgroundColor1"><!-- --></a><span class="keyword parmname">backgroundColor1</span></span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e3526" data-title="Description">Specifies the beginning color (in HTML format) for a gradient
                color background.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="ph" id="backgroundColor2"><a name="backgroundColor2"><!-- --></a><span class="keyword parmname">backgroundColor2</span></span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e3526" data-title="Description">Specifies the end color (in HTML format) for a gradient color
                background.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">backgroundFadeDir</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">ChartBackgroundDirection (enumeration of type string)</td>

              <td class="entry" headers="d806901e3526" data-title="Description">Specifies the direction for a gradient color background. Use with
                <span class="keyword parmname">backgroundColor1</span> to specify the beginning
                color and <span class="keyword parmname">backgroundColor2</span> to specify the end
                color for the gradient design. Use white for both if you don’t want
                a background design. Valid values:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Diagonal</samp></li>

                  <li class="li"><samp class="codeph nolang">LeftToRight</samp></li>

                  <li class="li"><samp class="codeph nolang">TopToBottom</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname"><span class="ph" id="ChartSummaries"><a name="ChartSummaries"><!-- --></a>chartSummaries</span></span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">
                <a class="xref" href="#ChartSummary">ChartSummary</a>[]
              </td>

              <td class="entry" headers="d806901e3526" data-title="Description">
                <span class="ph" id="ChartSummariesDesc"><a name="ChartSummariesDesc"><!-- --></a>Specifies the summaries you want to
                  use for the chart.</span> Invalid summaries are ignored without
                notification. If there are no valid summaries, RowCount is used by
                default for the axis value. This field is available in API version
                17.0 and later.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname"><span class="ph" id="chartType"><a name="chartType"><!-- --></a>chartType</span></span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">
                <a class="xref" href="#ChartType">ChartType</a> (enumeration of type
                string)
              </td>

              <td class="entry" headers="d806901e3526" data-title="Description"><span class="ph" id="chartTypeDescription"><a name="chartTypeDescription"><!-- --></a>Required. Specifies the chart type.
                  Available chart types depend on the <span class="keyword parmname">report
                    type</span>.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname" id="EnableHoverLabels"><a name="EnableHoverLabels"><!-- --></a>enableHoverLabels</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e3526" data-title="Description">
                <span class="ph" id="EnableHoverDesc"><a name="EnableHoverDesc"><!-- --></a>Specifies whether to display values,
                  labels, and percentages when hovering over charts. Hover details
                  depend on chart type. Percentages apply to pie, donut, and
                  funnel charts only.</span> This field is available in API version
                17.0 and later.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname"><span class="ph" id="ExpandOthers"><a name="ExpandOthers"><!-- --></a>expandOthers</span></span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e3526" data-title="Description">
                <span class="ph" id="ExpandOthersDesc"><a name="ExpandOthersDesc"><!-- --></a>Specifies whether to combine all groups
                  less than or equal to 3% of the total into a single 'Others'
                  wedge or segment. Only applies to pie, donut, and funnel charts.
                  Set to <samp class="codeph java">true</samp> to show all
                  values individually on the chart; set to <samp class="codeph java">false</samp> to combine small groups
                  into 'Others.'</span> This field is available in API version 17.0
                and later.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname" id="GroupingColumn"><a name="GroupingColumn"><!-- --></a>groupingColumn</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e3526" data-title="Description"><span class="ph" id="GroupingColumnDesc"><a name="GroupingColumnDesc"><!-- --></a>Specifies the field by which to group
                  data. This data is displayed on the X-axis for vertical column
                  charts and on the Y-axis for horizontal bar charts.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">legendPosition</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">ChartLegendPosition (enumeration of type string)</td>

              <td class="entry" headers="d806901e3526" data-title="Description">Required.<p class="p">The location of the legend with respect to the chart.
                  The valid values are:</p>

                <ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Bottom</samp></li>

                  <li class="li"><samp class="codeph nolang">OnChart</samp></li>

                  <li class="li"><samp class="codeph nolang">Right</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">location</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">
                <a class="xref" href="#ChartPosition">ChartPosition</a> (enumeration of type
                string)
              </td>

              <td class="entry" headers="d806901e3526" data-title="Description">Required. Specifies whether the chart is displayed at the top or
                bottom of the report.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">secondaryGroupingColumn</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e3526" data-title="Description">For grouped chart types: Specifies the field by which to group
                the data.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">showAxisLabels</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e3526" data-title="Description">For bar and line charts: Specifies whether the chart displays
                names for each axis.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname"><span class="ph" id="showPercentage"><a name="showPercentage"><!-- --></a>showPercentage</span></span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e3526" data-title="Description"><span class="ph" id="showPercentageDescription"><a name="showPercentageDescription"><!-- --></a>Indicates if percentages are
                  displayed for wedges and segments of pie, donut, and funnel
                  charts, as well as for gauges (<samp class="codeph java">true</samp>), or not (<samp class="codeph java">false</samp>).</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname"><span class="ph" id="showTotal"><a name="showTotal"><!-- --></a>showTotal</span></span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e3526" data-title="Description"><span class="ph" id="showTotalDescription"><a name="showTotalDescription"><!-- --></a>Indicates if the total is displayed
                  for donut charts and gauges (<samp class="codeph java">true</samp>), or not (<samp class="codeph java">false</samp>).</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname"><span class="ph" id="showValues"><a name="showValues"><!-- --></a>showValues</span></span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">boolean</td>

              <td class="entry" headers="d806901e3526" data-title="Description"><span class="ph" id="showValueDescription"><a name="showValueDescription"><!-- --></a>Indicates if the values of
                  individual records or groups are displayed for charts (<samp class="codeph java">true</samp>), or not (<samp class="codeph java">false</samp>).</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">size</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">
                <a class="xref" href="#ChartSize">ReportChartSize</a> (enumeration of type
                string)
              </td>

              <td class="entry" headers="d806901e3526" data-title="Description">Required. Specifies the chart size.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname" id="SummaryAggregate"><a name="SummaryAggregate"><!-- --></a>summaryAggregate</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">
                <a class="xref" href="#ReportSummaryType">ReportSummaryType</a> (enumeration of type string)
              </td>

              <td class="entry" headers="d806901e3526" data-title="Description">Defines how to summarize the chart data. For example, <samp class="codeph soql">Sum</samp>. <span class="ph" id="SeeChartSummaries"><a name="SeeChartSummaries"><!-- --></a>No
                  longer supported in version API 17.0 and later. See
                  <span class="keyword parmname">chartSummaries</span>.</span>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">summaryAxisManualRangeEnd</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">double</td>

              <td class="entry" headers="d806901e3526" data-title="Description">When specifying the axis range manually: Defines the ending
                value.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">summaryAxisManualRangeStart</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">double</td>

              <td class="entry" headers="d806901e3526" data-title="Description">When specifying the axis range manually: Defines the starting
                value.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">summaryAxisRange</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">
                <a class="xref" href="#ChartAxisRangeOptions">ChartRangeType</a> (enumeration of type
                string)
              </td>

              <td class="entry" headers="d806901e3526" data-title="Description">Required. For bar, line, and column charts: Defines whether to
                specify the axis range manually or automatically.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname" id="SummaryColumn"><a name="SummaryColumn"><!-- --></a>summaryColumn</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e3526" data-title="Description">Required. Specifies the field by which to summarize the chart
                data. Typically this field is displayed on the Y-axis. No longer
                supported in version API 17.0 and later. See
                <span class="keyword parmname">chartSummaries</span>.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">textColor</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e3526" data-title="Description">The color (in HTML format) of the chart text and labels.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">textSize</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">int</td>

              <td class="entry" headers="d806901e3526" data-title="Description">The size of the chart text and labels. Valid values:<a name="text_size"><!-- --></a>
                <ul class="ul bulletList" id="text_size">
                  <li class="li"><samp class="codeph nolang">8</samp></li>

                  <li class="li"><samp class="codeph nolang">9</samp></li>

                  <li class="li"><samp class="codeph nolang">10</samp></li>

                  <li class="li"><samp class="codeph nolang">12</samp></li>

                  <li class="li"><samp class="codeph nolang">14</samp></li>

                  <li class="li"><samp class="codeph nolang">18</samp></li>

                  <li class="li"><samp class="codeph nolang">24</samp></li>

                  <li class="li"><samp class="codeph nolang">36</samp></li>

                </ul>
                <p class="p">The maximum size is 18. Larger values are shown at 18
                  points.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">title</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e3526" data-title="Description">The chart title. Max 255 characters.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">titleColor</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e3526" data-title="Description">The color (in HTML format) of the title text.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e3520" data-title="Field"><span class="keyword parmname">titleSize</span></td>

              <td class="entry" headers="d806901e3523" data-title="Field Type">int</td>

              <td class="entry" headers="d806901e3526" data-title="Description">The size of the title text. Valid values:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">8</samp></li>

                  <li class="li"><samp class="codeph nolang">9</samp></li>

                  <li class="li"><samp class="codeph nolang">10</samp></li>

                  <li class="li"><samp class="codeph nolang">12</samp></li>

                  <li class="li"><samp class="codeph nolang">14</samp></li>

                  <li class="li"><samp class="codeph nolang">18</samp></li>

                  <li class="li"><samp class="codeph nolang">24</samp></li>

                  <li class="li"><samp class="codeph nolang">36</samp></li>

                </ul>
                <p class="p">The maximum size is 18. Larger values are shown at 18
                  points.</p>
              </td>

            </tr>

          </tbody>

        </table>

## ChartType

An enumeration of type string that defines the chart type. For information on each of these chart types, see [Chart Types](https://help.salesforce.com/s/articleView?id=analytics.chart_types.htm&type=5&language=en_US) in Salesforce Help. Valid values:

<table class="featureTable sort_table" summary="">

          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e4087">Enumeration Value</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">None</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">HorizontalBar</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">HorizontalBarGrouped</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">HorizontalBarStacked</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">HorizontalBarStackedTo100</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">VerticalColumn</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">VerticalColumnGrouped</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">VerticalColumnStacked</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">VerticalColumnStackedTo100</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">Line</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">LineGrouped</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">LineCumulative</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">LineCumulativeGrouped</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">Pie</span></td>

            </tr>

            <tr valign="top">
              <td class="vertical-align-top " headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">Donut</span></td>

            </tr>

            <tr valign="top">
              <td class="vertical-align-top " headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">Funnel</span></td>

            </tr>

            <tr valign="top">
              <td class="vertical-align-top " headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">Scatter</span></td>

            </tr>

            <tr valign="top">
              <td class="vertical-align-top " headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname">ScatterGrouped</span></td>

            </tr>

            <tr valign="top">
              <td class="vertical-align-top " headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname" id="ChartTypeVCL"><a name="ChartTypeVCL"><!-- --></a>VerticalColumnLine</span></td>

            </tr>

            <tr valign="top">
              <td class="vertical-align-top " headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname" id="ChartTypeVCGL"><a name="ChartTypeVCGL"><!-- --></a>VerticalColumnGroupedLine</span></td>

            </tr>

            <tr valign="top">
              <td class="vertical-align-top " headers="d806901e4087" data-title="Enumeration Value"><span class="keyword parmname" id="ChartTypeVCSL"><a name="ChartTypeVCSL"><!-- --></a>VerticalColumnStackedLine</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4087" data-title="Enumeration Value">
                <span class="keyword parmname" id="ChartTypePlugin"><a name="ChartTypePlugin"><!-- --></a>Plugin</span>
                <p class="p">Reserved for
                  future use. This value is available in API version 31.0 and
                  later.</p>
              </td>

            </tr>

          </tbody>

        </table>

## ChartPosition

An enumeration of type string that specifies the position of the chart in the report. Valid values:

| Enumeration Value |
| --- |
| CHART\_TOP |
| CHART\_BOTTOM |

## ChartSummary

ChartSummary defines how data in the chart is summarized. Valid values:

| Field | Field Type | Description |
| --- | --- | --- |
| aggregate | [ReportSummaryType](#ReportSummaryType) | Specifies the aggregation method—such as Sum, Average, Min, and Max—for the summary value. Use the column field to specify the summary value to use for the aggregation. You don't need to specify this field for RowCount or custom summary formulas. |
| axisBinding | [ChartAxis](#ChartAxis) | Specifies the axis or axes to use on the chart. Use the column field to specify the summary value to use for the axis. |
| column | string | Required. Specifies the summary field for the chart data. If all columns are invalid, RowCount is used by default for the axis value. For vertical column and horizontal bar combination charts, you can specify up to four values. |

## ChartAxis

An enumeration of type string that specifies the axis or axes to be used in charts. Valid values:

| Enumeration Value | Description |
| --- | --- |
| x | The summary value to use for the X-axis of a scatter chart. |
| y | The Y-axis for the chart. |
| y2 | The secondary Y-axis for vertical column combination charts with a line added. |

## ReportChartSize

An enumeration of type string that specifies the chart size. Valid values:

| Enumeration Value |
| --- |
| Tiny |
| Small |
| Medium |
| Large |
| Huge |

## ChartRangeType

An enumeration of type string that defines the report format. Valid values:

| Enumeration Value |
| --- |
| Auto |
| Manual |

## ReportTimeFrameFilter

ReportTimeFrameFilter represents the report time period.

| Field | Field Type | Description |
| --- | --- | --- |
| dateColumn | string | Required. The date field on which to filter data. For example, CLOSE\_DATE |
| endDate | date | When interval is INTERVAL\_CUSTOM, specifies the end of the custom time period. |
| interval | [UserDateInterval](#UserDateInterval) (enumeration of type string) | Required. Specifies the period. |
| startDate | date | When interval is INTERVAL\_CUSTOM, specifies the start of the custom time period. |

## ReportCrossFilter

ReportCrossFilter represents the cross filter functionality in reports.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d806901e4716">Field</th>

              <th class="featureTableHeader  " id="d806901e4719">Field Type</th>

              <th class="featureTableHeader  " id="d806901e4722">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d806901e4716" data-title="Field"><span class="keyword parmname">criteriaItems</span></td>

              <td class="entry" headers="d806901e4719" data-title="Field Type"><a class="xref" href="#ReportFilterItem">ReportFilterItem</a></td>

              <td class="entry" headers="d806901e4722" data-title="Description">Represents the subfilters of a cross filter. There can be up to
                five subfilters. This field requires the following attributes.<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Column</samp></li>

                  <li class="li"><samp class="codeph nolang">Operator</samp></li>

                  <li class="li"><samp class="codeph nolang">Value</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4716" data-title="Field"><span class="keyword parmname">operation</span></td>

              <td class="entry" headers="d806901e4719" data-title="Field Type">ObjectFilterOperator (Enumeration of type string)</td>

              <td class="entry" headers="d806901e4722" data-title="Description">The action indicating whether to include or exclude an object.
                Valid values: <samp class="codeph nolang">with</samp> and <samp class="codeph nolang">without</samp>.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4716" data-title="Field"><span class="keyword parmname">primaryTableColumn</span></td>

              <td class="entry" headers="d806901e4719" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e4722" data-title="Description">The field from the parent object used for the cross
                filter.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4716" data-title="Field"><span class="keyword parmname">relatedTable</span></td>

              <td class="entry" headers="d806901e4719" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e4722" data-title="Description">The child object used for the cross filter.</td>

            </tr>

            <tr>
              <td class="entry" headers="d806901e4716" data-title="Field"><span class="keyword parmname">relatedTableJoinColumn</span></td>

              <td class="entry" headers="d806901e4719" data-title="Field Type">string</td>

              <td class="entry" headers="d806901e4722" data-title="Description">The field from the child object that is used to join the
                parent.</td>

            </tr>

          </tbody>

        </table>

## Declarative Metadata Sample Definition

A sample XML snippet using cross filters to build an Accounts report for cases where case status isn’t closed:

    <crossFilters\>
        <criteriaItems\>
            <column\>Status</column\>
            <operator\>notequal</operator\>
            <value\>Closed</value\>
        </criteriaItems\>
        <operation\>with</operation\>
        <primaryTableColumn\>ACCOUNT\_ID</primaryTableColumn\>
        <relatedTable\>Case</relatedTable\>
        <relatedTableJoinColumn\>Account</relatedTableJoinColumn\>
    </crossFilters\>

![Note](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note.png)

#### Note

This sample was generated using the API version 23.0.

## UserDateInterval

An enumeration of type string that defines the period. Valid values:

| Enumeration Value | Description |
| --- | --- |
| INTERVAL\_CURRENT | Current fiscal quarter |
| INTERVAL\_CURNEXT1 | Current and next fiscal quarters |
| INTERVAL\_CURPREV1 | Current and previous fiscal quarters |
| INTERVAL\_NEXT1 | Next fiscal quarter |
| INTERVAL\_PREV1 | Previous fiscal quarter |
| INTERVAL\_CURNEXT3 | Current and next three fiscal quarters |
| INTERVAL\_CURFY | Current fiscal year |
| INTERVAL\_PREVFY | Previous fiscal year |
| INTERVAL\_PREV2FY | Previous two fiscal years |
| INTERVAL\_AGO2FY | Two fiscal years ago |
| INTERVAL\_NEXTFY | Next fiscal year |
| INTERVAL\_PREVCURFY | Current and previous fiscal years |
| INTERVAL\_PREVCUR2FY | Current and previous two fiscal years |
| INTERVAL\_CURNEXTFY | Current and next fiscal year |
| INTERVAL\_CUSTOM | A custom time period. Use startDate and endDate fields to specify the time period's start date and end date. |
| INTERVAL\_YESTERDAY | Yesterday |
| INTERVAL\_TODAY | Today |
| INTERVAL\_TOMORROW | Tomorrow |
| INTERVAL\_LASTWEEK | Last calendar week |
| INTERVAL\_THISWEEK | This calendar week |
| INTERVAL\_NEXTWEEK | Next calendar week |
| INTERVAL\_LASTMONTH | Last calendar month |
| INTERVAL\_THISMONTH | This calendar month |
| INTERVAL\_NEXTMONTH | Next calendar month |
| INTERVAL\_LASTTHISMONTH | Current and previous calendar months |
| INTERVAL\_THISNEXTMONTH | Current and next calendar months |
| INTERVAL\_CURRENTQ | Current calendar quarter |
| INTERVAL\_CURNEXTQ | Current and next calendar quarters |
| INTERVAL\_CURPREVQ | Current and previous calendar quarters |
| INTERVAL\_NEXTQ | Next calendar quarter |
| INTERVAL\_PREVQ | Previous calendar quarter |
| INTERVAL\_CURNEXT3Q | Current and next three calendar quarters |
| INTERVAL\_CURY | Current calendar year |
| INTERVAL\_PREVY | Previous calendar year |
| INTERVAL\_PREV2Y | Previous two calendar years |
| INTERVAL\_AGO2Y | Two calendar years ago |
| INTERVAL\_NEXTY | Next calendar year |
| INTERVAL\_PREVCURY | Current and previous calendar years |
| INTERVAL\_PREVCUR2Y | Current and previous two calendar years |
| INTERVAL\_CURNEXTY | Current and next calendar years |
| INTERVAL\_LAST7 | Last 7 days |
| INTERVAL\_LAST30 | Last 30 days |
| INTERVAL\_LAST60 | Last 60 days |
| INTERVAL\_LAST90 | Last 90 days |
| INTERVAL\_LAST120 | Last 120 days |
| INTERVAL\_NEXT7 | Next 7 days |
| INTERVAL\_NEXT30 | Next 30 days |
| INTERVAL\_NEXT60 | Next 60 days |
| INTERVAL\_NEXT90 | Next 90 days |
| INTERVAL\_NEXT120 | Next 120 days |
| LAST\_FISCALWEEK | When custom fiscal years are enabled: Last fiscal week |
| THIS\_FISCALWEEK | When custom fiscal years are enabled: This fiscal week |
| NEXT\_FISCALWEEK | When custom fiscal years are enabled: Next fiscal week |
| LAST\_FISCALPERIOD | When custom fiscal years are enabled: Last fiscal period |
| THIS\_FISCALPERIOD | When custom fiscal years are enabled: This fiscal period |
| NEXT\_FISCALPERIOD | When custom fiscal years are enabled: Next fiscal period |
| LASTTHIS\_FISCALPERIOD | When custom fiscal years are enabled: This fiscal period and last fiscal period |
| THISNEXT\_FISCALPERIOD | When custom fiscal years are enabled: This fiscal period and next fiscal period |
| CURRENT\_ENTITLEMENT\_PERIOD | Current entitlement period |
| PREVIOUS\_ENTITLEMENT\_PERIOD | Previous entitlement period |
| PREVIOUS\_TWO\_ENTITLEMENT\_PERIODS | Previous two entitlement periods |
| TWO\_ENTITLEMENT\_PERIODS\_AGO | Two entitlement periods ago |
| CURRENT\_AND\_PREVIOUS\_ENTITLEMENT\_PERIOD | Current and previous entitlement period |
| CURRENT\_AND\_PREVIOUS\_TWO\_ENTITLEMENT\_PERIODS | Current and previous two entitlement periods |

## Declarative Metadata Sample Definition

A sample XML report definition:

<?xml version="1.0" encoding="UTF-8"?>
<Report xmlns="http://soap.sforce.com/2006/04/metadata">
    <aggregates\>
        <acrossGroupingContext\>CRT\_Object\_\_c$Id</acrossGroupingContext\>
        <calculatedFormula\>PREVGROUPVAL(CRT\_Object\_\_c.Currency\_\_c:AVG, CRT\_Object\_\_c.Id) \*
                PARENTGROUPVAL(CRT\_Object\_\_c.Number\_\_c:MAX, CRT\_Object\_\_c.CreatedBy.Name, 
                COLUMN\_GRAND\_SUMMARY)/RowCount</calculatedFormula\>
        <datatype\>number</datatype\>
        <developerName\>FORMULA1</developerName\>
        <downGroupingContext\>CRT\_Object\_\_c$CreatedBy</downGroupingContext\>
        <isActive\>true</isActive\>
        <masterLabel\>CurrCSF</masterLabel\>
        <scale\>2</scale\>
    </aggregates\>
    <aggregates\>
        <acrossGroupingContext\>CRT\_Object\_\_c$LastModifiedDate</acrossGroupingContext\>
        <calculatedFormula\>IF(RowCount&gt;10, 
                BLANKVALUE(ROUND(PREVGROUPVAL(CRT\_Object\_\_c.Currency\_\_c:SUM, 
                CRT\_Object\_\_c.LastModifiedDate),3), 
                PARENTGROUPVAL(CRT\_Object\_\_c.Number\_\_c:SUM, ROW\_GRAND\_SUMMARY, 
                CRT\_Object\_\_c.Id))  , 1000)</calculatedFormula\>
        <datatype\>number</datatype\>
        <developerName\>FORMULA2</developerName\>
        <downGroupingContext\>GRAND\_SUMMARY</downGroupingContext\>
        <isActive\>true</isActive\>
        <masterLabel\>numCSF</masterLabel\>
        <scale\>2</scale\>
    </aggregates\>
    <buckets\>
        <bucketType\>number</bucketType\>
        <developerName\>BucketField\_BusinessSize</developerName\>
        <masterLabel\>NumericBucket</masterLabel\>
        <nullTreatment\>z</nullTreatment\>
        <sourceColumnName\>SALES</sourceColumnName\>
        <values\>
            <sourceValues\>
                <to\>10000</to\>
            </sourceValues\>
            <value\>low</value\>
        </values\>
        <values\>
            <sourceValues\>
                <from\>10000</from\>
                <to\>25000</to\>
            </sourceValues\>
            <value\>mid</value\>
        </values\>
        <values\>
            <sourceValues\>
                <from\>25000</from\>
            </sourceValues\>
            <value\>high</value\>
        </values\>
    </buckets\>
    <buckets\>
        <bucketType\>text</bucketType\>
        <developerName\>BucketField\_Region</developerName\>
        <masterLabel\>TextBucket</masterLabel\>
        <nullTreatment\>n</nullTreatment\>
        <otherBucketLabel\>Other</otherBucketLabel\>
        <sourceColumnName\>ADDRESS1\_STATE</sourceColumnName\>
        <values\>
            <sourceValues\>
                <sourceValue\>CA</sourceValue\>
            </sourceValues\>
            <value\>west</value\>
        </values\>
        <values\>
            <sourceValues\>
                <sourceValue\>NY</sourceValue\>
            </sourceValues\>
            <sourceValues\>
                <sourceValue\>Ontario</sourceValue\>
            </sourceValues\>
            <value\>east</value\>
        </values\>
    </buckets\>
    <chart\>
        <backgroundColor1\>#FFFFFF</backgroundColor1\>
        <backgroundColor2\>#FFFFFF</backgroundColor2\>
        <backgroundFadeDir\>Diagonal</backgroundFadeDir\>
        <chartSummaries\>
            <axisBinding\>y</axisBinding\>
            <column\>FORMULA1</column\>
        </chartSummaries\>
        <chartSummaries\>
            <axisBinding\>y</axisBinding\>
            <column\>FORMULA2</column\>
        </chartSummaries\>
        <chartSummaries\>
            <aggregate\>Maximum</aggregate\>
            <axisBinding\>y</axisBinding\>
            <column\>CRT\_Object\_\_c$Number\_\_c</column\>
        </chartSummaries\>
        <chartSummaries\>
            <axisBinding\>y</axisBinding\>
            <column\>RowCount</column\>
        </chartSummaries\>
        <chartType\>VerticalColumn</chartType\>
        <groupingColumn\>CRT\_Object\_\_c$LastModifiedDate</groupingColumn\>
        <legendPosition\>Right</legendPosition\>
        <location\>CHART\_TOP</location\>
        <size\>Medium</size\>
        <summaryAxisRange\>Auto</summaryAxisRange\>
        <textColor\>#000000</textColor\>
        <textSize\>12</textSize\>
        <titleColor\>#000000</titleColor\>
        <titleSize\>18</titleSize\>
    </chart\>
    <columns\>
        <field\>CRT\_Object\_\_c$Name</field\>
    </columns\>
    <columns\>
        <aggregateTypes\>Average</aggregateTypes\>
        <field\>CRT\_Object\_\_c$Currency\_\_c</field\>
    </columns\>
    <columns\>
        <aggregateTypes\>Maximum</aggregateTypes\>
        <field\>CRT\_Object\_\_c$Number\_\_c</field\>
    </columns\>
    <columns\>
        <field\>BucketField\_\_Region</field\>
    </columns\>
    <format\>Matrix</format\>
    <groupingsAcross\>
        <dateGranularity\>Day</dateGranularity\>
        <field\>CRT\_Object\_\_c$Id</field\>
        <sortOrder\>Asc</sortOrder\>
    </groupingsAcross\>
    <groupingsAcross\>
        <dateGranularity\>Year</dateGranularity\>
        <field\>CRT\_Object\_\_c$LastModifiedDate</field\>
        <sortOrder\>Asc</sortOrder\>
    </groupingsAcross\>
    <groupingsDown\>
        <dateGranularity\>Day</dateGranularity\>
        <field\>CRT\_Object\_\_c$CreatedBy</field\>
        <sortOrder\>Asc</sortOrder\>
    </groupingsDown\>
    <groupingsDown\>
        <dateGranularity\>Day</dateGranularity\>
        <field\>CRT\_Object\_\_c$Currency\_\_c</field\>
        <sortOrder\>Desc</sortOrder\>
    </groupingsDown\>
    <name\>CrtMMVC</name\>
    <reportType\>CRT1\_\_c</reportType\>
    <scope\>organization</scope\>
    <showDetails\>false</showDetails\>
    <timeFrameFilter\>
        <dateColumn\>CRT\_Object\_\_c$CreatedDate</dateColumn\>
        <interval\>INTERVAL\_CUSTOM</interval\>
    </timeFrameFilter\>
</Report\>

## Declarative Metadata Sample Definition for a Joined Report

A sample XML report definition:

<?xml version="1.0" encoding="UTF-8"?>
<Report xmlns="http://soap.sforce.com/2006/04/metadata">
<!-- This is a cross-block custom summary formula. Note that the calculated formula reference for a blocks reference uses the BlockId#Aggregate. -->
    <aggregates\>
        <calculatedFormula\>B1#AMOUNT:SUM+B2#EMPLOYEES:SUM</calculatedFormula\>
        <datatype\>number</datatype\>
        <developerName\>FORMULA</developerName\>
        <isActive\>true</isActive\>
        <isCrossBlock\>true</isCrossBlock\>
        <masterLabel\>Cross-Block CSF Example</masterLabel\>
        <scale\>2</scale\>
    </aggregates\>
<!-- This is a standard custom summary formula. Note that the calculated formula reference does not have block reference but just the aggregate name of the report type associated (Opportunity).-->
    <aggregates\>
        <calculatedFormula\>AMOUNT:SUM</calculatedFormula\>
        <developerName\>FORMULA2</developerName\>
        <isActive\>true</isActive\>
        <isCrossBlock\>false</isCrossBlock\>
        <masterLabel\>Standard CSF Example</masterLabel\>
        <reportType\>Opportunity</reportType\>
        <scale\>2</scale\>
    </aggregates\>
    <block\>
      <blockInfo\>
<!-- This is how the block defines that the custom summary formula should be referenced. In this example, it’s the in standard FORMULA 2 defined above. This block report has blockID B1.-->
        <aggregateReferences\>    
          <aggregate\>FORMULA2</aggregate\>
        </aggregateReference\>
        <blockId\>B1</blockId\>
        <joinTable\>a</joinTable\>
      </blockInfo\>
      <columns\>
        <field\>TYPE</field\>
      </columns\>
      <format\>Summary</format\>
      <name\>Opportunities BLock 3</name\>
      <params\>
        <name\>role\_territory</name\>
        <value\>role</value\>
      </params\>
      <params\>
        <name\>terr</name\>
        <value\>all</value\>
      </params\>
      <params\>
        <name\>open</name\>
        <value\>all</value\>
      </params\>
      <params\>
        <name\>probability</name\>
        <value\>0</value\>
      </params\>
      <params\>
        <name\>co</name\>
        <value\>1</value\>
      </params\>
      <reportType\>Opportunity</reportType\>
      <scope\>organization</scope\>
      <timeFrameFilter\>
        <dateColumn\>CLOSE\_DATE</dateColumn\>
        <interval\>INTERVAL\_CUSTOM</interval\>
      </timeFrameFilter\>
    </block\>
    <block\>
      <blockInfo\>
<!-- This is how the block defines that the custom summary formula should be referenced. In this example, it’s the cross-block custom summary formula FORMULA 1 defined above. This block report has blockId B2.-->
        <aggregateReferences\>
          <aggregate\>FORMULA1</aggregate\>
        </aggregateReferences\>
        <blockId\>B2</blockId\>
        <joinTable\>a</joinTable\>
      </blockInfo\>
      <columns\>
        <field\>USERS.NAME</field\>
      </columns\>
      <columns\>
        <field\>TYPE</field\>
      </columns\>
      <columns\>
         <field\>DUE\_DATE</field\>
      </columns\>
      <columns\>
        <field\>LAST\_UPDATE</field\>
      </columns\>
      <columns\>
        <field\>ADDRESS1\_STATE</field\>
      </columns\>
      <format\>Summary</format
      <name\>Accounts block 5</name\>
      <params\>
        <name\>terr</name\>
        <value\>all</value\>
      </params\>
      <params\>
        <name\>co</name\>
        <value\>1</value\>
      </params\>
      <reportType\>AccountList</reportType\>
      <scope\>organization</scope\>
      <timeFrameFilter\>
        <dateColumn\>CREATED\_DATE</dateColumn\>
        <interval\>INTERVAL\_CUSTOM</interval\>
      </timeFrameFilter\>
    </block\>
    <blockInfo\>
      <blockId xsi:nil="true"/>
      <joinTable\>a</joinTable\>
    </blockInfo\>
<chart\>
        <backgroundColor1\>#FFFFFF</backgroundColor1\>
        <backgroundColor2\>#FFFFFF</backgroundColor2\>
        <backgroundFadeDir\>Diagonal</backgroundFadeDir\>
        <chartSummaries\>
            <axisBinding\>y</axisBinding\>
<!-- This is how chart aggregates are designed in multiblock. We're using RowCount from Block 1.-->
            <column\>B1#RowCount</column\>
        </chartSummaries\>
        <chartType\>HorizontalBar</chartType\>
        <enableHoverLabels\>false</enableHoverLabels\>
        <expandOthers\>true</expandOthers\>
        <groupingColumn\>ACCOUNT\_NAME</groupingColumn\>
        <location\>CHART\_TOP</location\>
        <showAxisLabels\>true</showAxisLabels\>
        <showPercentage\>false</showPercentage\>
        <showTotal\>false</showTotal\>
        <showValues\>false</showValues\>
        <size\>Medium</size\>
        <summaryAxisRange\>Auto</summaryAxisRange\>
        <textColor\>#000000</textColor\>
        <textSize\>12</textSize\>
        <titleColor\>#000000</titleColor\>
        <titleSize\>18</titleSize\>
    </chart\>
    <format\>MultiBlock</format\>
    <groupingsDown\>
        <dateGranularity\>Day</dateGranularity\>
        <field\>ACCOUNT\_NAME</field\>
        <sortOrder\>Asc</sortOrder\>
    </groupingsDown\>
    <name\>mb\_mbapi</name\>
    <reportType\>Opportunity</reportType\>
    <showDetails\>true</showDetails\>
</Report\>

## Wildcard Support in the Manifest File

This metadata type doesn’t support the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/file_based_zip_file.htm "The deploy() and retrieve() calls are used to deploy and retrieve a .zip file. Within the .zip file is a project manifest (package.xml) that lists what to retrieve or deploy, and one or more XML components that are organized into folders.").

#### See Also

- [Dashboard](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_dashboard.htm "Represents a dashboard. Dashboards are visual representations of data that allow you to see key metrics and performance at a glance.")