> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.sigmacomputing.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server.

# Example representation: Report with a repeated container (Beta)

> Example Sigma code representation of a report with a repeated container.

This documentation describes one or more public beta features that are in development. Beta features are subject to quick, iterative changes; therefore the current user experience in the Sigma service can differ from the information provided in this page.

This page should not be considered official published documentation until Sigma removes this notice and the beta flag on the corresponding feature(s) in the Sigma service. For the full beta feature disclaimer, see [Beta features](/docs/sigma-product-releases#beta-features).

This is an example representation of a report, retrieved using the [Get a report](/reference/get-report) endpoint with the query parameter `includeContents=true`. Representations like this one can be used to create a report from code using the [Create a report](/reference/create-report) endpoint. Each page in this example library includes the code representation of the report and step-by-step instructions to create it in the Sigma UI.

Consult this example and others in the [Report representation example library](/docs/report-representation-example-library) to:

* Troubleshoot the formatting of a particular feature in code representation
* Relate a feature from the Sigma UI to its representation in code
* Provide context to AI tools used to create reports from code

This example representation cannot be used as-is. All identifying details, such as IDs, names, and URLs, have been replaced with randomized ID values or generic substitutions. The format of these contents, like the length of ID values, is preserved for demonstrative purposes. However, this representation cannot be directly used without modification to the base URL, connection details, and more. For more information, see [Create and manage reports from code](/docs/manage-reports-as-code).

## System and user requirements

To complete the steps in this example, you must meet the user requirements listed below for creating the report in the UI and creating it from code.

The ability to create this report in the Sigma UI requires the following:

* You must be assigned an [account type](/docs/account-type-and-license-overview) with the **Create, edit, and publish reports** permission enabled.
* You must have access to a connection to a data platform.

The ability to create a report from code requires the following:

* You must be assigned an [account type](/docs/account-type-and-license-overview) with the **Create, edit, and publish reports** permission enabled.
* You must have developer credentials for the Sigma API. For more information, see [Get started with the Sigma REST API](/reference/get-started-sigma-api).

This example uses a table from the [Sigma Sample Connection](/docs/sigmas-sample-connection). Your organization might have disabled access to the Sigma sample connection. If so, you can contact an admin to enable it, or use a table from another connection to follow along with this example.

## Create the example report in the Sigma UI

This example shows a report with a repeated container that generates one card per trip, with a value list on each card showing a select number of that trip's columns.

To create this report in the Sigma UI:

1. Go to the **Home** page.

2. Select ![](https://sigma-docs-screenshots.s3.us-west-2.amazonaws.com/Icons/button-add.svg) **Create new** > **Report**.

   A new report opens.

3. From the **Add element** bar, select **Layout** > **Repeated container**.

4. In the **Select source** modal, search for the table `TRIP` in the `EXAMPLES.BIKES` schema.

5. Select the table to use it as the container source. A repeated container appears on the report page.

6. From the **Add element** bar, select **UI** > **Value list**, and then drag the value list into any card.

7. Select the value list, then in the editor panel, under **Properties**, in the **Fields** section, select ![](https://sigma-docs-screenshots.s3.us-west-2.amazonaws.com/Icons/add.svg) **Add field** two times so the list has three fields.

8. Set the following values for the value list fields:
   * **Field 1**: *Id*
   * **Field 2**: *Duration*
   * **Field 3**: *Start Station Name*
     Then, rename the each field's label to match the assigned column name.

9. Select the repeated container element, then in the editor panel, select **Format**.

10. In the **Card style** section, configure the following settings:

    | Option               | Setting     |
    | :------------------- | :---------- |
    | **Padding**          | **20**      |
    | **Background color** | **#E5F5FF** |

11. In the **Layout** section, configure the following settings:

    | Option      | Setting  |
    | :---------- | :------- |
    | **Layout**  | **Grid** |
    | **Rows**    | **4**    |
    | **Columns** | **2**    |

12. Select one of the value list elements and resize it to fill the card. All cards in the repeated container are automatically resized to match.

13. In the document header, select **Save as**.

14. Enter a name for the report, such as `repeated-container`.

15. Select **Save**.

## Get a code representation of this report

To get a representation of this report, follow the steps in [Get the code representation of a report](/docs/get-the-code-representation-of-a-report).

The code representation of this report appears like the following:

#### YAML representation

```yaml
reportId: f4e1077c-1c26-4088-a8a1-2546ca66acab
reportUrlId: RUqWouN00nhbDcwlBob1z8
createdBy: UWCrlXH5OZPIvkmpaeAMF2oY3Y2dQ
updatedBy: wAj3rAPRQ7VNx4vU2IaXXBv0x6YEk
createdAt: '2026-09-03T18:25:32.089Z'
updatedAt: '2026-09-03T18:53:52.638Z'
name: repeated-container
url: https://aws-api.sigmacomputing.com/org-name/report/RUqWouN00nhbDcwlBob1z8
path: My Documents/<folder-name>
latestVersion: 3
ownerId: UWCrlXH5OZPIvkmpaeAMF2oY3Y2dQ
isArchived: false
contents:
  schemaVersion: 1
  elements:
    - id: YWc31xIFOw
      kind: report-repeated-container
      source:
        connectionId: 260797d8-7d5c-4ef2-8b11-18aee5513a25
        kind: warehouse-table
        path:
          - EXAMPLES
          - BIKES
          - TRIP
      cardStyle:
        backgroundColor: '#e5f5ff'
      numRows: 4
  pages:
    - id: qjra4vBZIx
      name: .default
  config:
    margin: 0
    pageHeight: 1056
    pageWidth: 816
  kind: report
  layout: |
    <?xml version="1.0" encoding="utf-8"?>
    <Page id="qjra4vBZIx">
      <Element elementId="YWc31xIFOw" x="0" y="0" width="816" height="960"/>
    </Page>
documentVersion: 3

```

## Representing repeated containers

#### Repeated container representation

```yaml
...
elements:
- id: YWc31xIFOw
  kind: report-repeated-container
  source:
    connectionId: 260797d8-7d5c-4ef2-8b11-18aee5513a25
    kind: warehouse-table
    path:
    - EXAMPLES
    - BIKES
    - TRIP
  cardStyle:
    backgroundColor: '#e5f5ff'
  numRows: 4
...
```