Data models
A data model combines one or more Data Tables. In it you relate the tables, write measures, set row-level security and the refresh schedule. Every report is built on a data model.
Creating a Data Table does not create a data model. You create data models yourself.
Before you start
Section titled “Before you start”- Load your data into Data Tables. See Data Tables.
- To create or edit a data model, you need Build permission. Without it the model opens with the Read only tag.
Create a data model
Section titled “Create a data model”- Open Data models in the sidebar.
- Click New data model.
- Enter a Name (up to 100 characters).
- Optional: enter a Description (up to 2,000 characters).
- Under Data Tables, pick the Data Tables. You can pick up to 20.
- Click Create.
Add or remove Data Tables
Section titled “Add or remove Data Tables”The Data Tables of a data model are listed in the Data pane on the Model tab, under Tables.
Add:
- In the Data pane, click Add data table.
- Pick the Data Table.
- Click Add.
Remove:
- In the Data pane, click the ⋯ button next to the table (Actions for table …), then Remove data table.
- Read the list of tables, measures and relationships that leave the data model.
- Click Remove data table.
The model editor
Section titled “The model editor”The editor has these tabs:
- Model: the diagram of tables and relationships.
- Measures: see Measures.
- Refresh: Refresh now, the latest refresh of each Data Table and the refresh schedule. See Refresh.
- Row-level security: see Row-level security.
On the Model tab, the side pane has three parts: Data (tables, columns and hierarchies), Relationships and Properties.
On the diagram:
- Drag a table header to move the table.
- Drag the empty canvas to move around. Use the zoom buttons to zoom from 50% to 150%.
- Click Auto layout to arrange the tables.
- Use Saved layouts to keep an arrangement: Save layout, Update layout or Delete layout. A data model has at most 20 saved layouts.
Relationships
Section titled “Relationships”A relationship joins a column of one table to a column of another table, so that filters on one table also filter the other.
Detect relationships
Section titled “Detect relationships”- Click Detect relationships.
- Fresco BI suggests relationships from the foreign keys in the source and from column names.
- Click Add on a suggestion, or Add all.
Create a relationship
Section titled “Create a relationship”- Click New relationship. You can also drag a column onto the matching column of another table.
- Under From table (many), pick the table and its Column.
- Under To table (one), pick the table and its Column.
- Pick the Cardinality: Many to one (*:1), One to one (1:1), One to many (1:*) or Many to many (*:*).
- Pick the Cross-filter direction: Single or Both.
- Optional: tick Apply security filter in both directions. It shows only when the direction is Both.
- Leave Relationship is active ticked, unless you want the relationship off.
- Click Apply.
Rules:
- The two columns must be in different tables and have the same data type.
- A one-to-one relationship always filters both ways.
- On the one side, the key column must be unique and have no blanks. The data is checked when you save the draft. If the check fails, you see “Not saved: a relationship key on the one side repeats values or has blanks”.
- To check an existing relationship, select it and click Save and check on data.
Manage relationships
Section titled “Manage relationships”Click Manage relationships to see every relationship in a table: From (table: column), To (table: column), Cardinality, Cross filter and Active. In this list you can:
- edit a relationship,
- delete several relationships at once,
- set the cross filter of the selected relationships,
- click Autodetect to find more relationships.
Table and column properties
Section titled “Table and column properties”Pick a table or a column in the Data pane, then open Properties.
Column properties
Section titled “Column properties”- Hide from the field list
- Summarize by
- Format
- Display folder
- Description
Mark as date table
Section titled “Mark as date table”A date table lets you filter and group by date in a consistent way.
- Pick the table.
- Under Mark as date table, pick the Date column.
- Click Check.
- Click Mark.
The date column must be unique, have no blanks and have every day from its first to its last date. To undo, click Unmark.
Auto date/time
Section titled “Auto date/time”When Auto date/time is on, every date column gets a Date Hierarchy: Year, Quarter, Month, Day. It does not apply to tables marked as date table or to columns related to one.
If you turn it off, the Year, Quarter, Month and Day levels are removed when you save. Visuals that use them show a missing field.
Hierarchies
Section titled “Hierarchies”- Pick the table.
- Click New hierarchy.
- Enter the Hierarchy name.
- Under Levels (top to bottom), click Add level and pick a column. Repeat for each level. Use Up and Down to change the order.
- Click Add hierarchy.
Each column is used once, at most 10 levels, all from the same table.
Calculated columns
Section titled “Calculated columns”A calculated column is computed when queried from the numeric columns of the table. You can use Table[Column], numbers and + - * /.
- Pick the table.
- Under Calculated columns, click New calculated column.
- Enter the Column name (up to 128 characters).
- Enter the Expression (up to 4,000 characters). Example:
Orders[Quantity] * Orders[Unit price]. - Click Check expression.
- Click Add calculated column.
Groups and bins
Section titled “Groups and bins”Pick a column, then:
- New group puts values of the column into named groups. Enter the Column name, a Group name and the Values in the group. Tick Put the other values in an Other group if you want. Click Create column.
- New bins splits a number column into ranges. Pick the Bin type: Size of bins or Number of bins (1 to 1,000). Click Create column.
Decimal number columns cannot be grouped. Use bins for them.
Save, validate and publish
Section titled “Save, validate and publish”Changes go into a draft. Reports keep using the last published version until you publish.
- Click Save draft.
- Click Validate. The Model check shows any issues.
- Click Publish, then confirm. Reports on this model use this version.
Validate and Publish work only after the draft is saved. If errors block publishing, Fresco BI lists them under Cannot publish yet.
Version history
Section titled “Version history”Click Version history to see the saved versions of the data model. Each version shows its number, the author, and the Current draft or Published tag. You can view versions. You cannot restore one.
Rename or delete a data model
Section titled “Rename or delete a data model”On the Data models page, each data model has Rename and Delete in the Actions column.
Delete moves the data model to the trash. You can restore it from the trash. See Trash.
Limits
Section titled “Limits”| Item | Limit |
|---|---|
| Data Tables in a data model | 20 |
| Measures in a data model | 2,000 |
| Relationships in a data model | 2,000 |
| Hierarchies in a data model | 200 |
| Levels in a hierarchy | 10 |
| Saved layouts in a data model | 20 |
| Groups in a group column | 100 |
| Bins in a bins column | 1 to 1,000 |
Common questions
Section titled “Common questions”Can the same Data Table be in two data models? Yes. Each data model has its own relationships, measures and security roles.
Do I need to refresh after I change the model? No. Changing the model never reloads data. Refresh only loads new data from the source.

