Power BI Question Bank
Power BI Question Bank
Getting Data
1. What are the main data sources that Power BI can connect to?
o Power BI supports multiple data sources, including relational databases (SQL
Server, MySQL, Oracle), cloud-based services (Azure, Google Sheets), files
(Excel, CSV, JSON), APIs, and web sources. It also integrates with Microsoft
services like SharePoint, Dynamics 365, and Power Apps. This flexibility
allows users to import data from various business applications and external
sources.
2. What is the difference between importing data and DirectQuery?
o Import mode loads data into Power BI, enabling fast performance but
requiring scheduled refreshes to update data. DirectQuery, on the other hand,
does not store data in Power BI but queries the data source in real time.
DirectQuery is useful for large datasets and up-to-date reporting but may have
performance limitations depending on query complexity.
3. How do you connect Power BI to an SQL database?
o
In Power BI Desktop, go to "Get Data" "SQL Server Database" Enter the server name and da
Click "Get Data" Select "Web" Enter the URL of the web page or API. Power BI will extrac
11. What is the difference between API-based data connections and database
connections in Power BI?
● API-based connections retrieve data from web services, often in JSON or XML
format, requiring transformation before use. Database connections, such as SQL
Server or MySQL, access structured data stored in relational databases. APIs provide
real-time access but may have rate limits, while database connections offer structured
queries with optimized performance.
Power BI connects to SharePoint lists and document libraries via "Get Data" "SharePoint Online List
13. What are the advantages of using Azure SQL Database with Power BI?
● Azure SQL Database offers scalability, automatic backups, and high availability,
making it ideal for cloud-based analytics in Power BI. With DirectQuery mode, users
can access real-time data without frequent imports, ensuring reports are always up to
date.
● Yes, Power BI allows users to connect to multiple data sources simultaneously. Using
Power Query, data from different sources (Excel, SQL, APIs, etc.) can be combined
and transformed into a unified dataset. Relationships between different sources enable
comprehensive analysis.
15. What are Linked Tables in Power BI?
● Linked Tables allow users to connect Power BI directly to Excel tables, keeping the
data synchronized. Changes in Excel are reflected in Power BI upon refresh,
providing a convenient way to manage smaller datasets.
2. Preparing Data
16. What is Power Query and how does it help in data preparation?
o Power Query is Power BI’s built-in ETL tool that allows users to connect,
clean, transform, and shape data before loading it into the report. It provides a
user-friendly interface to perform data transformations such as removing
duplicates, renaming columns, filtering rows, and merging datasets. Power
Query ensures that data is clean and structured for effective analysis.
17. How do you handle missing values in Power BI?
o Power BI provides multiple options for handling missing data. Users can
replace null values with specific values using the "Replace Values" function,
fill down or up using the "Fill" option, or remove incomplete rows entirely.
Additionally, conditional transformations can be applied to handle missing
values dynamically.
18. What are calculated columns in Power BI?
o Calculated columns are user-defined columns created using Data Analysis
Expressions (DAX). They are computed at the row level and stored in the data
model, making them useful for categorization or adding new information to
existing tables. However, they increase the data model size, so they should be
used only when necessary.
19. How is a measure different from a calculated column?
o A calculated column is a static value stored in the dataset, whereas a measure
is dynamic and recalculates based on the applied filters. Measures use DAX
formulas to compute aggregations like SUM, AVERAGE, and COUNT
dynamically, ensuring optimized performance for large datasets.
20. What is data profiling in Power BI?
o Data profiling helps analyze data quality by providing insights into null
values, distinct values, distribution, and column statistics. It helps identify
inconsistencies, missing data, and data patterns, ensuring that data is clean and
reliable before visualization.
21. What is a Data Model in Power BI?
o A Data Model is a structured representation of tables, relationships, and
calculations used in Power BI. It enables efficient querying and data
visualization by organizing data into a logical structure. Good data modeling
practices, such as using star schema, improve report performance.
22. What is a star schema and why is it recommended for Power BI?
o A star schema consists of a central fact table (containing numerical values)
connected to dimension tables (descriptive attributes like date, product, or
location). It optimizes data storage, speeds up queries, and enhances
performance compared to flat or transactional models.
23. What is row-level transformation in Power Query?
o Row-level transformation involves modifying individual rows in a dataset.
Common transformations include filtering out unnecessary rows, replacing
null values, sorting data, and applying conditional formatting. These
transformations ensure clean and structured data before loading it into Power
BI.
24. What is the purpose of the Merge Queries function?
o Merge Queries allows users to combine data from multiple tables based on a
common key. It performs SQL-like join operations such as inner, left, right, or
full join, enabling users to create a consolidated dataset for reporting.
25. How do you create relationships between tables in Power BI?
o Relationships are defined using primary and foreign keys in "Manage
Relationships." Power BI supports one-to-many and many-to-many
relationships, ensuring that data is properly linked for analysis. The
relationship type determines how filters and aggregations behave across tables.
● Append Queries combines multiple tables with similar structures into a single table. It
is useful when merging datasets from different periods or sources (e.g., combining
sales data from multiple regions into one consolidated table).
27. What are the key differences between Merge and Append in Power BI?
● Merge combines tables based on a matching key (similar to SQL JOIN), whereas
Append stacks data from multiple tables into a single table. Merge is used for
relational joins, while Append is used for concatenating data.
28. What is the purpose of the "Remove Duplicates" function in Power BI?
● This function removes duplicate rows based on selected columns, ensuring data
integrity and preventing redundancy. It is commonly used in cleansing datasets before
analysis.
A custom column is created using M language expressions in Power Query. By selecting "Add Colum
● Power BI offers a variety of chart types, including bar charts, line charts, pie charts,
scatter plots, tree maps, and maps. Bar and column charts are used for comparisons,
line charts for trends over time, pie charts for proportions, and scatter plots for
relationships between numerical variables. Choosing the right visualization depends
on the nature of the data and the insights needed.
● A slicer is a visual filtering tool that allows users to interactively filter data in a report.
Slicers provide a user-friendly way to refine reports based on specific values, such as
selecting a date range, product category, or region. Unlike filters, slicers are visible in
the report and can be controlled by users dynamically.
A hierarchy is a structured way of organizing data into multiple levels, such as Year Quarter Month
● Conditional formatting allows users to apply dynamic color coding, data bars, or icons
to tables and charts based on predefined rules. For example, sales figures below a
threshold can be highlighted in red, while high-performing regions can be shown in
green. This enhances data interpretation by drawing attention to important insights.
● A matrix visual is similar to a pivot table in Excel, displaying data in a tabular format
with row and column headers. It supports drill-down functionality, subtotals, and
hierarchical views, making it useful for presenting financial reports, performance
summaries, and multi-dimensional data.
● Bookmarks allow users to save specific views of a report, including filters, slicer
selections, and visual states. They enable interactive storytelling by allowing users to
switch between different report perspectives without modifying the underlying data.
Bookmarks are often used in Power BI presentations and guided analytics
experiences.
● A trendline helps identify patterns in data over time. To add a trendline, select a line
or scatter chart, go to the Analytics pane, and enable the trendline option. Power BI
supports different types of trendlines, such as linear and exponential, to highlight
long-term trends and seasonality in data.
● Themes allow users to apply a consistent color scheme, font style, and formatting
across all visuals in a report. Power BI provides built-in themes, and users can also
create custom JSON-based themes to align with corporate branding. Themes improve
report aesthetics and readability.
42. What is the advantage of using a stacked bar chart instead of a clustered bar
chart?
● A stacked bar chart shows the total composition of a category and how each segment
contributes, making it ideal for analyzing distributions. A clustered bar chart, on the
other hand, separates categories for easier comparison between individual
components.
43. What is the difference between a card visual and a multi-row card?
● A card visual displays a single key metric (e.g., total sales), while a multi-row card
shows multiple values in a list format. Cards are used for highlighting KPIs, whereas
multi-row cards are useful for showing summarized data for multiple categories.
● Custom tooltips allow users to display additional details when hovering over a visual.
Instead of showing default values, custom tooltips can include charts, images, or extra
insights, improving interactivity and user experience.
● Dashboards can be shared through Power BI Service by clicking the "Share" button
and entering the email addresses of recipients. Users can also embed dashboards in
Microsoft Teams, SharePoint, or web applications. Sharing permissions can be
controlled to restrict or allow access to underlying data.
● In Power BI Desktop, go to "Manage Roles" under the Modeling tab and define DAX
filters to restrict data access. After publishing to Power BI Service, assign users to
these roles to enforce security. RLS helps maintain confidentiality in multi-user
environments.
● A personal gateway is used for individual data refreshes and does not support multi-
user access. An enterprise gateway, on the other hand, allows multiple users to
connect to on-premises data sources and schedule automatic refreshes for shared
reports.
● Yes, Power BI reports can be embedded in web applications using the Power BI
REST API or iframe embedding. This allows businesses to integrate interactive
reports into their websites, portals, or internal dashboards.
● A paginated report is a report designed for printing or detailed tabular views. Unlike
interactive Power BI reports, paginated reports can handle large amounts of data and
support precise formatting for PDFs and printed documents.
● Power BI allows users to export report visuals and underlying data to Excel, CSV, or
PDF formats. This is useful for sharing insights with non-Power BI users or
conducting further offline analysis.
● A Power BI app is a packaged collection of reports and dashboards that can be shared
with users in an organized way. Apps help distribute content in a structured format,
ensuring that end users access only relevant reports.
● Power BI can connect to Excel files, import tables, and use PivotTables for analysis.
Additionally, Excel users can publish their workbooks to Power BI Service and use
Excel Online to view live Power BI datasets.
● Auto Refresh updates reports automatically at specified intervals, ensuring that real-
time dashboards display the latest data without manual intervention.
60. What is the difference between a dashboard and a report in Power BI?
● Power BI provides a mobile layout editor where users can rearrange visuals for
optimized viewing on smartphones. This ensures a seamless user experience across
different devices.
● Sensitivity labels classify and protect confidential data within reports. They enforce
security policies, restrict sharing, and integrate with Microsoft Information Protection
to prevent unauthorized access.
63. How does Power BI Premium per user (PPU) differ from Power BI Pro?
● Power BI Premium per user (PPU) provides advanced features like AI-driven
analytics, paginated reports, and larger dataset capacities, whereas Power BI Pro is
limited to basic sharing and collaboration features. PPU is ideal for enterprises
needing more powerful analytics.
65. What is the difference between Static RLS and Dynamic RLS in Power BI?
Static Row-Level Security (RLS) restricts data access using predefined filters based
on fixed values. For example, a sales report may have separate roles for "North
Region" and "South Region," where each user is assigned to a specific role manually.
This approach works well for small datasets with a limited number of roles.
Dynamic RLS, on the other hand, uses user credentials (such as email or user ID) to
filter data dynamically. Instead of manually assigning roles, a lookup table (security
table) is created, mapping users to regions or departments. When a user logs in, Power
BI automatically filters the data based on their assigned access rights. Dynamic RLS
is more scalable and flexible, especially for organizations with frequent role changes
VAR
LastYearSales =
CALCULATE(
SUM(Sales[Amount]),
SAMEPERIODLASTYEAR('Date'[Date])
)
RETURN
LastYearSales
Sales Growth % =
DIVIDE(
[Total Sales] - [LastYearSales,
[LastYearSales],
0
)
6. Top-Selling Product
Scenario: A small business owner wants to see not just revenue but
how much actual profit the company is making after subtracting costs.
This DAX measure is used to derive net profitability, which is
essential for assessing the financial health of the business.
Profit = SUM(Sales[Revenue]) - SUM(Sales[Cost])