Explore foundational concepts of relationships in data modeling, focusing on cardinality types and cross-filter direction settings. This quiz helps users understand how to configure, identify, and troubleshoot relationships for accurate data analysis in Power BI.
Which cardinality type should be used if a Customer table has unique Customer IDs, but many Orders exist for each customer?
Explanation: The correct cardinality is One-to-Many (1:*), as each customer appears only once but may have multiple related orders. Many-to-One (*:1) is the reverse and does not fit this case. Many-to-Many (*:*) is used when both tables have non-unique values. One-to-One (1:1) requires both sides to have only unique values, which isn't true here.
If both the Product and Sales tables contain multiple duplicate Product IDs, which relationship cardinality is suitable?
Explanation: Many-to-Many (*:*) is appropriate when neither table contains only unique values for the related columns. One-to-One (1:1) requires uniqueness, One-to-Many (1:*) needs one unique side, and Sum-to-Sum ($:$) is not a valid option. The correct choice supports complex schema scenarios.
What does setting the cross-filter direction to Both enable in relationships between two tables?
Explanation: Setting the cross-filter direction to Both means filters can propagate from either table to the other, allowing more flexible data exploration. It does not introduce duplicate rows nor block filters. Increasing cardinality is unrelated; direction only controls filter flow, not data volume.
When is it recommended to use a Single cross-filter direction rather than Both?
Explanation: Using Single cross-filter direction helps prevent ambiguity in models with multiple relationship paths between tables. Tables being empty or relationships inactive are unrelated to filter direction. Missing values in columns do not dictate the direction setting; ambiguity in filter flow is the primary concern.
Which column characteristic is most important when setting it as the 'one' side in a One-to-Many relationship?
Explanation: A column must have only unique values to serve as the 'one' side in a One-to-Many relationship, ensuring each value matches to many on the other side. The data type (such as text), presence of duplicates, or inclusion of special characters does not affect this requirement, as uniqueness is the key property needed.
What is a possible consequence of defining a relationship with incorrect cardinality between two tables?
Explanation: Incorrect cardinality can result in faulty data aggregations because filters and joins won't operate correctly. It does not make reports load faster, nor does it disable schema updates or reduce storage size. Ensuring correct cardinality is essential for valid analytical results.
In a complex data model, what problem might arise from using Both cross-filter direction on multiple relationships?
Explanation: Using Both cross-filter direction across multiple tables can create circular dependencies, causing errors in the model. Automatic data type fixing and calculated column generation are unrelated to filter direction. Using Both does not eliminate duplicates; rather, it affects how filters flow across tables.
What does it mean when a relationship is marked as 'inactive' in a data model?
Explanation: An inactive relationship does not influence filtering or calculations unless activated by special functions. It does not delete data or automatically combine columns. Referential integrity enforcement is not guaranteed just because a relationship exists or is inactive.
If no relationship exists between two relevant tables, what can happen during analysis?
Explanation: When there is no relationship, measures might behave unexpectedly because filter context isn't passed between tables. The data is not automatically merged, columns aren't simply sorted, and not all systems infer relationships automatically. Correct table linkage is required for accurate outcome.
In which situation should you use a One-to-One (1:1) relationship between tables?
Explanation: A One-to-One relationship is appropriate when both tables have uniquely matching columns and each row corresponds directly. Hiding columns, having the same number of columns, or frequent data updates are unrelated to the correct use of One-to-One relationships. The key is unique matching on both sides.