Design a semantic model in Power BI Flashcards
What is the primary benefit of creating a good semantic model in Power BI?
It helps make data easier to understand and builds valuable Power BI reports more efficiently.
What are the benefits of a well-designed semantic model?
Faster data exploration, simpler aggregations, more accurate reports, quicker report writing, and easier future maintenance.
Why is it generally better to have a smaller semantic model?
Smaller models perform faster and are simpler for users to navigate and understand.
What is a primary key in a database table?
A unique, non-null column or set of columns that uniquely identifies each row in the table.
How are relationships between tables defined in Power BI?
Through primary and foreign keys that link rows in different tables.
What is a star schema in Power BI?
A schema where each table is defined as a dimension or fact table, optimizing for performance and usability.
What is the difference between fact tables and dimension tables?
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 does Power BI handle relationships from different data sources?
Power BI allows relationships to be built between tables from different data sources, treating them as a unified semantic model.
Why is it important to simplify the table structure in Power BI?
To ensure that the semantic model is user-friendly, easier to navigate, and maintains good-quality relationships between tables.
How can you manage relationships between tables in Power BI?
By using the Manage Relationships feature to create, edit, delete, and autodetect relationships.
What options can you configure in the column properties in Power BI Model view?
Name and description, synonyms, folders, visibility, data type, formatting, sorting, data category, and summarization.
What is the benefit of using Ctrl+click or Shift+click in the Model view?
To update properties for multiple tables and fields simultaneously, improving efficiency.
How can formatting changes, such as date formats, be applied in Power BI?
By selecting the appropriate format from the drop-down menu in the Formatting tab of the column properties.
Why is it important to create a common date table in Power BI?
To ensure consistent and accurate time-based calculations across multiple tables in your data model.
What are three methods to create a date table in Power BI?
Using source data, DAX functions, or Power Query.
How can you create a date table using DAX in Power BI?
By using the CALENDAR or CALENDARAUTO functions to generate a range of dates and then adding additional columns for year, month, week, and day.
What is the DAX formula to create a date table from May 31, 2011, to December 31, 2022?
Dates = CALENDAR(DATE(2011, 5, 31), DATE(2022, 12, 31))
How do you create a date table using Power Query in Power BI?
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.
What must be done after creating a date table to ensure it functions correctly in Power BI?
Establish relationships between the date table and other tables, and mark it as the official date table.
What are dimension tables in a star schema?
Tables that store details about business entities, such as products or time, and are connected to fact tables through relationships.
How are hierarchies useful in Power BI?
They allow users to drill down into specifics of data, like breaking down dates into years, months, weeks, and days.
How can you create a hierarchy in Power BI?
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.
What is a parent-child hierarchy?
A hierarchy where a parent (e.g., manager) has multiple children (e.g., employees), used to show levels of relationships within data.
What is the PATH() function in DAX used for?
To create a text version of the hierarchical path between parent and child in a table.