Designing a Semantic Model In PBI Flashcards
What is the main benefit of creating a good semantic model in Power BI?
Makes data easier to understand for users, leading to better reports.
What are two characteristics of a good semantic model?
Simplicity (fewer tables/columns) and comprehensiveness (includes all necessary data).
How are relationships defined between tables in a semantic model?
Using primary and foreign keys.
What are the two main types of tables in a star schema?
Fact tables (measurable data) and dimension tables (data details).
What is the difference between a fact table and a dimension table in a star schema?
Fact tables store measurable data for aggregation, while dimension tables contain details used for filtering and grouping fact table data.
Why are fact tables typically larger than dimension tables?
Fact tables hold numerous event records, while dimension tables have a limited number of filtering/grouping options.
What is a benefit of a simple table structure in a Power BI semantic model?
Easier navigation due to clear column and table properties.
How can you manage relationships between tables in Power BI?
Go to the “Manage Relationships” option in the “Model” tab.
How does the Autodetect feature help with relationships in Power BI?
It automatically suggests relationships between columns with similar names.
What are two ways to access table and column properties for editing in Power BI Desktop?
Ctrl+click or Shift+click the items in the “Model” view.
What can you do under the “Formatting” tab for columns in Power BI?
Change data type and format
What is the main purpose of a common date table in Power BI?
To enable time-based calculations and ensure consistent date formatting across reports.
What are three ways to create a common date table in Power BI?
Source data (existing table), DAX functions (CALENDAR or CALENDARAUTO), or Power Query (M language).
What is the benefit of using a source data table (if available) for the common date table?
It’s likely shared with other tools and avoids recreating the table.
How can you add a “Year” column to a date table created with DAX?
Use the YEAR function (e.g., Year = YEAR(Dates[Date])).
What do you need to do after creating a common date table with Power Query?
Mark the table as the official date table to ensure data validity and recognition by Power BI.
How do you build a relationship between a common date table and another table?
Use the “Manage Relationships” option in the “Model” tab and connect them using matching date columns.
What is the difference between a dimension table and a fact table in a star schema?
Dimension tables store details about entities, while fact tables contain information about events.
What is the purpose of a hierarchy in Power BI?
To allow drilling down into specific details from high-level data.
How can you create a hierarchy for a product category in Power BI?
Right-click the “Product Category” column in the “Fields” pane, select “New hierarchy,” and drag and drop subcategories into the hierarchy.
What is the benefit of flattening a parent-child hierarchy in Power BI?
To view multiple child levels based on a parent for more data granularity.
What DAX functions are used to flatten a parent-child hierarchy in Power BI?
PATH() to create a text path showing the managerial chain and PATHITEM() to separate each level into new columns.
What is a role-playing dimension in Power BI?
A dimension table with multiple valid relationships to fact tables, allowing for filtering data in different ways.
What is data granularity in Power BI?
The level of detail within your data.
Why is data granularity important in Power BI?
It impacts both report performance and how usable your reports are for users.
How can data granularity affect report performance?
More data (higher granularity) can lead to slower reports and refresh rates.
How can data granularity affect user experience?
Summarizing data (lower granularity) may prevent users from drilling down to see specific details.