> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Pivot Table

export const InlineImage = ({src, alt = '', height = '1.6em'}) => {
  return <img noZoom src={src} alt={alt} style={{
    display: 'inline',
    verticalAlign: 'start',
    height: height,
    margin: '0'
  }} />;
};

### Intro

In Domo, Pivot Tables are a powerful alternative to [HTML Tables](/s/article/360043429573 "Table Chart"). They allow you to more efficiently summarize large quantities of data from a DataSet and explore data by different dimensions and measures.

HTML Tables, also known as Flat or Standard Tables, are useful for displaying information in a scannable format, but they are not always useful for summarizing and highlighting data. HTML Tables can be based on either columns or rows, but not both. This means you have to use a large amount of space to display information.

Pivot Tables, on the other hand, allow you to display data using both rows and columns. Each cell in the table contains data for the intersecting column and row. You can also have multiple columns and/or rows. Each subsequent column or row you add becomes a new grouping within the previously added grouping.

<Warning>
  **Important:** Unless you set a row limit for your Pivot Chart manually, there is a default row limit of 25k.

  If you see the message **Warning: Not all data is shown** with rows in your Pivot Table displaying as **###**, numbers that may be in those places have not been included in the data used to create the Pivot Table because there are too many rows to process.

  In this case, there are some subtotals for the column, but because the number of rows of data is limited, the Pivot Table cannot be fully built. The **###** indicates that there is missing data to display. These cells may or may not have data, but they cannot be found due to the size of the data.
</Warning>

<Warning>
  **Important:** If you see the message— **Warning: Multiple results encountered for the same location** in your Pivot Table displaying as \*\*\*\*\*—check that the values are aggregated for your Beast Mode CASE statements.
</Warning>

<Tip>
  **Table Properties:** This article describes chart properties available only for Pivot Tables. A number of other available properties, including individual column formatting, are described in [Properties for Tables](/s/article/360042925374).
</Tip>

***

### Pivot Table Capabilities

Pivot Tables provide the following capabilities:

