Design a semantic model in Power BI Flashcards

1
Q

What is the primary benefit of creating a good semantic model in Power BI?

A

It helps make data easier to understand and builds valuable Power BI reports more efficiently.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the benefits of a well-designed semantic model?

A

Faster data exploration, simpler aggregations, more accurate reports, quicker report writing, and easier future maintenance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why is it generally better to have a smaller semantic model?

A

Smaller models perform faster and are simpler for users to navigate and understand.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a primary key in a database table?

A

A unique, non-null column or set of columns that uniquely identifies each row in the table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How are relationships between tables defined in Power BI?

A

Through primary and foreign keys that link rows in different tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a star schema in Power BI?

A

A schema where each table is defined as a dimension or fact table, optimizing for performance and usability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the difference between fact tables and dimension tables?

A

Fact tables contain measurable data (e.g., sales orders), while dimension tables contain details about the data in fact tables (e.g., products, locations).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does Power BI handle relationships from different data sources?

A

Power BI allows relationships to be built between tables from different data sources, treating them as a unified semantic model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why is it important to simplify the table structure in Power BI?

A

To ensure that the semantic model is user-friendly, easier to navigate, and maintains good-quality relationships between tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How can you manage relationships between tables in Power BI?

A

By using the Manage Relationships feature to create, edit, delete, and autodetect relationships.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What options can you configure in the column properties in Power BI Model view?

A

Name and description, synonyms, folders, visibility, data type, formatting, sorting, data category, and summarization.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the benefit of using Ctrl+click or Shift+click in the Model view?

A

To update properties for multiple tables and fields simultaneously, improving efficiency.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How can formatting changes, such as date formats, be applied in Power BI?

A

By selecting the appropriate format from the drop-down menu in the Formatting tab of the column properties.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Why is it important to create a common date table in Power BI?

A

To ensure consistent and accurate time-based calculations across multiple tables in your data model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are three methods to create a date table in Power BI?

A

Using source data, DAX functions, or Power Query.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How can you create a date table using DAX in Power BI?

A

By using the CALENDAR or CALENDARAUTO functions to generate a range of dates and then adding additional columns for year, month, week, and day.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is the DAX formula to create a date table from May 31, 2011, to December 31, 2022?

A

Dates = CALENDAR(DATE(2011, 5, 31), DATE(2022, 12, 31))

18
Q

How do you create a date table using Power Query in Power BI?

A

By defining a list of dates using an M formula and then converting the list into a table, adding columns for year, month, week, and day.

19
Q

What must be done after creating a date table to ensure it functions correctly in Power BI?

A

Establish relationships between the date table and other tables, and mark it as the official date table.

20
Q

What are dimension tables in a star schema?

A

Tables that store details about business entities, such as products or time, and are connected to fact tables through relationships.

21
Q

How are hierarchies useful in Power BI?

A

They allow users to drill down into specifics of data, like breaking down dates into years, months, weeks, and days.

22
Q

How can you create a hierarchy in Power BI?

A

Right-click the desired column in the Fields pane, select “New hierarchy,” and then add sub-levels by dragging and dropping other columns into this hierarchy.

23
Q

What is a parent-child hierarchy?

A

A hierarchy where a parent (e.g., manager) has multiple children (e.g., employees), used to show levels of relationships within data.

24
Q

What is the PATH() function in DAX used for?

A

To create a text version of the hierarchical path between parent and child in a table.

25
Q

What are role-playing dimensions?

A

Dimensions that have multiple valid relationships with fact tables, allowing the same dimension to filter multiple columns or tables of data.

26
Q

What is data granularity?

A

The level of detail represented within your data, affecting performance and usability of reports.

27
Q

Why might you adjust the granularity of data?

A

To make the semantic model more usable and improve performance by reducing the number of records.

28
Q

What is an example scenario for adjusting data granularity?

A

Importing daily averages instead of minute-by-minute records for truck temperatures to reduce data volume.

29
Q

How can data granularity impact relationships between tables?

A

Different granularities need to be reconciled to build relationships, such as matching monthly budget data with daily sales data.

30
Q

How do you create a relationship between tables with different granularities?

A

By transforming columns to match formats, such as concatenating Year and Month columns to create a common date format.

31
Q

What is a many-to-one (or one-to-many) relationship in Power BI?

A

A relationship where many instances in one column relate to a single instance in another column, typically between fact and dimension tables.

32
Q

What defines a one-to-one relationship?

A

A relationship where only one instance of a value is common between two tables, requiring unique values in both tables.

33
Q

What is a many-to-many relationship in Power BI?

A

A relationship where many values are common between two tables without requiring unique values in either table.

34
Q

What does single cross-filter direction mean?

A

Only one table in the relationship can filter data, with filtering occurring on the “many” side.

35
Q

What is bi-directional cross-filtering?

A

A feature where both tables in a relationship can filter each other, though it can affect performance and introduce ambiguity.

36
Q

When should you use caution with bi-directional cross-filtering?

A

When dealing with many-to-many relationships due to the potential for ambiguity and performance issues.

37
Q

What is a common pitfall in creating relationships within a semantic model in Power BI?

A

Circular relationships, which create a web of connections that are difficult to manage.

38
Q

What are dependencies in the context of Power BI relationships?

A

Relationships where changes in one table or column cause changes in another due to their interconnected nature.

39
Q

What is an example of a column dependency in Power BI?

A

A calculated column TotalCost in the Sales table depends on the Quantity and Price columns.

40
Q

How can you identify circular relationships in your Power BI model?

A

By analyzing the dependencies between tables and ensuring there are no circular dependencies.

41
Q

Why is it important to avoid circular relationships in Power BI?

A

They can make it unclear what relationships exist, complicating the building and understanding of visuals.