Cardinality and cross-filter guide

In DataPrism, every relationship needs two decisions: its cardinality and its cross-filter direction. The Cardinality & cross-filter guide is the in-product reference for both, with worked examples, uniqueness rules and a cheat sheet. Open it while you set up a relationship, or when a report's filters do not travel the way you expect.

Open the guide

  1. Open the Add relationship or Edit relationship dialog. For the steps that lead there, see Relationships and the core table.
  2. Click Cardinality & cross-filter guide in the dialog's header.

Point at the button to read its tooltip: "See one-to-one and many-to-one cardinality, Single/Both cross-filter, and uniqueness rules. From table is always the fact table."

The guide opens over the dialog and is a reference: reading it changes nothing on your relationship. Set the values themselves with Cardinality and Cross-filter in the dialog behind it.

Move around the guide

The two cardinality patterns

Cardinality says how rows on the two sides of a join match. The relationship dialog offers the same two shapes under Cardinality, labelled N:1 and 1:1.

Both patterns allow Single or Both cross-filter, and Both is the default. On a one-to-one relationship, the form keeps it on Both; see Relationships and the core table.

The two cross-filter patterns

Cross-filter says which way a report filter travels along the relationship.

When the table on the other side of a relationship, not the fact table, has row-level security, Cross-filter is forced to Both. See Row-level security and View as.

Read the example panels

Each card pairs its rules with an example: two small tables side by side, with a rail between them that shows which way filters travel, carrying labels such as "Both filters" or "Single A → B".

The cheat sheet

The last item in the guide's list, Compare, holds one table: the cheat sheet Cardinality & cross-filter at a glance, under the label Cheat sheet.

CardinalityCross-filter optionsDefaultUniqueness rule
Many to one (N:1)Single, BothBothTarget (one) column unique
One to one (1:1)Single, BothBothBoth columns unique

The default and the uniqueness cells are highlighted, so the two things to check stand out.

Questions, answered

How do I open the cardinality and cross-filter guide?

Open the Add relationship or Edit relationship dialog and click Cardinality & cross-filter guide in its header. How to reach the dialog is on Relationships and the core table.

Does the guide change my relationship?

No. The guide is a reference dialog: reading it changes nothing on your relationship. The dialog behind it is where you set Cardinality, Cross-filter and Active, and those changes apply only when you save.

What is the difference between many to one and one to one?

Many to one (N:1): many fact rows match one related row, so many order rows can point to one customer; only the target (one) column must be unique. One to one (1:1): each fact row matches exactly one target row and the other way round; both join columns must be unique. N:1 is the default for a new relationship.

Which join columns must be unique?

For N:1, the target (one) column: "The target join column must not contain duplicate values (or null duplicates treated as duplicates)." For 1:1, both join columns must be unique. The same rules apply when Both cross-filter is on.

What is the difference between Single and Both cross-filtering?

Single sends filters one way only, from the source to the target, and suits directed reports. Both lets filters propagate in both directions and suits interactive dashboards; it is the default for N:1 and 1:1. The two cross-filter cards carry the full wording.

Which side of a relationship is the fact table?

The from side. The guide repeats the rule in its header: "The from table is always the fact table." The Many to one (N:1) card also carries the FROM · FACT TABLE badge, and the relationship dialog fixes the from side in its From table (fact) section.

What do the badges on the cards mean?

What do the colours in the example panels mean?

They name the four row states in the legend: Selected (the row you picked), Filtered match (a row the filter keeps), Duplicate / invalid (a key that duplicates where the rule requires uniqueness) and Not in filter (a row the filter leaves out, shown dimmed). The state colours each row's left edge.

What does the cheat sheet show?

Compare at the end of the guide's list shows Cardinality & cross-filter at a glance: both patterns in one table with their cross-filter options (Single, Both), the default (Both) and the uniqueness rule (target column for N:1, both columns for 1:1).

Do the examples show my data?

No. The panels use small fictional tables: orders and customers for the N:1 card, users and profiles for the 1:1 card, and the same order and customer rows for Single and Both. They illustrate the rules; they do not read your model.