Model Data-1 Flashcards
What are the different cardinality options in Power BI?
One-to-One
One-to-Many
Many-to-One
Many-to-Many
What is a Many-to-one relationship (*.1)
It’s the most common relationship and the default type
The column in a given table can have more than one instance of a value and the other related table often known as the lookup table has only one instance of a value
What is a One-to-one (1:1) relationship?
The column in one table has only one instance of a particular value, and the other related table has only one instance of a particular value
What is a One-to-Many (1:*) relationship?
The column in one table has only one instance of a particular value and the other related table can have more than one instance of a value
What storage modes are Many-to-many relationship (:) used in and what requirement is removed?
Used with composite models
It removes the requirements for unique values in tables
What does cross filter direction determine?
Cross filter determines which way your filters flow in the relationships created
What are the 2 cross filter directions?
Single or Both (bidirectional)
What happens when single cross filter is selected?
When single cross filter is selected, the filters from the table on the “one side” will filter through the table on the “many” side.
What happens when both cross filter is selected?
When both cross filter is selected, filters from both tables will flow in both directions.
How are tables treated when “both” cross filter is selected & what setting does it work best in?
When “both” is selected, both tables are treated as if they’re a single table. The “both” setting works well with a single table that has many lookup tables that surround it.
Ex: A sales actuals table with a look-up table for its department.
What does “single” for the cross filter direction mean?
Single is the most common, default direction, which means filtering choices in connected tables work on the table where values are being aggregated.
What are the 3 most common schemas?
- Flat (fully denormalized) schema
- Star schema
- Snowflake schema
What is a flat schema?
All attributes are fully demoralized into a single table
What are the downsides of flat schemas?
- A single table can be cumbersome & confusing to navigate
- Columns & Data can often be duplicated, leading to comparatively large file size
- Mixing facts of different grains results in more complex DAX formulas
What are the two table types Star Schemas use?
Fact Table and Dimension Table
What is a fact table & what type of data does it contain?
A fact table is a Transaction table
- metrics you want to aggregate.
- Contain foreign keys that are required to create relationships with dimensions
- columns that you can aggregate