* [Alert integration](https://domo-support.domo.com/s/article/360043430373?language=en_US)
* [Beast Mode support](https://domo-support.domo.com/s/article/360043429913?language=en_US)
* Card-to-Card Filter support
* [Color rules](https://domo-support.domo.com/s/article/360043428813?language=en_US)
* Color/attribute control by row and column
* [Connect and update data](https://domo-support.domo.com/s/article/360043429873?language=en_US), as with any other chart type
* [Drill Path](https://domo-support.domo.com/s/article/360042924094?language=en_US)
* [Domo Embed support](https://domo-support.domo.com/s/article/360043437973)
* Expand/collapse rows and columns
* Export to
  [Excel and CSV](https://domo-support.domo.com/s/article/360043437813?language=en_US) or [PowerPoint](https://domo-support.domo.com/s/article/360043437793?language=en_US)
* Full integration with Analyzer
* Full mobile support
* Highlighting and selection by row and column grouping
* Independent control over row and column totals
* Much larger table handling
* Quick Filters support
* [Share via email](https://domo-support.domo.com/s/article/360043437873?language=en_US)
* [Summary Numbers](https://domo-support.domo.com/s/article/360043428753?language=en_US)

Pivot Tables have Table Calculation functionality. Follow this link to learn about [Table Calculations](https://domo-support.domo.com/s/article/360043429573#table_calculations).

Pivot Tables also include several chart properties for configuring the look and feel of the chart. You can use chart properties to control the font size and color, text wrapping, header appearance, total and subtotal appearance, and more. For more information about changing chart properties, see [Customizing Pivot Tables](#CustomizingPivotTables), below.

Just like in an HTML Table, you can include any DataSet columns you want in a Pivot Table and change the order of the columns as you like. For information about changing the order of columns, see [Sorting Rows and Columns](#SortingRowsAndColumns), below.

### Power Pivot Tables

Unlike with other chart types—where you must drag columns of a specific data type into specific fields in the **Columns** region above the chart—you create Pivot Tables by dragging columns into any field you want: **Rows**, **Columns**, or **Values**.

* Columns you drag into the **Rows** region display as groupings on the left side of the chart.
* Columns you drag into the **Columns** region display as groupings at the top of the chart.
* Columns you drag into the **Values** region are used to populate the inner data pane of the chart, with one value appearing for each row-column pair.

If you drag more than one column into a field, each subsequent grouping becomes a subset of the previous grouping. You can change the order of a grouping by dragging a column to your desired location in the field.

Columns retain their unique data types after you drag them into a field. You can select columns in the **Rows**, **Columns**, and **Values** fields to access additional options, such as aggregation and formatting. The specific available options depend on the data type.

Columns in the **Dimensions** pane allow you to only set basic aggregation options, enter a table label, and change the styling. Columns in the **Measures** pane provide more aggregation options, a label setting option, and number formatting options.

Learn more about the following topics:

* See
  [Applying DataSet Columns to Your Chart](https://domo-support.domo.com/s/article/360043428713) for information about aggregation.
* See
  [Formatting Values in Your Chart](/s/article/360042924134 "Formatting Values in Your Chart") for information about formatting numbers.
* See
  [Understanding Chart Data](/s/article/360043428693 "Understanding Chart Data") for information about value, category, and series data.

In Analyzer, you choose the columns containing the data for your table. For more information about choosing data columns, see our article about [Applying DataSet Columns to Your Chart](https://domo-support.domo.com/s/article/360043428713), and for information about formatting charts in Analyzer, see our [Analyzer Overview](https://domo-support.domo.com/s/article/360043428673) article.

### Customize Pivot Tables

You can customize the appearance of a Pivot Table in several ways, many of which are possible with the **Chart Properties** tool. For more information about this tool, see our article about [Chart Properties](https://domo-support.domo.com/s/article/360042925374?language=en_US).

# Pivot Table Properties

#### General Properties

* **Font Color** **—** Change the font color used for all text in the table.

* **Allow Text to Wrap —** When enabled, text wraps in columns instead of disappearing off the right side of the column.

* **Financial Style Negatives —** When this checkbox is selected, negative numbers are enclosed in parentheses; otherwise, a minus sign is used.

* **Show Negative Numbers in Red** **—** When this checkbox is selected, negative numbers display in red.

* **Apply Color Rules to Totals and Subtotals —** Select this option to apply your configured [color rules](/s/article/360043428813) to totals and subtotals in your table.

* **Apply Color Rules to Headers —** Select this option to apply your configured [color rules](/s/article/360043428813) to headers in your table.

  <Tip>
    **Tip:** If your color rules are not displaying as expected, go to **General** and make sure the **Apply Color Rules to Headers** box is checked.
  </Tip>

* **General Border Properties —** There are several general properties for border width and color available for Pivot Tables. Learn about these [border properties](https://domo-support.domo.com/s/article/360043429573?language=en_US#general_border_properties).

  <Frame>
    <img alt="Screenshot 2024-02-20 at 3.25.49 PM.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EMVq000000Nyhp.jpg?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=f76465fefcb485a2ce090b676fc41779" style={{width: 552, height: 406}} width="1834" height="1348" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EMVq000000Nyhp.jpg" />
  </Frame>

#### Header Row Properties

* **Header Fill Color** — Select a background color for the header row of your table. If you select **Default**, no color is used.

  Note that the names in the upper-left corner of your Pivot Table are considered both row and column names. If you select both a **Header Row** fill color and a **Header Column** fill color, the **Header Row** fill color takes precedence.

  <Frame>
    <img alt="pivot_table_header_row_background_color.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5Q.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=376d605696e7b2ff1fd42af27c53fa5f" width="800" height="334" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5Q.png" />
  </Frame>
* **Header Font Color** — Select the text color for the column names in your header row. This color overrides the table font color set in **General** > **Font Color**.

  Note that the names in the upper-left corner of your Pivot Table are considered both row and column names. If you specify both a **Header Row** font color and a **Header Column** font color, the **Header Row** font color takes precedence.

  For example, if you set the general font color to blue and the header row font color to red, the header row font color displays as red instead of blue. If you then select **Default**, the header row color reverts to blue.

  <Frame>
    <img alt="pivot_table_header_row_font_color.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP55.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=c28253f489ce42d2f8f3977a1ec153b5" width="800" height="418" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP55.png" />
  </Frame>
* **Header Alignment** — Select the alignment (left, center, or right) for the column names in the header row. The default setting is **Left**.

  Note that the names in the upper-left corner of your Pivot Table are considered both row and column names. If you specify both a **Header Row** alignment and a **Header Column** alignment, the **Header Row** alignment takes precedence.

  In the example below, the column names are centered.

  <Frame>
    <img alt="pivot_table_header_row_alignment.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5T.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=1dafd4323c726f771aafa7ee35fe7a82" width="800" height="391" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5T.png" />
  </Frame>
* **Header Font Style** — Select the font style (bold, italic, or bold-italic) for the column names in the header row. The default setting is **Bold**.

  Note that the names in the upper-left corner of your Pivot Table are considered both row and column names. If you specify both a **Header Row** font style and a **Header Column** font style, the **Header Row** font style takes precedence.

  In the example below, the font style is **Bold-Italic**.

  <Frame>
    <img alt="pivot_table_header_row_style.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP58.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=232b5b0426aa2929eca6dc09874a8dc1" width="800" height="434" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP58.png" />
  </Frame>
* Header Row Border Properties — There are several header row properties for border width and color available for Pivot Tables. Learn about these
  [border properties](https://domo-support.domo.com/s/article/360043429573?language=en_US#header_row_border_properties).

#### ​​​​​​Header Column Properties

* **Header Fill Color** — Select a background color for the header column of your table. If you select **Default**, no color is used.

  Note that the names in the upper-left corner of your Pivot Table are considered both row and column names. If you specify both a **Header Row** fill color and a **Header Column** fill color, the **Header Row** fill color takes precedence.

  <Frame>
    <img alt="pivot_table_header_column_background_color.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5B.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=a2e92117fe4637768f8bdb15f4d270ef" width="800" height="383" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5B.png" />
  </Frame>
* **Header Font Color** — Select the text color for the row names in your header column. This color overrides the table font color set in **General** > **Font Color**.

  Note that the names in the upper-left corner of your Pivot Table are considered both row and column names. If you specify both a **Header Row** font color and a **Header Column** font color, the **Header Row** font color takes precedence.

  For example, if you set the general font color to blue and the header row font color to red, the header row font color displays as red instead of blue. If you then select **Default**, the header row color reverts to blue.

  <Frame>
    <img alt="pivot_table_header_column_font_color.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5C.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=1dc619dd00e447d0f1c5cb9005e8c8af" width="801" height="396" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5C.png" />
  </Frame>
* **Header Alignment** — Select the alignment (left, center, or right) for the column names in the header column. The default setting is **Left**.

  Note that the names in the upper-left corner of your Pivot Table are considered both row and column names. If you specify both a **Header Row** alignment and a **Header Column** alignment, the **Header Row** alignment takes precedence.

  In the example below, the row names are centered.

  <Frame>
    <img alt="pivot_table_header_column_alignment.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5R.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=d985a9dbe1f3085f9372fbfbfa9c282c" width="800" height="429" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5R.png" />
  </Frame>
* **Header Font Style** — Select the font style (bold, italic, or bold-italic) for the row names in the header column. The default setting is **Bold**.

  Note that the names in the upper-left corner of your Pivot Table are considered both row and column names. If you specify both a **Header Row** font style and a **Header Column** font style, the **Header Row** font style takes precedence.

  In the example below, the font style is **Bold-Italic**.

  <Frame>
    <img alt="pivot_table_header_column_style.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5S.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=95f98ce880b94e752c875dc3992f303c" width="800" height="398" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5S.png" />
  </Frame>

#### Totals Properties

* **Show Total Row —** Add a **Grand Total** row to the bottom of your table. This row sums all value columns and counts any string and date/time columns you added to the **Values** region.

  <Frame>
    <img alt="pivot_table_total_row.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5D.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=4771d9467ed2e4e41ab1e8c99b649819" width="800" height="386" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5D.png" />
  </Frame>
* **Total Row Position** **—** Specify whether the total row displays after the data rows in your table (default) or before the rows, at the top. This property is available only when the **Totals** > **Show Totals Row** checkbox is selected.

  The example below shows a table with the total row placed before the data rows.

  <Frame>
    <img alt="pivot_table_total_row_position.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5W.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=b4da14be78a97cd5f93879214239ef25" width="801" height="397" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5W.png" />
  </Frame>
* **Total Row Fill Color** **—** Select a background color for the total row in your table. If you select **Default**, no color is used. This property is available only when the **Totals** > **Show Total Row** checkbox is selected.

  <Frame>
    <img alt="pivot_table_total_row_background_color.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5I.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=145481544f5f92150419f78f716ba592" width="800" height="417" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5I.png" />
  </Frame>
* **Total Row Font Color —** Select the text color for the content in your total row. This color overrides the table font color set in **General** > **Font Color**, and this property is available only when the **Totals** > **Show Total Row** checkbox is selected.

  For example, if you set the general font color to blue and the total row font color to red, the total row font color displays as red instead of blue. If you then select **Default**, the total row color reverts to blue.

  <Frame>
    <img alt="pivot_table_total_row_font_color.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP56.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=052b0ad54bc38f121a21193a92df92e0" width="801" height="386" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP56.png" />
  </Frame>
* **Show Total Column** **—** On the right side of your table, add separate totals columns for each column you have dragged into the **Values** region above the chart preview. Each column sums all value columns and counts any string and date/time columns you added to the **Values** region.

  In the example below, a total column displays for both "Profit" and "Sales."

  <Frame>
    <img alt="pivot_table_total_column.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5H.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=c9642fb009e3ecbc89f905ba959c9609" width="1000" height="373" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5H.png" />
  </Frame>
* **Total Column Fill Color —** Select a background color for the total column(s) in your table. If you select **Default**, no color is used. This property is available only when the **Totals** > **Show Total Column** checkbox is selected.

  <Frame>
    <img alt="pivot_table_total_column_background_color.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5K.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=c43fe136195ea1b992fa54707bdca3a1" width="1000" height="384" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5K.png" />
  </Frame>
* **Total Column Font Color —** Select the text color for the content in your total column(s). This color overrides the table font color applied in **General** > **Font Color**, and this property is available only when the **Totals > Show Total Column** checkbox is selected.

  For example, if you set the general font color to blue and the total row font color to red, the total column font color displays as red instead of blue. If you then select **Default**, the total column color reverts to blue.

  <Frame>
    <img alt="pivot_table_total_column_font_color.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP52.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=b6abd759140fb6f1e234a13fff751c01" width="1001" height="382" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP52.png" />
  </Frame>
* **Total Column Font Style** **—** Select the font style (bold, italic, bold-italic, or underline) for the cells in the total column(s). The default setting is **Bold**, and this property is only available when the **Totals** > **Show Total Column** checkbox is selected.

  In the example below, the font style is **Bold-Italic**.

  <Frame>
    <img alt="pivot_table_total_column_font_style.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5A.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=066055a7e98fcffa2bc6613e53026813" width="1000" height="380" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5A.png" />
  </Frame>

#### Subtotals Properties

* **Show Subtotal Rows** **—** Add subtotal rows to your Pivot Table. Subtotal rows sum all value columns are summed and count any string and date/time columns you added to the **Values** field. One subtotal row displays for each of the primary **Rows** groupings in your table.

  In the example below, one such row displays for the "Furniture" grouping and another for the "Office Supplies" grouping.

  <Frame>
    <img alt="pivot_table_subtotal_rows.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5E.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=cf99d1c1956e39f51d20ec6478b79a91" width="800" height="376" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5E.png" />
  </Frame>
* **Subtotal Row Position** **—** Specify whether subtotal rows display after the data rows in your table (default) or before the rows, at the top of each grouping. This property is available only when the **Subtotals** > **Show Subtotals Row** checkbox is selected.

  <Frame>
    <img alt="pivot_table_subtotal_rows_position.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/g5Ek3SRXv8ussuBG/images/kb/ka0Vq0000003jAH-00N5w00000Ri7BU-0EM5w000005vP5M.png?fit=max&auto=format&n=g5Ek3SRXv8ussuBG&q=85&s=785fd294e47aa47f00d82251a1f183d1" width="800" height="405" data-path="images/kb/ka0Vq0000003jAH-00N5w00000Ri7BU-0EM5w000005vP5M.png" />
  </Frame>
* **Subtotal Row Fill Color —** Select a background color for the subtotal rows in your table. If you select **Default**, no color is used. This property is only available when the **Subtotals** > **Show Subtotal Rows** checkbox is selected.

  <Frame>
    <img alt="pivot_table_subtotal_rows_background_color.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5Z.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=022c2cc3d6a994c28afa44f249c1c061" width="800" height="491" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5Z.png" />
  </Frame>
* **Subtotal Row Font Color —** Select the text color for the content in your subtotal rows. This color overrides the table font color set in **General** > **Font Color**, and this property is only available when the **Subtotals** > **Show Subtotal Rows** checkbox is selected.

  For example, if you set the general font color to blue and the subtotal row font color to red, the subtotal row font color displays as red instead of blue. If you then select **Default**, the subtotal row color reverts to blue.

  <Frame>
    <img alt="pivot_table_subtotal_rows_font_color.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5Y.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=f8630c868873361856b11e25c461512d" width="799" height="405" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5Y.png" />
  </Frame>
* **Subtotal Row Font Style —** Select the font style (bold, italic, bold-italic, or underline) for the text in the subtotal rows. The default setting is **Bold**, and this property is only available when the **Subtotals** > **Show Subtotal Rows** checkbox is selected.

  In the example below, the font style is **Bold-Italic**.

  <Frame>
    <img alt="pivot_table_subtotal_rows_font_style.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5N.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=ff6ff0e597948844cf272b01f14160da" width="800" height="374" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5N.png" />
  </Frame>
* **Show Subtotal Columns —** Add subtotal columns to your Pivot Table. Subtotal columns sum all value columns and count any string and date/time columns you added to the **Values** field. One subtotal column displays for each of the primary **Columns** groupings in your table.

  In the example below, one such column displays for the "Central" regional grouping.

  <Frame>
    <img alt="pivot_table_subtotal_columns.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5X.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=ef7a600be87046a1f72fff059a6601ae" width="1000" height="501" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5X.png" />
  </Frame>
* **Subtotal Column Fill Color** **—** Select a background color for the subtotal columns in your table. If you select **Default**, no color is used. This property is available only when the **Subtotals** > **Show Subtotal Columns** checkbox is selected.

  <Frame>
    <img alt="pivot_table_subtotal_columns_background_color.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5V.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=f4ec4bf44f99bfc55c23509afeb0b6e6" width="800" height="598" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5V.png" />
  </Frame>
* **Subtotal Column Font Color —** Select the text color for the content in your subtotal columns. This color overrides the table font color set in **General** > **Font Color**, and this property is available only when the **Subtotals** > **Show Subtotal Columns** checkbox is selected.

  For example, if you set the general font color to blue and the subtotal column font color to red, the subtotal column font color displays as red instead of blue. If you then select **Default**, the subtotal column color reverts to blue.

  <Frame>
    <img alt="pivot_table_subtotal_columns_font_color.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5O.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=f18939f02bd704c6d039e4e3f1463595" width="799" height="602" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5O.png" />
  </Frame>
* **Subtotal Column Font Style —** Select the font style (bold, italic, bold-italic, or underline) for the text in the subtotal columns. The default setting is **Bold**, and this property is available only when the **Subtotals** > **Show Subtotal Columns** checkbox is selected.

  In the example below, the font style is **Bold-Italic**.

  <Frame>
    <img alt="pivot_table_subtotal_columns_font_style.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP59.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=17f50a8a8e173b48e11771196ddfc933" width="799" height="598" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP59.png" />
  </Frame>
* **Suppress Single Item Subtotals —** Hide subtotals for all groupings that contain only one item.

# Specify Table Labels

To change the label that displays for any column or row in your table, follow these steps:

1. In the fields region above the chart, select the column for which you want to change the label.
2. Enter your desired label in the **Data Label** field.

   <Frame>
     <img alt="SpecifyTableLabels.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000006u0H9.jpg?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=48d7de60409740a4cfb833098ba2946c" style={{width: 899, height: 538}} width="1115" height="667" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000006u0H9.jpg" />
   </Frame>

# Change the Aggregation Type for a Column

All similar rows in a DataSet are automatically aggregated in a Pivot Table. The default aggregation is **Sum**, which sums the values for similar rows in a given column.

You can change the aggregation type for a column to any of the following:

<table class="mt-responsive-table" data-aura-rendered-by="33:209;a"><thead><tr><th colspan="1" rowspan="1"><p> Aggregation Type </p></th><th colspan="1" rowspan="1"><p> Description </p></th></tr></thead><tbody><tr><td colspan="1" rowspan="1"><p> Sum </p></td><td colspan="1" rowspan="1"><p> Adds the values in similar rows. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Minimum </p></td><td colspan="1" rowspan="1"><p> Displays the lowest value in similar rows. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Maximum </p></td><td colspan="1" rowspan="1"><p> Displays the highest value in similar rows. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Average </p></td><td colspan="1" rowspan="1"><p> Displays the average value of all similar rows. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Count </p></td><td colspan="1" rowspan="1"><p> Displays the number of similar rows. For dimensional columns, this is the only available aggregation type. </p></td></tr></tbody></table>

To change the aggregation type for a column, follow these steps:

1. In the fields region above the chart, select the column for which you want to change the aggregation type.
2. Select your desired aggregation in the **Aggregation** field.

   <Frame>
     <img alt="ChangeAggregationType.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000006u0Gp.jpg?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=21fd6e7ae1b438b575a5ac71a1f28069" style={{width: 901, height: 539}} width="1115" height="667" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000006u0Gp.jpg" />
   </Frame>

   <Tip>
     **Tip:** If you change the aggregation type for a column to something other than **Sum**, we recommend that you change the column label to reflect the change (as described in the previous steps). This is because most viewers automatically assume that similar rows in a DataSet are summed.

     For example, if you change the aggregation type for your "Sales" column to **Average**, you might want to change the label to something like "Average Sales." Otherwise, your viewers might mistakenly think that the values in the column have been summed.
   </Tip>

# Sort Rows and Columns

In a Pivot Table, you can select the arrows to the left of any header row or column to change the sort pattern used. You can do this anywhere a card is displayed—in the Dashboard view, in the Details view, or in Analyzer.

<Warning>
  **Important:** Due to the back-end work that must be performed on your data in order for it to pivot, you MUST use the sorting arrows to sort the data, NOT the sorting field inside of Analyzer.
</Warning>

<InlineImage src="/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5P.png" /> indicates that these rows or columns are in the same order as the original DataSet.

<InlineImage src="/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5L.png" /> indicates that these rows or columns are in alphanumeric order.

<InlineImage src="/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5F.png" /> indicates that these rows or columns are in reverse alphanumeric order.

<Warning>
  **Important:** You may not be able to change the sort pattern when multiple row fields are present. In this case, you can resolve the problem by enabling the following properties:

  * Show subtotal rows
  * Suppress single item subtotals
</Warning>

### Best Practices for Pivot Tables

To keep Pivot Tables organized and to avoid displaying unneeded data, the maximum number of queries that can be called is 36. To find this limit, use (NumberOfRowPills + 1) x (NumberOfColumnPills +1) ≤ 36.

For example, a Pivot Table with 8-row pills and 1 column pill requires 18 queries to render:

8 rows x 1 column => (8+1) x (1+1) => 9 x 2 = 18 queries

Possible row and column combinations include:

1 x 17

2 x 11

3 x 8

4 x 6

5 x 5

6 x 4

8 x 3

11 x 2

17 x 1

When you drag a new value to a column or row, you must place the new value in one of the **Drag Column Here** boxes. Existing values are replaced when you drag over them.

The maximum number of columns allowed in a **Values** field is 50.

# Use Case #1

The following image shows a portion of a typical Pivot Table. It contains two-row groupings, "Product Category" and "Product Sub-Category," and two column groupings, "Region" and "Customer State." Each product category is broken down into subcategories, and each region is broken down by state. For example, "Furniture" contains individual rows for "Bookcases" and "Office Furniture," and "Central" contains individual columns for "Illinois" and "Michigan."

In addition, two columns of data are displayed: "Profit" and "Sales." These columns allow you to efficiently find the profit and sales values for the combination of any product and geographic location. For example, if you are asked to find the profit of office furnishings for the state of Michigan, simply find the cell at the intersection of "Office Furnishings" and "Michigan"/"Profit," which is \$4,784.35.

You can also find the totals for each column at the bottom of the table and individual columns for "Profit" total and "Sales" total on the right side of the table (not shown).

<Frame>
  <img alt="pivot_table_example1.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5G.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=542e6588bc89d0e1935d1c60bc6219db" style={{width: 893, height: 393}} width="950" height="418" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5G.png" />
</Frame>

# Use Case #2

In this example, a sales manager uses a Pivot Table to show the profits earned for all product categories. The sales manager wants to display the product categories in the rows, so they:

1. Drag the "Product Category" column from the ****Dimensions**** pane into **Rows** above the chart preview.
2. Drag the "Profit" column from the **Measures** pane into **Values** above the chart preview.

This generates a basic Pivot Table that displays the profits for the three categories and their grand total, as shown below.

<Frame>
  <img alt="1.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5U.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=1d53041bc44d5386cf4ebc1ead645ea6" style={{width: 899, height: 568}} width="939" height="593" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5U.png" />
</Frame>

At this point, the table does not provide much useful information, so the sales manager decides to expand the table to include data for regions. They drag the "Region" column into **Columns** above the chart preview. This adds a "Region" header row at the top of the table, adds a "Profit " column to the right side of the table, and divides the table into four "Profit" columns, one for each region.

<Frame>
  <img alt="2.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP53.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=15a0ecbab456c43171a4d1770bb9df5f" style={{width: 895, height: 564}} width="941" height="593" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP53.png" />
</Frame>

This is more helpful, but still lacks specifics. The table says that all the furniture generated a total profit of \$152,374.80, but we don't know the breakdown of the furniture types and how they contribute to this total.

The sales manager realizes this, so they decide to add another column, "Product Sub-Category," to the table. They do this by dragging the "Product Sub-Category" column into **Rows** above the chart preview, just as they did with "Product Category." This divides each product category into subcategories, and each subcategory now displays individual profit values.

<Frame>
  <img alt="3.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP57.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=12dc3be60a04fce07a336a68617daa99" style={{width: 901, height: 670}} width="1079" height="802" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP57.png" />
</Frame>

<Note>
  **Note:** You do not need to include columns or rows in their logical breakdown order like in the previous example. If the sales manager switches the order of "Product Category" and "Product Sub-Category," the data will still display correctly.
</Note>

However, instead of the subcategories displaying in their own easy-to-read groupings, as shown above, each will be listed in alphabetical order and paired with its parent category, as shown below. Because this is harder to read, we recommend that you always arrange the columns in a field in their logical breakdown order.

<Frame>
  <img alt="4.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/AxiXLKkg9sLcFgsR/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5J.png?fit=max&auto=format&n=AxiXLKkg9sLcFgsR&q=85&s=4305a1d6cfad0de39ffc861dc508c801" style={{width: 879, height: 919}} width="887" height="927" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP5J.png" />
</Frame>

The sales manager completes their Pivot Table by adding two more columns. They drag "Customer State" into **Columns** and "Sales" into **Values**. This divides the regions into individual states (similar to what the sales manager did with "Product Category" and "Product Sub-Category") and adds a new data column, "Sales," for each state.

<Frame>
  <img alt="5.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/G0VLFwhKwFtlENBF/images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP54.png?fit=max&auto=format&n=G0VLFwhKwFtlENBF&q=85&s=9410a0cfafd741a090de0887419326bd" style={{width: 900, height: 712}} width="1144" height="905" data-path="images/kb/ka0Vq0000005oVd-00N5w00000Ri7BU-0EM5w000005vP54.png" />
</Frame>

At this point, the sales manager can make various adjustments to the Pivot Table to make it more readable and useful to viewers. They could set color rules to draw attention to values in a certain range, change the sort and aggregation type for certain columns, highlight total and subtotal rows and columns, add a Drill Path, and much more. For more information about these customizations, see the section about [Customizing Pivot Tables](#CustomizingPivotTables) above.
