Cardinality is a Powersheet data model concept. Polarion link roles do not have a cardinality setting — Powersheet uses the
cardinality value to control how the sheet renders and navigates relationship data.Cardinality Property
The
cardinality property is declared within each entry of the relationships array in the data model YAML. It works together with from, to, storage, linkRole, direct, and back to form a complete relationship definition.
Supported Cardinality Values
The
one-to-one cardinality value is not currently supported. To model a strict 1:1 relationship, use many-to-one and enforce the single-target constraint through workflow or validation.How the Three Configuration Layers Connect
The data model, sheet sources, and sheet columns are connected through navigation property names. The cardinality of a relationship determines which expand pattern and column binding syntax to use.- Data model defines entity types and relationships (including
cardinality,direct, andbacknavigation property names) - Sheet sources define how to query and expand those relationships using the navigation property names
- Sheet columns define how to display the resulting data using binding paths derived from the same navigation property names
Shared Data Model for Examples
All examples on this page use the following minimal data model:Many-to-One (N:1)
Scenario: EachUserNeed belongs to exactly one Chapter.
The relationship uses the direct direction with name: chapter (singular, scalar navigation property). Because the cardinality is many-to-one, the navigation property on the “from” side points to a single entity.
Relationship Definition
Source Configuration
direct navigation property name chapter. Because it is a scalar property (N:1), the expand resolves to a single related entity per row.
Column Configuration
One-to-Many (1:N)
Scenario: EachChapter has multiple child UserNeed items.
This is the reverse side of the many-to-one relationship above. It uses the back direction with name: userNeeds (plural, collection navigation property).
Relationship Definition
The same relationship entry is used — the 1:N perspective is simply theback direction of the N:1 relationship:
Chapter, the back.name value userNeeds provides the collection navigation property.
Source Configuration
back navigation property name userNeeds. Because it is a collection property (1:N), the expand creates child rows underneath each Chapter.
Column Configuration
When a collection navigation property is used as a column key, it opens a new sheet level with child rows. No dot-notation is needed — the expand directly opens the child level.
Many-to-Many (M:N)
Scenario:UserNeed items are linked to multiple SystemRequirement items, and vice versa.
Many-to-many relationships use an association entity as an intermediate layer. The source expand is two levels deep, and column binding uses dot-notation to reach through the association to the target entity.
Relationship Definition
Source Configuration
systemRequirements— navigates to the association entity (collection)systemRequirement— navigates from the association to the actual target entity (scalar)
Column Configuration
Navigation Property Naming Conventions
The navigation property names declared indirect and back follow consistent naming conventions that signal the cardinality:
Relationship Context Properties
Each relationship entry that includes acardinality value also requires the following sibling properties:
The
direct and back objects each contain a name property that defines the navigation property used in source expands and column binding paths.
Cardinality Summary
Complete YAML Example
A full data model demonstrating all cardinality patterns with the standard RTM entity set:Related Pages
- Relationships — Full relationship definition reference
- Navigation Directions — Direct and back direction details
- Link Roles — Polarion link role configuration
- Data Model Types — Entity type definitions
- Binding Syntax — Column binding path syntax
- Multi-Item Columns — Configuring columns for M:N relationships
- Sources — Sheet source and expand configuration
- Expand Clause — Query expand clause reference