Q1
Q1
Editor.
Due to data quality issues, some rows in the Orders query do NOT have a
matching row in the Order Details query.
You need to select the appropriate join type to ensure that all the rows
from the Orders query are shown.
To ensure all the rows from the Orders query are shown, even
if there are no matching rows in the Order Details query, you should
use the:
Why?
A Left Outer Join returns all rows from the left table (in this
case, the Orders query), and the matching rows from the right table
(the Order Details query).
If there is no match, the result will still include the left table’s row
with nulls for the right table’s columns.
Summary:
Q2 : You are previewing an Excel file in Power Query Editor by using Power
BI Desktop. The file contains data in two columns. One column lists
categories. The other column lists subcategories in each category. You
need to transform the data to a table that has a separate column for each
category and contains the count of subcategories for each category. What
transform should you use?
To transform this data into a table that has a separate column for
each category and shows the count of subcategories in each,
you should use:
Pivot Column
✅ Result:
You’ll get:
Q3: You are previewing an Excel file in Power Query Editor in Power BI
Desktop. The file contains data in a matrix format with years on the
columns, months on the rows, and sales amount in the values. You need to
shape the data into a table with three columns. What should you do?
Unpivot Columns
1. Select all the Year columns (these are the columns with sales
values under each year).
🧾 Result:
🎯 Summary:
Let me know if you want help writing the M code or doing this with sample
data!
Q4: You have a Microsoft Power BI semantic model that contains three
tables named DimDate, FactSales, and FactInventory. DimDate is a
dimension table that contains one row per date. FactSales is a fact table
that contains one row per item sold. FactInventory is a fact table that
contains one row per item in the inventory per day. DimDate is related to
both FactSales and FactInventory. What type of dimension is DimDate?
Conformed Dimension
✅ Explanation:
In your scenario:
📊 Why it matters:
Conformed dimensions:
🧾 Summary:
ChatGPT said:
✅ The correct type is: Conformed Dimension (not listed in your multiple-
choice options).
But, based on the choices you provided, none are correct for the scenario
you described. Let’s break them down:
🟥 Degenerate Dimension
🟧 Junk Dimension
🟨 Outrigger Dimension
🟦 Role-Playing Dimension
❌ But in your scenario, DimDate is used once per fact table, not
in multiple roles.
ChatGPT said:
✅ Sales Fact
🧾 Explanation:
🔍 Column Breakdown:
ProductNam Product
Descriptive info about the product
e Dimension
year...)
Let me know if you want help visualizing the full star schema or splitting
the current table into fact and dimensions!
Q6: You have a Power BI data model that has the following tables: Sales,
Returns, Customer, and Date. No relationships have been created. You
need to view and filter sales and returns by the same months at the same
time. What three actions should you perform? Each correct answer
presents part of the solution. Select all answers that apply. Create a DAX
measure that combines sales and returns. Create a month column in both
the Sales and Returns tables. Create a relationship between Sales and
Date. Create a relationship between the Returns and Date. Select the Date
table and select Mark as date table.
To view and filter Sales and Returns by the same months using a
shared timeline, the goal is to connect both fact tables (Sales and
Returns) to the same Date dimension.
This enables filtering Returns using the same Date table, aligning
them with Sales.
Not necessary if you're using the Date table to filter both. This
actually goes against dimensional modeling best practices — you
want one shared date source.
✅ Final Answer:
Let me know if you want help setting up the relationships or writing DAX
with this structure!
Q7: You have a Microsoft Power BI semantic model that contains two
tables named DimDate and FactSales. DimDate is the main date table in
the model. FactSales is a fact table that contains data about sales orders.
FactSales has the following three relationships to DimDate: An active
relationship between FactSales[OrderDate] and DimDate[Date] An inactive
relationship between FactSales[ShipDate] and DimDate[Date] An inactive
relationship between FactSales[ReturnDate] and DimDate[Date] Which
type of dimension is DimDate? Select only one answer. degenerate
dimension junk dimension outrigger dimension role-playing dimension
✅ Role-playing dimension
🧾 Explanation:
In your case:
o As ShipDate
o As ReturnDate
Let me know if you’d like to see how to model this in Power BI or handle it
in DAX!
You have a Microsoft Power BI semantic model that contains two tables
named FactInventory and DimDate. FactInventory is a fact table that
contains one row per product per weekday. Inventory balances are NOT
recorded on weekends. DimDate is the date table in the model. You need
to create a measure that shows the last available inventory balance for a
selected period. Which DAX function should you include in the solution?
Select only one answer. EOMONTH FIRSTNONBLANK LASTNONBLANK
NETWORKDAYS
✅ LASTNONBLANK
🧾 Explanation:
Finds the last date in the selected period with data (i.e., a non-
blank value).
Returns the inventory balance from that date.
DAX
CopyEdit
LastInventory =
CALCULATE(
MAX(FactInventory[InventoryBalance]),
LASTNONBLANK(DimDate[Date], FactInventory[InventoryBalance])
This will return the inventory balance from the last date that has a
value, skipping over blanks (like weekends).
EOMONTH: Returns the end of the month — not suitable for finding
the last date with data.
Let me know if you want help writing the full measure or adjusting it for
visuals!
You said:
You have a Microsoft Power BI semantic model that contains two tables
named DimDate and FactInventory. DimDate is the date table.
FactInventory is a snapshot table that contains one row per product per
date with the count of items remaining in inventory. You need to create a
measure named Stock on Hand that returns the number of items available
in inventory as of the last day of the selected period. The measure must
work in the context of a specific day, week, month, or year. Which formula
should you use in the measure? Select only one answer.
CALCULATE( SUM(FactInventory[UnitsBalance]), LASTDATE('Date'[Date]) )
CALCULATE( SUM(FactInventory[UnitsBalance]),
LASTNONBLANK('Date'[Date],
CALCULATE(SUM(FactInventory[UnitsBalance])) ) )
CALCULATE( SUM(FactInventory[UnitsBalance]), FIRSTDATE('Date'[Date]) )
CALCULATE( SUM(FactInventory[UnitsBalance]), MAX('Date'[Date]) )
ChatGPT said:
✅ CALCULATE( SUM(FactInventory[UnitsBalance]),
LASTNONBLANK('Date'[Date],
CALCULATE(SUM(FactInventory[UnitsBalance])) ) )
🧾 Explanation:
You need a measure that returns the inventory balance as of the last
day in the selected period. Since inventory is tracked by snapshots,
and some dates might have no data (e.g., weekends or holidays), you
need to:
DAX
CopyEdit
Stock on Hand =
CALCULATE(
SUM(FactInventory[UnitsBalance]),
LASTNONBLANK('Date'[Date],
CALCULATE(SUM(FactInventory[UnitsBalance])))
This expression:
Scans dates in the current filter context (day, week, month, etc.).
LASTDATE('Date'[Date]):
o Will return the last date in the filter context, even if there's
no data on that date.
FIRSTDATE('Date'[Date]):
MAX('Date'[Date]):
o Just returns the maximum date — again, might not have data.
✅ Final Answer:
CALCULATE( SUM(FactInventory[UnitsBalance]),
LASTNONBLANK('Date'[Date],
CALCULATE(SUM(FactInventory[UnitsBalance])) ) )
Let me know if you'd like to modify this for cumulative values or show
trends over time!
You said:
You have a Microsoft Power BI semantic model that contains a table named
Table1. Table1 contains five columns named Sales Date, Product ID,
Quantity, Item Price, and Region. You need to create a measure named
Avg Price - All Regions that calculates the average item price for items sold
across all regions. Which expression should you use in the measure?
Select only one answer. CALCULATE( AVERAGE( Table1[Item Price] ),
REMOVEFILTERS( Table1[Region] ) )
CALCULATETABLE( AVERAGEX( Table1[Item Price] ),
REMOVEFILTERS( Table1[Region] ) ) CALCULATE( MEDIAN( Table1[Item
Price] ), ALL( Table1[Region] ) ) SUMMARIZE( Table1[Item Price])
ChatGPT said:
🧾 Explanation:
To calculate the average item price across all regions, you need to:
1. Remove any filters on the Region column so that the calculation
includes all regions, regardless of the filter context.
DAX
CopyEdit
CALCULATE(
REMOVEFILTERS( Table1[Region] )
This expression:
You said:
You have a Microsoft Power BI report that contains a bar chart showing
sales by month. The chart is populated by adding a column named
Sales[SalesAmt] to the visual and setting the summarization to Sum. You
need to replace the field in the visual with an explicit measure. Which
measure should you create? Select only one answer. Sales Amount =
COUNT(Sales[SalesAmt]) Sales Amount = Sales Sales Amount =
Sales[SalesAmt] Sales Amount =SUM(Sales[SalesAmt])
ChatGPT said:
🧾 Explanation:
DAX
CopyEdit
This measure:
SUM: Adds up all the SalesAmt values from the Sales table.
✅ Final Answer:
This measure will replace the field in the visual and show the sum of
sales by month. Let me know if you need any further assistance!
You said:
You create a Power BI model that contains the sales for the last five years.
The size of the model is 950 MB. The Sales table contains five million rows.
You need to minimize the model size and perform the following analysis:
Current and one previous year sales for all active products Current year
sales by product category What should you do? Select only one answer.
Remove the Product Status column. Remove the rows that relate to
inactive products. Remove the rows that relate to sales that occurred more
than two years earlier. Remove the Sale Date column.
ChatGPT said:
✅ Remove the rows that relate to sales that occurred more than
two years earlier.
🧾 Explanation:
To minimize the model size and perform the required analysis, you need to
reduce the data to only what's necessary for your analysis. The
requirement is to analyze:
1. Current and one previous year sales for all active products.
Since you're focused on current and previous year data, keeping sales
data from more than two years earlier is not necessary for your analysis.
By removing the rows with sales that occurred more than two years
earlier, you can significantly reduce the size of the model.
Relevance: You are only keeping the data you need for the analysis.
o While this could reduce the model size, it's not specified that
you need to exclude inactive products for your analysis. It may
also limit the completeness of your analysis for active
products.
✅ Final Answer:
Remove the rows that relate to sales that occurred more than two
years earlier.
This action directly addresses the goal of minimizing the model size while
ensuring the data required for your analysis is retained. Let me know if you
need further clarification!
You said:
You have a Power BI model that contains sensor data from 500 sensors
that return temperature readings each minute. Your reporting
requirements include the calculation and display of the average
temperature from each sensor at every hour. The reports do NOT show the
raw data for each minute. You need to reduce the size of the model to
improve performance. What should you do? Select only one answer. Add a
report filter for the Hour column. Create visuals that group the data by
hour. Remove the rows that contain readings. Use Power Query to group
the sensor data by hour.
ChatGPT said:
🧾 Explanation:
By doing this:
This will ensure the model only contains the relevant aggregated data,
improving both performance and size.
o This won't reduce the model size. It would only filter the data
at the visualization level, not at the model level, so the raw
minute-by-minute data would still be loaded into the model,
impacting performance.
✅ Final Answer:
You said:
ChatGPT said:
🧾 Explanation:
Clearing the data engine cache ensures that data queries are
executed afresh, without any cached data being reused. This gives
you a more accurate measurement of how long it takes to fetch and
process data for your report.
2. Clear the visual cache:
✅ Final Answer:
You said:
🧾 Explanation:
When you set the page size to custom dimensions of 2500 x 3500
pixels and the Page view is set to Actual size, it means the report will
be displayed at the exact size you've set (2500x3500 pixels), regardless of
the size of the user's screen.
In this case, the page is quite large (2500x3500 pixels), and many users
will be viewing the report on laptops with smaller screens. As a result:
Scrollbars will appear, and users will need to interact with them
to see the entire report page because the report dimensions exceed
the typical screen size.
o This would only be the case if the page view setting were Fit
to Width or Fit to Page, but since it's set to Actual size,
users will not be able to zoom out automatically.
o This could occur if there was unused space in the report, but it
doesn't directly relate to the page size being set to 2500x3500
pixels. It’s not the expected behavior of Actual size view with
the given dimensions.
✅ Final Answer:
A page that requires users to interact with scrollbars to view the
entire page.
This will occur due to the large custom dimensions of the page, which
exceed the typical screen size of laptops. Let me know if you need any tips
on optimizing the report for different devices!
You said:
ChatGPT said:
✅ Column chart
🧾 Explanation:
Gauge chart:
Matrix:
Scatter chart:
✅ Final Answer:
Column chart
This visualization will provide a clear and effective way to compare sales
by country for the current quarter. Let me know if you'd like additional
recommendations for different types of comparisons!
You said:
You have a Microsoft Power BI report that contains two pages. The first
page contains a clustered bar chart. You plan to configure the clustered
bar chart to use the second page as a tooltip report. What should be done
on the second page? Select only one answer. The Allow Q&A setting must
be enabled. The Allow use as tooltip setting must be enabled. The canvas
background transparency must be set to 100%. The Canvas setting must
be set to Tooltip.
ChatGPT said:
🧾 Explanation:
On the second page (the tooltip report), you should go to the Page
Information pane.
There, you need to enable the Allow use as tooltip setting. This
setting makes the page available as a tooltip that can be used by
visuals on other pages.
After enabling this setting, you can then configure your clustered bar
chart on the first page to use the second page as a tooltip. When users
hover over the chart, the second page will be displayed as a tooltip with
additional information.
✅ Final Answer:
This is the key step in enabling a page to be used as a tooltip in Power BI.
Let me know if you need further clarification!
You said:
You need to modify a column chart. The solution must ensure that the total
for each bar is shown above the column. What should you enable? Select
only one answer. data labels title X-axis Y-axis
ChatGPT said:
✅ Data labels
🧾 Explanation:
To display the total for each bar above the column in a column chart,
you should enable data labels. Data labels show the values associated
with each bar in the chart, and you can position them above the column to
clearly indicate the total value for each bar.
Data labels will display the value at the top of each bar, which is
exactly what you need to show the total for each column.
Title:
X-axis:
o The X-axis defines the categories of the chart but does not
impact the display of the total values above each column.
Y-axis:
o The Y-axis shows the scale for the values but does not display
the total values directly above the columns.
✅ Final Answer:
Data labels
Enabling data labels ensures that the total for each bar is shown above
the column. Let me know if you need more help with customizing your
chart!
You said:
You have a line chart that shows the salary costs of a company over time.
You need to see the employee count when you hover over a data point.
What should you do? Select only one answer. Add employee count to the
drillthrough field well. Add employee count to the small multiples field
well. Add employee count to the tooltips field well. Add employee count to
the visual filters.
ChatGPT said:
In Power BI, tooltips provide additional information when you hover over
a data point. To show the employee count when hovering over a data
point on the line chart, you need to add the employee count field to the
Tooltips field well.
This will display the employee count in the tooltip whenever you hover
over a specific data point (representing a salary cost over time) on the line
chart.
o Visual filters are used to filter the data displayed in the visual
itself, not to show additional information on hover.
✅ Final Answer:
This will ensure that the employee count appears when hovering over data
points on your line chart. Let me know if you need more details on
customizing your report!
You said:
You have a Microsoft Power BI report that contains a single page. The page
contains six visuals and a button. You need to create a solution that
enables users to replace two visuals with two other visuals by selecting
the button. What should you do in the selection pane first? Select only one
answer. Group the two visuals that will be replaced when selecting the
button. Group visuals that will not be affected by selecting the button. In
the tab order, hide the two visuals that will be replaced. In the layer order,
move the two visuals that will be replaced to the bottom.
ChatGPT said:
✅ Group the two visuals that will be replaced when selecting the
button.
🧾 Explanation:
Steps:
1. In the Selection Pane, group the two visuals that will be replaced
when the button is selected.
2. Then, create a Bookmark for the initial state (with the two visuals
visible) and another for the state where those visuals are replaced
(with the other two visuals visible).
In the tab order, hide the two visuals that will be replaced:
o The Tab order refers to the order in which users can navigate
through interactive elements using the keyboard. This does
not control visibility of visuals, which is what you need to
achieve here.
In the layer order, move the two visuals that will be replaced
to the bottom:
✅ Final Answer:
Group the two visuals that will be replaced when selecting the
button.
This approach will allow you to control their visibility and easily toggle
between the visuals when the button is selected. Let me know if you need
help setting up Bookmarks!
You said:
You are reviewing the attendance data for a school in a Power BI report.
The report contains a bar chart that shows the average attendance by
grade. You need to analyze the causes for different attendance across
grades. The solution must NOT add a new visual to the page. What feature
should you use? Select only one answer. Analyze: Find where this
distribution is different Find anomalies Spotlight Summarize
ChatGPT said:
🧾 Explanation:
Find anomalies:
Spotlight:
Summarize:
✅ Final Answer:
This feature will help you analyze and understand the differences in
attendance across grades, which is exactly what you need in this scenario.
Let me know if you'd like further details on using this feature!
You said:
You plan to analyze sales data in Power BI by using the following fields:
Sales amount Order Quantity Product You need to use clustering to identify
groups of similar data points in a subset of your data. What visualization
type should you use? Select only one answer. Line chart Scatter chart Tree
map Waterfall chart
ChatGPT said:
✅ Scatter chart
🧾 Explanation:
A scatter chart is the ideal visualization type for clustering in Power BI. It
allows you to plot data points based on two or more variables and visually
identify clusters or groups of similar data points. In your case, the sales
amount, order quantity, and product fields can be plotted on the axes
to visualize how data points group together based on these variables.
Line chart:
o Line charts are best suited for showing trends over time, such
as sales or quantity over a series of time periods. It is not
suitable for clustering analysis.
Tree map:
Waterfall chart:
✅ Final Answer:
Scatter chart
The scatter chart will allow you to visually cluster your data and analyze
groups based on the fields you're interested in. Let me know if you need
help with setting up clustering in Power BI!
You said:
You have a workspace that contains two semantic models and five reports.
You need to grant all department users read access to only one of the
semantic models and three of the reports. Access should be automatically
removed for users who leave the department. Which two actions should
you perform? Each correct answer presents part of the solution. Select all
answers that apply. Add the security group containing the users to the
Viewer role on the workspace. Grant app access to the security group
containing the users and publish the app. Set Include in App to Yes for all
semantic models and reports. Set Include in App to Yes for the one
semantic model and the three reports. Share the one semantic model and
the three reports with each user in the department.
ChatGPT said:
✅ Grant app access to the security group containing the users and
publish the app.
✅ Set Include in App to Yes for the one semantic model and the
three reports.
🧾 Explanation:
Set Include in App to Yes for the one semantic model and the
three reports:
Share the one semantic model and the three reports with
each user in the department:
✅ Final Answer:
Set Include in App to Yes for the one semantic model and the
three reports.
You said:
You have a Power BI workspace that contains three semantic models and
five reports. You need to distribute only three reports and two semantic
models to a group named GroupA. Members of GroupA must be able to
build new reports that use the two semantic models. The solution must
use the principle of least privilege and must minimize administrative
effort. What should you do? Select only one answer. Publish an app that
contains the three reports and the two semantic models. Share the three
reports individually to GroupA. From the workspace, assign Contributors to
GroupA. From the workspace, assign Viewers to GroupA.
ChatGPT said:
🧾 Explanation:
✅ Final Answer:
Publish an app that contains the three reports and the two
semantic models.
Publishing an app is the most efficient and secure way to distribute the
required content to GroupA while allowing them to build reports based on
the semantic models. Let me know if you need further clarification!
You said:
You have a Power BI semantic model named Model1 that contains four
tables named Sales, Date, Product, and Employee. The Sales table is
related to the Date, Product, and Employee tables. You need to create a
row-level security (RLS) role that meets the following requirements:
Employees must be able to view their respective sales only. The RLS filter
must match the user to their email address. Which table filter expression
should you use for the RLS role? Select only one answer.
Employee[EmailAddress] = USERCULTURE() Employee[EmailAddress] =
USERNAME() Employee[EmailAddress] = USEROBJECTID()
Employee[EmailAddress] = USERPRINCIPALNAME()
ChatGPT said:
✅ Employee[EmailAddress] = USERPRINCIPALNAME()
🧾 Explanation:
For this specific case, where the goal is to ensure that employees can view
their own respective sales data based on their email address, the correct
approach is to use USERPRINCIPALNAME() to match the employee's email
address with the value stored in the Employee[EmailAddress] field.
Employee[EmailAddress] = USERNAME():
Employee[EmailAddress] = USEROBJECTID():
✅ Final Answer:
Employee[EmailAddress] = USERPRINCIPALNAME()
This filter ensures that each employee can only see their respective sales
data based on their email address in the Employee[EmailAddress] field.
You said:
You have Power BI workspace named WS1. You publish a semantic model
named Model1 to WS1. Model1 contains a row-level security (RLS) role
named RLS1. You plan to use a group to add members to RLS1. What
should you use? Select only one answer. an Active Directory Domain
Services security group a distribution list a Microsoft 365 group a Microsoft
Entra security group
ChatGPT said:
🧾 Explanation:
In Power BI, when you are setting up Row-Level Security (RLS) and plan
to assign roles to a group of users, you typically use a security group
from Active Directory Domain Services or Microsoft Entra (formerly
Azure Active Directory).
Active Directory Domain Services (AD DS) security groups are
commonly used in scenarios like this one because Power BI is integrated
with Azure Active Directory (AAD), and AD DS security groups can be
used for managing permissions and access control, including RLS roles.
When you assign a security group to an RLS role, all members of that
security group automatically inherit the RLS permissions and can access
the dataset or semantic model with the row-level security filters applied.
a distribution list:
✅ Final Answer:
For controlling RLS roles efficiently and ensuring proper integration with
Power BI, using an Active Directory Domain Services security group
is the most commonly recommended approach.