Skip to navigation

Data model representation example library

View as Markdown

The Sigma programmatic data model API endpoints, including Create a data model from a code representation, Update a data model from a code representation, and Get the code representation of a data model require a specific format for the representation of the data model. This example library shows examples of data model representations for various configurations, using different element types and features in Sigma.

Consult these examples to:

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

Example representations

To review a specific representation, search or browse the following examples:

Page 1 of 2
CategoryLink
Data model with a single tableTablesView example
Data model with a CSV tableSourcesView example
Data model with a table and a calculated columnTablesView example
Data model with a table and a metricModelingView example
Data model with a metric timelineModelingView example
Data model with a table and a relationshipModelingView example
Data model with a custom SQL elementSourcesView example
Data model with a folderModelingView example
Data model with a groupingTablesView example
Data model with filtersTablesView example
Data model with a joinSourcesView example
Data model with a unionSourcesView example
Data model with a transposed tableSourcesView example
Data model with column-level securityModelingView example
Data model with a list values controlControlsView example
Data model with a text input controlControlsView example
Data model with a text area controlControlsView example
Data model with a number input controlControlsView example
Data model with a number range controlControlsView example
Data model with a date controlControlsView example

To see the representation for a specific configuration or combination of features, you can create the data model in the UI and then retrieve the representation using the Get the code representation of a data model endpoint.