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

# Manage DataSet Views

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

DataSet Views in Views Explorer give you a simple, yet powerful way to explore—filter, group, and aggregate—and even combine your data in a spreadsheet interface, without having to build a transform DataFlow. DataSet Views is available in Analyzer, so you can create and edit the view while building a visualization. DataSet View creation and editing takes place inside the Views Explorer.

The [Advanced SQL Editor](#advanced_sql_editor) allows users proficient in SQL to create a DataSet View, and the [AI Assistant](#use_ai_to_write_query) can help you craft your SQL queries.

<Frame>
  <img alt="dataset views interface.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000DmA6.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=c860b2d1b6b660f13bf4031dcd53078a" style={{width: 900, height: 402}} width="2984" height="1334" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000DmA6.jpg" />
</Frame>

***

### Permissions

Permissions are as follows:

* **DataSet Views —**
  Admins or users with either the Edit DataSet or Manage DataSet grant enabled for their role can use DataSet Views. Learn more about [Managing Custom Roles](/s/article/360043438973).
* **Advanced SQL Editor & AI Assistant —**
  The Advanced SQL Editor is available to all users with Edit permission to a DataSet View. The AI Assistant is limited to users who have the Use AI Services grant​ enabled for their role.

### Access Views Explorer

There are two ways to access Views Explorer—from the Data Center or within Analyzer. Learn how to [use DataSet Views with Analyzer](/s/article/4402058407191).

To access Views Explorer from the Data Center, locate and select the DataSet you want to create a DataSet View from to open and display its **Overview** tab.

<Frame>
  <img alt="select open with.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cs9V.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=701e78992b7306c9854cf8e39a5e5a83" style={{width: 902, height: 321}} width="3478" height="1238" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cs9V.jpg" />
</Frame>

Select **Open With** > **Views Explorer**.

<Frame>
  <img alt="views explorer.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CrqA.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=66c8b408e0988627adbb3366fb932670" style={{width: 550, height: 362}} width="860" height="566" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CrqA.jpg" />
</Frame>

### Use Views Explorer

The Views Explorer allows you to view all rows in the DataSet or to sample a set number of rows to enable your changes to be seen more quickly without waiting for changes to display for every row.

To configure a sample preview from the top navigation of View Explorer, select **Data Preview** > **Sampled**. Then enter the number of rows for the sample size.

<Frame>
  <img alt="Screenshot 2024-01-23 at 2.54.18 PM.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F4Hp.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=09c673c07e684b075cd0d67c51a0fab8" style={{width: 500, height: 194}} width="1036" height="402" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F4Hp.jpg" />
</Frame>

<Frame>
  <img alt="Screenshot 2024-01-23 at 2.58.52 PM.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F4JR.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=ee67a39e282620e6c67744755f32d8cc" style={{width: 249, height: 243}} width="540" height="528" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F4JR.jpg" />
</Frame>

#### Appearance Controls

Selecting <InlineImage src="/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F49m.jpg" /> **Controls** in the top ribbon of your View allows you to choose default or monospace text and how to handle null values and decimals.

<Frame>
  <img alt="Screenshot 2024-01-23 at 3.13.23 PM.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F4o5.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=5aa338d309ad5f93642e078139549e6f" style={{width: 250, height: 308}} width="498" height="614" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F4o5.jpg" />
</Frame>

<Note>
  **Null Values:**
  By default, Domo shows null values as blank. In DataSet Views, when you choose
  **Advanced**
  null handling, null values display as `null` in the columns.

  <Frame>
    <img alt="null values.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000001qJ1B.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=f75da989b76fd8ec4bc76629e49b83e6" style={{width: 701, height: 232}} width="1003" height="332" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000001qJ1B.jpg" />
  </Frame>
</Note>

Navigate through the following topics to learn how to use Views Explorer:

###### Columns

* [Add Columns](#add_columns "DataSet Views (Beta)")
* [Rename Columns](#rename_columns "DataSet Views (Beta)")
* [Move Columns](#move_columns "DataSet Views (Beta)")
* [Add Calculated Column](#add_calculated_column "DataSet Views (Beta)")
* [Remove Columns](#remove_columns "DataSet Views (Beta)")

###### Joins & Unions

* [Perform Joins](#perform_joins "DataSet Views (Beta)")
* [Perform Unions](#h_01F89DQC4EXKVWE52B3RYCF8TN)

###### Filter & Sort

* [Filter Data](#filter_data "DataSet Views (Beta)")
* [Group Data](#group_data "DataSet Views (Beta)")
* [Sort Data](#sort_data "DataSet Views (Beta)")
* [Limit Data](#limit_data "DataSet Views (Beta)")
* [DataSet suggestions](#dataset_suggestions)

###### DataSet View Controls

* [Version history](#version_history)
* [Change controls](#change_controls)
* [Save DataSet View](#save_dataset_view "DataSet Views (Beta)")
* [Export DataSet View](#export_view)

# Add Columns

Sometimes you may want to add a duplicate of one or more columns to the DataSet View. You can do this by adding a column(s).

To add a column to the DataSet View, select **Add Column** (or hover over <InlineImage src="/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Ct5Z.jpg" /> **Add** and then select **Add Column**).

<Frame>
  <img alt="add column small.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Ct7B.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=07ee51ec4db10a38d3302683cb4704c6" style={{width: 901, height: 437}} width="4510" height="2188" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Ct7B.jpg" />
</Frame>

<Frame>
  <img alt="add column.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CtAP.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=567f67f91d7c34e71ffb1e35f332b27f" style={{width: 900, height: 419}} width="4950" height="2304" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CtAP.jpg" />
</Frame>

The **Add Column** panel displays on the right of the Views Explorer.

<Frame>
  <img alt="add column panel.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CtDd.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=4c0b0d1a4e5ece2d926a0d090036ffee" style={{width: 897, height: 601}} width="3164" height="2122" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CtDd.jpg" />
</Frame>

Use the search tool to locate the column(s) you want to duplicate and/or select the checkbox for each one. If you want to select all of the columns, select the checkbox labeled **xx Columns**.

<Frame>
  <img alt="search and select.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CwzV.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=c1ad562c19d1e8ccc310fb9a795f69bf" style={{width: 300, height: 676}} width="816" height="1838" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CwzV.jpg" />
</Frame>

After selecting all of the columns you want to duplicate, select **Add xx Columns**.

<Frame>
  <img alt="add xx columns.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cx4L.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=fb66f5477c177e25d4fdf0271fe1a691" style={{width: 301, height: 672}} width="824" height="1840" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cx4L.jpg" />
</Frame>

The duplicated columns appear next to the original column of the same name, with the same title and a number in italics. The original version of the column is 0 (not shown) and any duplicates begin with 1.

<Frame>
  <img alt="duplicated column.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cx7Z.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=6fc25583e548fb5525b2798014095542" style={{width: 349, height: 504}} width="1270" height="1836" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cx7Z.jpg" />
</Frame>

# Rename Columns

Rename a column by hovering over the column name until the <InlineImage src="/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxE1.jpg" /> **Edit** icon displays. Then click on the name to make the field editable. Click outside of the field to save your changes.

<Frame>
  <img alt="Screenshot 2024-01-16 at 4.03.09 PM.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxHF.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=e633d00a88b1d79eed7c53e05d7b4c76" style={{width: 320, height: 96}} width="646" height="194" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxHF.jpg" />
</Frame>

# Move Columns

Reorder columns in the left panel by using the handles to drag the columns in the correct order.

<Frame>
  <img alt="reorder columns.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxPJ.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=a04785810fd700ec2dcadff56e2d5729" style={{width: 301, height: 477}} width="810" height="1284" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxPJ.jpg" />
</Frame>

# Add Calculated Column

Add a new calculated column to your DataSet View by opening the [Add Column panel](#add_columns) and selecting **Create Calculated Column**.

<Frame>
  <img alt="create calc column.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxQv.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=49119606336d56c4126f23acb05c12c8" style={{width: 300, height: 676}} width="816" height="1838" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxQv.jpg" />
</Frame>

The **Calculated Column Editor** displays.

<Frame>
  <img alt="Screenshot 2024-01-16 at 4.12.13 PM.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxSX.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=5be14fe8f401f8d64a901010fe8ec6cc" style={{width: 901, height: 543}} width="3280" height="1976" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxSX.jpg" />
</Frame>

Enter your calculation in the **Formula** field of the editor.

When you have finished writing your calculation, select **Create Calculated Column**. This automatically adds the new calculated column to your DataSet in Views Explorer. To save the calculated column to your DataSet, you must save your DataSet as a new DataSet View.

<Frame>
  <img alt="create calc field.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CwQ3.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=33ad00083bdebe304cf1c9fb49f56673" style={{width: 902, height: 543}} width="3280" height="1976" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CwQ3.jpg" />
</Frame>

# Remove Columns

Remove a column by selecting the <InlineImage src="/images/kb/ka0Vq0000000RMn-00N5w00000Ri7BU-0EMVq000000LJE9.jpg" /> kebab menu for the column and choosing **Remove**. To remove multiple columns, you can also choose the **Select All** option from the columns on the left and the delete icon.

<Frame>
  <img alt="remove column.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxfR.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=66b0950fd45653c11e2bfa2fe6c31e9f" style={{width: 301, height: 504}} width="640" height="1072" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxfR.jpg" />
</Frame>

#### Bulk Removal

To remove multiple columns at the same time, select the checkboxes for the columns you want to remove and select **Delete**.

<Frame>
  <img alt="bulk removal columns.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxkH.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=a6b9f52966c99886b178ac4105078801" style={{width: 300, height: 642}} width="716" height="1532" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxkH.jpg" />
</Frame>

# Perform Joins

To join DataSets in Views Explorer, toggle the DataSet side of the left panel.

<Frame>
  <img alt="toggle dataset column.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cxqj.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=d28034fa12c8bae2eb1a80332acc862a" style={{width: 301, height: 245}} width="692" height="564" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cxqj.jpg" />
</Frame>

Select **+** **Add Join** to display the **Join new DataSet** modal.

<Frame>
  <img alt="add join.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cxp7.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=9845a640457b7491b6ffedde19e2334e" style={{width: 301, height: 245}} width="692" height="564" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cxp7.jpg" />
</Frame>

<Frame>
  <img alt="Screenshot 2024-01-16 at 4.39.16 PM.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxsL.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=13464b711513aecbb076461e5853c27a" style={{width: 499, height: 395}} width="1438" height="1140" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxsL.jpg" />
</Frame>

Select a DataSet to join and select columns from both DataSets to use as a join key. You can select **+ Add Key** if you want to configure multiple join keys.

<Frame>
  <img alt="Screenshot 2024-01-16 at 4.42.51 PM.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxxB.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=4a7e691eb89cc24b2e2867e009b49347" style={{width: 500, height: 427}} width="1440" height="1230" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CxxB.jpg" />
</Frame>

Choose the join type for the DataSets— left, right, or inner join—then choose **Select Columns**.

<Frame>
  <img alt="select columns.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cxyn.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=12504932a463e2bdbcbffe440b0536c1" style={{width: 501, height: 434}} width="1436" height="1244" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cxyn.jpg" />
</Frame>

Choose which columns from both DataSets you want to include in the joined DataSet. To make changes to the join configuration, select **Edit Join Configuration**.

<Frame>
  <img alt="edit join configuration.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cy3d.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=5e7663105fced76f872b390e45a537e7" style={{width: 500, height: 524}} width="1436" height="1504" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cy3d.jpg" />
</Frame>

After choosing which columns to include, select **Save**.

<Frame>
  <img alt="save join.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cy5F.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=e8e818cd48c7f8ae727a40703b704172" style={{width: 504, height: 528}} width="1436" height="1504" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cy5F.jpg" />
</Frame>

Your joined DataSet now displays in the **DataSet** side of the left panel in Views Explorer.

<Frame>
  <img alt="Screenshot 2024-01-16 at 4.53.50 PM.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cy6r.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=466ffbb72f2df72ee68c56e81b138093" style={{width: 348, height: 341}} width="706" height="692" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cy6r.jpg" />
</Frame>

# Perform Unions

To union your DataSets using Views Explorer, toggle the DataSet side of the left panel. From there, select the **Add Union** button.

<Frame>
  <img alt="toggle dataset column.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cxqj.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=d28034fa12c8bae2eb1a80332acc862a" style={{width: 301, height: 245}} width="692" height="564" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Cxqj.jpg" />
</Frame>

Select **+** **Add Union** to display the **Union configuration** modal.

<Frame>
  <img alt="add union.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000DqYg.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=c8f4aea0506520840be7d4c0087f66bf" style={{width: 297, height: 242}} width="692" height="564" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000DqYg.jpg" />
</Frame>

In the modal, select **+ Add Source** to choose the DataSet(s) you want to union, then select **Save**.

<Frame>
  <img alt="add source.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F04X.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=be761d5709bfc1d8f7a908e9e51c366c" style={{width: 700, height: 562}} width="1958" height="1572" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F04X.jpg" />
</Frame>

<Note>
  **Note:**
  For unions to work properly, all DataSets must contain the same columns. If your DataSets contain different columns, it is best to
  [join](#perform_joins)
  them instead.
</Note>

<Frame>
  <img alt="save union config.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Dqf7.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=8d4194e50e9fed3a0736b19947979d08" style={{width: 700, height: 539}} width="2154" height="1658" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000Dqf7.jpg" />
</Frame>

# Filter Data

Filter columns in your View by using the **+** **Filter** option at the top of the View.

<Frame>
  <img alt="add filter.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F1iA.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=9fbd8c8fe80423b7d3199d476da1221a" style={{width: 900, height: 444}} width="3608" height="1780" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F1iA.jpg" />
</Frame>

When choosing your Filter, you can toggle between viewing the selected columns and viewing the available columns to use with Filters.

<Frame>
  <img alt="view available columns.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F1jl.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=ae177b31be1c6843d4286c16549a5ca5" style={{width: 202, height: 377}} width="642" height="1198" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F1jl.jpg" />
</Frame>

<Frame>
  <img alt="view selected columns.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F1NC.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=36e00300bd80f1ad5d1f23490b58e6ea" style={{width: 197, height: 369}} width="636" height="1192" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F1NC.jpg" />
</Frame>

After you have configured one Filter, you can add another by selecting **+ Filter** again and then **+ Add Filter**.

<Frame>
  <img alt="add filter again.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2BB.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=3409cbea48facae7d0dba38f9f0f9157" style={{width: 400, height: 292}} width="846" height="618" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2BB.jpg" />
</Frame>

To remove a Filter, select <InlineImage src="/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2Cn.jpg" /> **Remove**.

<Frame>
  <img alt="remove filter.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F1lO.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=2cbb04efedb5de6b526c26757955ac2a" style={{width: 350, height: 336}} width="652" height="626" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F1lO.jpg" />
</Frame>

# Group Data

Grouping data helps you to see only columns you are interested in and aggregations that summarize the data from the categories you select. To Group data, select **+ Group** at the top of the View.

<Frame>
  <img alt="group by.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F1qE.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=a6ec8b8ee441ef51426ca8a2d5689c42" style={{width: 900, height: 545}} width="2166" height="1312" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F1qE.jpg" />
</Frame>

In the **Setup Group By** modal, drag the column(s) you are interested in to the **Categories** section.

<Frame>
  <img alt="categories in modal.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F237.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=75f69b5c8a84e16b51043c6cf5d437c8" style={{width: 701, height: 447}} width="2118" height="1350" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F237.jpg" />
</Frame>

Then drag the column(s) you want to aggregate by to the **Aggregations** section.

<Frame>
  <img alt="aggregations in modal.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F26L.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=f02122a235ede224839971291eaf9751" style={{width: 700, height: 439}} width="2038" height="1278" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F26L.jpg" />
</Frame>

After choosing your category(ies) and aggregation(s), you can configure your aggregation(s). In this example, we are configuring the COUNT of our aggregation.

<Frame>
  <img alt="aggregation count.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2G1.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=499134dbedeadcdd951edcdbe92962c3" style={{width: 700, height: 491}} width="1816" height="1274" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2G1.jpg" />
</Frame>

When you are finished, select **Finish** to close the modal.

<Frame>
  <img alt="finish group.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F1S2.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=d53fb64f3c73507b88e9e094c394fcb9" style={{width: 700, height: 662}} width="1336" height="1264" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F1S2.jpg" />
</Frame>

To remove the grouping criteria from your View, open the **Setup Group By** modal and select **Remove Group By**.

<Frame>
  <img alt="remove group by.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2Kr.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=5f97eb2451ecec02d795a7cebe8f65ec" style={{width: 700, height: 662}} width="1336" height="1264" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2Kr.jpg" />
</Frame>

# Sort Data

You can sort your data in the following ways, depending on data type:

* Alphabetically (A–Z or Z–A)
* By date
* Low to High or High to Low

To sort data, select **+** **Sort** at the top of your View. Then select **+ Add Sort**.

<Frame>
  <img alt="Screenshot 2024-01-23 at 1.54.13 PM.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2Sv.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=bda3ac9cf90a4254597a3d19a683ed83" style={{width: 501, height: 252}} width="1304" height="656" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2Sv.jpg" />
</Frame>

You can add multiple sort criteria and change the way they are applied by using their handles to drag them.

<Frame>
  <img alt="reorder sorts.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2ZN.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=b619d6ca84c81de518b0d74a805248b9" style={{width: 601, height: 283}} width="1418" height="668" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2ZN.jpg" />
</Frame>

Remove a sort by selecting **Remove**.

<Frame>
  <img alt="remove sort.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2cb.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=0b8a63592d34d6ce48dd91a5be4e0be7" style={{width: 601, height: 283}} width="1418" height="668" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2cb.jpg" />
</Frame>

# Limit Data

Limiting data means the DataSet will only return the number of rows you have chosen, sorted by the sorting rules you select. To limit the number of rows in your data, choose **+** **Limit** and add the number of rows you would like to include in your DataSet.

Then choose an offset number.

Select **Apply** to see your changes reflected in the View.

<Frame>
  <img alt="Screenshot 2024-01-23 at 2.02.54 PM.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2mH.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=82b67ec4d4bfad83977027faf2104950" style={{width: 500, height: 413}} width="1184" height="978" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2mH.jpg" />
</Frame>

# DataSet Suggestions

The <InlineImage src="/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F4JS.jpg" /> **DataSet Suggestions** tool in the ribbon at the top of your View helps you review items like outliers and constant values in your View so you can filter them out or remove them.

<Frame>
  <img alt="Screenshot 2024-01-23 at 3.10.03 PM.png" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F30o.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=1e40e99feeb46d2e8a98a29a9064c3a6" style={{width: 350, height: 455}} width="666" height="866" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F30o.jpg" />
</Frame>

# Version History

Use the version history to revert to a previous version of your DataSet View. In the ribbon at the top of your View, select <InlineImage src="/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F4Uj.jpg" /> **History** to open the **History** panel.

Find the version you want to revert to and select it.

Select **Restore Version**.

<Frame>
  <img alt="restore version.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F4ZZ.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=521b75cc5ba851b08044f8969d373c04" style={{width: 352, height: 397}} width="694" height="782" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F4ZZ.jpg" />
</Frame>

# Change Controls

In the top navigation, there are three controls you can use as you make changes to your View.

* **Undo —**
  Use <InlineImage src="/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F3lZ.jpg" /> **Undo** to undo your last change.
* **Redo —**
  If you Undo something by mistake, use <InlineImage src="/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2pW.jpg" /> **Redo** to redo the undone change.
* **Revert to original —**
  Use <InlineImage src="/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F2r8.jpg" /> **Revert** to undo all of your changes to this View.

<Frame>
  <img alt="change controls.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F41h.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=3052def01299fbc846e2c46a4c015ead" style={{width: 901, height: 322}} width="3686" height="1318" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F41h.jpg" />
</Frame>

In the top navigation, select <InlineImage src="/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F37G.jpg" /> **Close** to close the DataSet View without saving.

# Save DataSet View

After making changes to your data, you can save it as a new DataSet View. In the top navigation, select **Save As**. In the modal, choose a new name for your View and select **Save**.

<Frame>
  <img alt="save as.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F3s1.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=67106bf669496644c7164d63d087ca73" style={{width: 892, height: 319}} width="3686" height="1318" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F3s1.jpg" />
</Frame>

<Frame>
  <img alt="save as modal.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F3vF.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=c10e169bbce61e594b7a4d78233e8566" style={{width: 450, height: 293}} width="976" height="636" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F3vF.jpg" />
</Frame>

After saving, your DataSet View appears in the Domo Data Center under **DataSets**, with the DataSet View icon: <InlineImage src="/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F3Yf.jpg" />

You can share your DataSet View with others.

<Warning>
  **Important:**
  PDP policies from the parent DataSet still apply and the DataSet View always updates when the parent DataSet updates.
</Warning>

# Export DataSet View

To export your DataSet View, select <InlineImage src="/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F341.jpg" /> > **Export**. The DataSet View is exported as a CSV file.

<Frame>
  <img alt="export.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F38r.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=407ab569ab044731f3fc7f0d54383002" style={{width: 501, height: 192}} width="1008" height="386" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000F38r.jpg" />
</Frame>

### Advanced SQL Editor

The Advanced SQL editor for DataSet Views allows you to get help from an AI Assistant to translate natural human language into complex data queries. See the [FAQ](#faq) for answers to common questions.

# Use the Advanced SQL Editor

In Views Explorer, select **SQL Editor** to open the Advanced SQL Editor.

<Frame>
  <img alt="open sql editor.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CyBh.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=9919b6c1e45f8f76b820ee3607ab7f10" style={{width: 899, height: 562}} width="1600" height="1000" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CyBh.jpg" />
</Frame>

A message displays, warning that you are losing your existing view properties by switching to the editor. To continue, select **Enable SQL Editor**.

<Frame>
  <img alt="enable sql editor.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CyGX.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=c8973d60c242cdfc665f1fe0bbbcc38d" style={{width: 500, height: 200}} width="1194" height="478" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CyGX.jpg" />
</Frame>

In the Advanced SQL Editor, you can write a valid SQL query and select **Apply**. The results are displayed below the editor.

<Frame>
  <img alt="apply query.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CyLN.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=e642fe1ad5998a820e0c274b015cb1c1" style={{width: 898, height: 444}} width="3948" height="1953" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CyLN.jpg" />
</Frame>

# Use AI Assistant to Write a Query

In the SQL editor, write any text in natural language that describes the results you want to see and then press **Enter** or select **Create SQL**.

<Frame>
  <img alt="use ai to query.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CyMz.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=706234ae0ddd18b13e07d937675d2a9e" style={{width: 900, height: 443}} width="3960" height="1950" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000CyMz.jpg" />
</Frame>

The AI translates your query into SQL and adds it to the SQL editor.

You can add more DataSets by selecting **+ DataSet**. This instructs the AI Assistant to find the information you need by joining the additional DataSets to the main DataSet.

<Frame>
  <img alt="add dataset.jpg" src="https://mintcdn.com/domoinc-openapi-sync-dataflows/fpoofI6keqS4BAx0/images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000DnSj.jpg?fit=max&auto=format&n=fpoofI6keqS4BAx0&q=85&s=dd5c91fc3d0ca0240bdb0eb6232bfce8" style={{width: 749, height: 420}} width="2832" height="1587" data-path="images/kb/ka0Vq00000081QL-00N5w00000Ri7BU-0EMVq000000DnSj.jpg" />
</Frame>

### FAQ

<AccordionGroup>
  <Accordion title="How do DataSet Views treat NULL values?">
    Null values are not considered to be equal or not equal to any other value. This means that comparing a column with a null value to another column using either = or!= (\<>) will always return false for that row.
  </Accordion>

  <Accordion title="My View is based on federated DataSets. Why does the row count remain unchanged despite updates to the underlying data?">
    The row count metadata for views on federated DataSets will always show the row count as of when the View was created.
  </Accordion>

  <Accordion title="I am seeing a 0 row count for my View over federated datsets. What could be happening?">
    We support creating Views for published federated datasets on the subscriber side; however, the row count is not supported.
  </Accordion>

  <Accordion title="Can I use a DataSet View inside of a MySQL DataFlow?">
    DataSetViews are not supported inside of MySQL DataFlows.
  </Accordion>

  <Accordion title="Can I join DomoStat reports or other Adrenaline DataSets to federated DataSets?">
    No. These are not supported and will result in an error.

    # Advanced SQL Editor with AI Assistant
  </Accordion>

  <Accordion title="Does Domo send all the data to the AI service (like ChatGPT)?​">
    ​No, only the schemas of any DataSet included in the list of DataSets on the right side of the editor are included in the prompt to the AI service. This allows the AI model to return the correct column names and DataSet names to be used in the SQL query.​
  </Accordion>

  <Accordion title="Does the AI Assistant prompt always return the correct SQL?">
    ​No. Because we are prompting an AI service (like ChatGPT), results may vary. The AI Assistant is meant to be used as a tool to help you generate the SQL for the data you want to include in your Dataset View.

    ### Video — DataSet Views Explorer Overview

    <iframe allowfullscreen="allowfullscreen" frameborder="0" height="315" src="//www.youtube-nocookie.com/embed/hkW2iAGjyAM" width="560" />
  </Accordion>
</AccordionGroup>
