001
001
001
INTERVIEW
PREPARATION
Andrey Hakobyan
@AndreyHakobyan
Andrey Hakobyan
@AndreyHakobyan
Basic Level
1. What is Power BI?
Answer: Power BI is a business analytics tool by Microsoft that provides interactive visualizations and business
intelligence capabilities with an interface simple enough for end users to create their own reports and dashboards.
It allows users to connect to a wide range of data sources, clean and transform data, and create interactive reports
for decision-making.
1
Andrey Hakobyan
@AndreyHakobyan
2
Andrey Hakobyan
@AndreyHakobyan
19. What is the difference between calculated columns and measures in Power BI?
Answer:
• Calculated Columns: These are static values computed row by row for a specific table and are stored in the
data model.
• Measures: These are dynamic calculations used to perform aggregate operations like sums, averages, etc., and
are calculated at query time, not stored in the data model.
3
Andrey Hakobyan
@AndreyHakobyan
Intermediate Level
1. Explain the difference between Import Mode and Direct Query Mode in Power BI.
Answer:
• Import Mode: Data is imported into Power BI and stored in the Power BI file. The report works faster because the
data is loaded in-memory, but it requires manual or scheduled refreshes to update. Direct Query Mode: Data is
• queried directly from the source in real time without being imported. This allows for real-time reporting but may
have performance issues with large datasets, as queries are run every time you interact with the visuals.
2. What is Power BI Pro, and how does it differ from Power BI Premium?
Answer:
• Power BI Pro: A paid license allowing users to share reports and collaborate with others, publish to Power BI
Service, and integrate with other Microsoft services.
• Power BI Premium: Offers dedicated cloud resources and higher capacity for large datasets, allowing sharing
across the organization without the need for individual Pro licenses. It includes additional features like paginated
reports and AI capabilities.
5. What are measures in Power BI, and how are they different from calculated columns?
Answer:
• Measures: Used to perform calculations on aggregated data, dynamically recalculating values as you interact
with visuals. They are calculated at query time and are not stored in the data model.
• Calculated Columns: These are added to a table in Power BI using DAX expressions. They are calculated row
by row and stored in the data model, increasing its size.
6. What are some best practices for creating a data model in Power BI?
Answer:
• Use a Star Schema for better performance and easy maintenance.
• Create relationships between tables rather than duplicating data.
• Avoid creating complex calculated columns that can slow down performance.
• Use proper naming conventions for tables and fields to ensure readability.
•
Regularly check and clean up unused fields or tables.
4
Andrey Hakobyan
@AndreyHakobyan
11. How do you handle relationships in a star schema versus a snowflake schema in Power BI?
Answer:
• Star Schema: One central fact table connected to multiple dimension tables. It is simpler and performs better in
Power BI.
• Snowflake Schema: Dimension tables are normalized into additional tables. While it reduces data redundancy,
it can make querying and reporting more complex and slower than the star schema.
15. Explain how to use themes and custom visualizations in Power BI.
Answer:
• Themes: Power BI allows you to customize the appearance of reports by applying a theme. You can use
predefined themes or create custom JSON theme files to control colors, fonts, and visual styles across the entire
report.
• Custom Visualizations: You can import custom visuals from Microsoft’s AppSource or develop your own using
libraries like D3.js. These visuals can be used to enhance reports with unique data presentation formats.
16. What is the difference between Power BI Desktop and Power BI Report Server?
Answer:
• Power BI Desktop: A free tool used to design and create reports locally. Reports can be published to the Power
BI Service or Power BI Report Server.
• Power BI Report Server: An on-premises solution for hosting and managing Power BI reports within your
organization’s infrastructure. It is used by organizations that require the ability to keep data and reports on their
own servers rather than the cloud.
18. What are Power BI templates, and how do you use them?
Answer: Power BI templates (.PBIT files) are reusable report files that contain the report’s structure (data model,
visualizations, DAX measures) but without the actual data. You can share templates with others so they can use them
with their own data sources. Templates save time in developing reports with similar structures or layouts.
19. What are parameters in Power BI, and how do you implement them?
Answer: Parameters in Power BI allow users to make input choices that dynamically adjust data or queries in a report.
For example, you can create a parameter to filter data by date range or region. To implement:
1. Go to Power Query Editor.
2. Create a new parameter under Manage Parameters.
3. Use the parameter in queries or visuals to filter or dynamically change the data.
6
Andrey Hakobyan
@AndreyHakobyan
Advanced Level
1. Explain how you would implement incremental refresh in Power BI.
Answer: Incremental refresh is used to refresh only the new or updated data rather than the entire dataset. To implement
it:
1. Define range parameters in Power Query (StartDate, EndDate).
2. Filter the data using these parameters.
3. In Power BI Service, configure Incremental Refresh in the dataset settings by specifying the refresh policy (e.g.,
refresh data for the past 1 month and archive data older than 12 months).
2. What are advanced DAX functions you have used, and how do they improve performance?
Answer: Some advanced DAX functions include:
• CALCULATE(): Modifies the context in which data is aggregated.
• SUMX(): Calculates the sum of an expression over a table.
• FILTER(): Returns a table filtered by an expression, used to manipulate data context.
• ALL(): Removes filters from columns or tables, often used in ranking calculations. These functions help
improve performance by optimizing how data is aggregated and allowing efficient context management.
4. How would you handle performance issues when using Direct Query mode in Power BI?
Answer: To optimize Direct Query performance:
• Limit the amount of data queried by filtering the dataset.
• Use aggregated tables for summary-level data and switch to detail tables only when needed.
• Optimize queries on the source database by creating indexes or partitioning large tables.
• Reduce the complexity of DAX queries, avoiding row-by-row calculations.
•
Enable query folding to push transformations back to the data source.
•
Minimize the use of complex relationships and calculated columns.
5. What are the different data connectivity modes in Power BI, and when should you use each?
Answer:
• Import Mode: Best for static or periodically updated data. Data is imported into Power BI and stored in-memory,
providing the fastest performance.
• Direct Query: Suitable for real-time reporting where data size is too large to be imported or the data needs to be
always up-to-date. Performance can be slower compared to Import Mode.
• Live Connection: Used to connect to SSAS (SQL Server Analysis Services) models without importing data.
This is ideal for enterprise-level reports where the data model is centrally managed.
6. How do you configure data gateways for on-premises data sources in Power BI?
Answer: To configure a gateway:
1. Download and install the On-premises Data Gateway on a local server.
2. In Power BI Service, under Manage Gateways, configure the gateway and add data sources (e.g., SQL Server,
SharePoint).
7
Andrey Hakobyan
@AndreyHakobyan
7. What is the importance of the Common Data Model (CDM) in Power BI?
Answer: The Common Data Model (CDM) is a standardized, extensible data schema published by Microsoft that defines
entities, attributes, and relationships. It simplifies data integration across various applications and services (Power BI,
Azure, Dynamics, etc.). By using CDM:
• Data becomes more interoperable across platforms.
• It ensures consistent data definitions, which are critical for analytics and machine learning models.
• It facilitates collaboration between departments by using the same data definitions.
8. Explain the process for deploying and sharing Power BI content with Power BI apps.
Answer: To deploy and share content using Power BI apps:
1. Publish the report or dashboard to a Power BI Workspace.
2. In the workspace, configure access permissions for users or groups.
3. Create an app for the workspace, which packages all reports, dashboards, and datasets into a single view.
4. Share the app with users by sending a link or assigning it to specific users in your organization.
11. What are composite models in Power BI, and how do they work?
Answer: Composite models allow you to combine data from different data sources (Import Mode and Direct Query) in
the same report. This gives flexibility by:
• Using Import Mode for historical data (better performance).
• Using Direct Query for real-time or frequently updated data. You can model relationships between tables from
both imported and Direct Query datasets, enabling more complex data reporting scenarios.
12. How do you use the DAX function CALCULATE() and why is it powerful?
Answer: The CALCULATE() function in DAX changes the context in which data is evaluated, allowing you to apply
filters or modify the existing ones. It is powerful because:
• It lets you apply complex filters dynamically in measures.
• You can use it to calculate things like filtered sums or conditional averages.
• It can change filter context on columns and measures, making it versatile for creating advanced calculations.
13. How do you set up dynamic row-level security (RLS) based on user roles in Power BI?
Answer: Dynamic RLS is set up to ensure users only see the data relevant to them based on their login. To implement:
8
Andrey Hakobyan
@AndreyHakobyan
14. How do you connect Power BI with Azure SQL Database or Azure Data Lake?
Answer: To connect Power BI to Azure SQL Database:
1. Select Azure SQL Database in the Get Data window.
2. Enter the server name and database name.
3. Authenticate using SQL authentication or Azure Active Directory credentials.
4. Once connected, you can import the data or use Direct Query.
To connect to Azure Data Lake:
1. Select Azure Data Lake Storage in Get Data.
2. Enter the account URL and authenticate with Azure credentials.
3. Power Query will let you navigate the folders and files in the lake.
15. Explain how Power BI integrates with other Microsoft tools like Power Automate and Power Apps.
Answer:
• Power Automate: Allows Power BI users to trigger workflows (like sending emails or refreshing datasets) based
on report data. You can add a Power Automate button to Power BI and link it to a flow that automates tasks.
• Power Apps: Can be embedded in Power BI reports. This allows users to take actions based on the report data
directly, such as updating records or inputting new data into a database through a Power App form.
16. What are the advantages and disadvantages of using Direct Query versus Import Mode?
Answer:
• Advantages of Direct Query:
o Real-time data access.
o Does not require large amounts of memory for storing data.
o Ideal for large datasets or scenarios requiring real-time reporting.
• Disadvantages of Direct Query:
o Performance can be slower as every interaction sends a query to the source.
o Limited DAX function support.
o Relies on the performance of the source system.
• Advantages of Import Mode:
o Fast performance since data is stored in-memory.
o Full DAX function support.
o Can work offline as data is stored locally.
• Disadvantages of Import Mode:
o Requires periodic data refreshes.
o Can be memory-intensive for large datasets.
17. How do you use Power BI Report Builder for paginated reports?
Answer: Power BI Report Builder is a tool used to create paginated reports, which are pixel-perfect and designed to
print or export data. To create a paginated report:
1. Install Power BI Report Builder.
2. Connect to a data source (e.g., SQL Server, Power BI dataset).
3. Design the report by dragging and dropping fields into the table or matrix.
4. Apply filters, sorting, and formatting as needed.
5. Publish the report to Power BI Service for sharing.
9
Andrey Hakobyan
@AndreyHakobyan
18. Explain the use of aggregation tables to optimize query performance in Power BI. Answer: Aggregation tables store
pre-summarized data at a lower granularity, reducing the volume of data that needs to be queried. Power BI
automatically switches to an aggregation table when possible, which improves query performance. To use aggregation
tables:
1. Create a summarized version of your fact table (e.g., sales by month).
2. Set up relationships and mark the table as an aggregation.
3. Power BI will use the aggregation table when querying summary-level data, significantly speeding up
performance.
20. How do you troubleshoot slow-running queries in Power BI, and what steps would you take to resolve performance
bottlenecks?
Answer: To troubleshoot slow queries:
1. Use the Performance Analyzer in Power BI Desktop to identify slow visuals or DAX queries.
2. Analyze the Query Plan and Query Statistics in SQL Server or the data source to identify bottlenecks.
3. Optimize DAX calculations by reducing complex operations and using efficient DAX functions like SUMX()
and CALCULATE().
4. Reduce data size by limiting unnecessary columns or filtering data at the source.
5. Consider using aggregation tables for large datasets and apply query folding to push transformations to the
source system.
10
Helping DATA SPECIALISTS
prepare for interview
in just 4 DAYS
Andrey Hakobyan
@AndreyHakobyan
FOLLOW ME
REPOST
COMMENT “GUIDE”