Microsoft

PL-300 Free Practice Questions — Page 13

Question 130

You have a Power BI model that contains the following data. The Date table relates to the Sales table by using the Date columns. The model contains the following DAX measure. Total Sales = SUM(Sales[Sale]) You need to create another measure named Previous Quarter to display the sales one quarter before the selected period. Which DAX calculation should you use?

A. CALCULATE ( [Total Sales], DATEADD (Date[Date], -1, QUARTER ) )
B. CALCULATE ( [Total Sales], DATESQTD (Date[Date] ) )
C. TOTALQTD ( [Total Sales], Date[Date] )
D. CALCULATE ( [Total Sales], PARALLELPERIOD (Date[Date], 1, QUARTER ) )
Show Answer
Correct Answer: A
Explanation:
The requirement is to return sales for the period one quarter before the currently selected period. DATEADD(Date[Date], -1, QUARTER) shifts the existing date filter context back by exactly one quarter, and CALCULATE reevaluates [Total Sales] in that shifted context. The other options return quarter-to-date values or move the context forward rather than backward.

Question 131

HOTSPOT - You have a query named All Sales that imports sales data into a Power BI model. You plan to create a star schema by separating columns into separate queries and performing further transformations. The solution must meet the following requirements: • Use All Sales as the source for three other queries named Sales Fact, Product Dimension, and Customer Dimension. • Minimize maintenance effort. What should you do to create the Sales Fact query, and for which query should you clear Enable load? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for PL-300 question 131
Show Answer
Correct Answer: Reference the All Sales query. Clear Enable load for: All Sales.
Explanation:
Referencing All Sales creates the Sales Fact as a dependent query so changes to the source propagate automatically, minimizing maintenance. The All Sales query acts as a staging query and should not be loaded into the model once fact and dimension tables are created, so disabling its load avoids redundant data.

Question 132

HOTSPOT - You are creating a Power BI report that will show the number of current employees over time. The report will use Import storage mode for all tables. The employment data will be imported from Azure SQL Database in a monthly snapshot. The data will be stored in a table named Headcount and will contain the following: • One row per employee for each month the employee is employed • In each row, a date key that shows the first day of the month of each snapshot You have a related date table that contains dates for the years 2020 to 2030. You need to create a semi-additive DAX measure that will return the count of employees for the last available date in a year, quarter, or month. How should you complete the measure? To answer, select the appropriate options in the answer area.

Illustration for PL-300 question 132
Show Answer
Correct Answer: COUNTROWS('Headcount') LASTDATE('Date'[Date])
Explanation:
The measure must be semi-additive over time, returning the value at the last date in the current time context. COUNTROWS works because, after filtering to the last snapshot date, there is one row per employee. LASTDATE must be applied to the related Date table to correctly respect the current year/quarter/month filter context and return the last available snapshot date.

Question 133

You use Power Query to import two tables named Order Header and Order Details from an Azure SQL database. The Order Header table relates to the Order Details table by using a column named Order ID in each table. You need to combine the tables into a single query that contains the unique columns of each table. What should you select in Power Query Editor?

A. Merge queries
B. Combine files
C. Append queries
Show Answer
Correct Answer: A
Explanation:
The two tables are related by a common key (Order ID) and you need to combine them into a single query containing the unique columns from each table. In Power Query, this is done by merging queries, which performs a join based on a matching column. Appending adds rows, and Combine Files is used for files in folders, so neither applies here.

Question 134

You publish a dataset to the Power BI service. The dataset contains a connection to an on-premises Microsoft SQL Server database. You attempt to configure a scheduled refresh but cannot select the appropriate on-premises data gateway. You confirm the following with the administrator of the gateway: • You have the appropriate permissions to use the gateway. • The data source was created on the gateway. • The gateway has a status of Running. What is the most likely reason the gateway is unavailable?

A. The type of data source is not supported by the on-premises data gateway.
B. The server name in the PBIX file does not match the data source name in the gateway.
C. The credentials for the data source are invalid.
D. The data source is configured to use single sign-on (SSO).
Show Answer
Correct Answer: B
Explanation:
In Power BI, a dataset can only be associated with an on-premises data gateway if the connection details in the PBIX file exactly match a data source defined on that gateway. Even when the gateway is running, the data source exists, and permissions are correct, a mismatch in server name (or database name) prevents the service from mapping the dataset to the gateway, making it unavailable for selection during scheduled refresh.

Question 135

You have a CSV file that contains user complaints. The file contains a column named Logged. Logged contains the date and time each complaint occurred. The data in Logged is in the following format: 2018-12-31 at 08:59. You need to be able to analyze the complaints by the logged date and use a built-in date hierarchy. What should you do?

A. Apply the Parse function from the Data transformations options to the Logged column.
B. Change the data type of the Logged column to Date.
C. Split the Logged column by using at as the delimiter.
D. Create a column by example that starts with 2018-12-31.
Show Answer
Correct Answer: C
Explanation:
The value "2018-12-31 at 08:59" is text that Power BI cannot directly recognize as a date because of the word "at". By splitting the Logged column using "at" as the delimiter, you separate the date and time into distinct columns. Power BI automatically detects the first column as a Date data type, which enables the built-in date hierarchy for analysis. The other options either fail due to the text format or require extra manual steps.

Question 136

You have a Power BI model that contains two tables named Population and Date. The Population table contains two columns named PopulationAmount and DateKey. DateKey contains date values that represent the first day of a year and are used to create a many-to-one relationship with the Date table. The Power BI model contains two measures that have the following definitions. Total Population = Sum(‘Population’[PopulationAmount]) 2023 Population = CALCULATE([Total Population], ‘Date'[Year] = 2023) You create a table visual that displays Date[Year] and [2023 Population]. What will the table visual show?

A. one row per year that contains blank values for every year except 2023
B. one row per date that contains the population value for the corresponding year repeated in each row
C. a single row for the year 2023 that contains the related population value
D. one row per year that contains the same value repeated for each year
Show Answer
Correct Answer: D
Explanation:
The table visual provides a filter context for each row based on Date[Year]. However, the measure 2023 Population uses CALCULATE with a hardcoded filter 'Date'[Year] = 2023. In DAX, when CALCULATE applies a filter on a column that is already present in the filter context, it overwrites the existing filter rather than intersecting with it. As a result, regardless of which year is shown in each row of the table, the measure is always evaluated for Year = 2023. Therefore, the visual shows one row per year, with the same 2023 population value repeated for every year.

Question 137

DRAG DROP - You have two Microsoft Excel workbooks in a Microsoft OneDrive folder. Each workbook contains a table named Sales. The tables have the same data structure in both workbooks. You plan to use Power BI to combine both Sales tables into a single table and create visuals based on the data in the table. The solution must ensure that you can publish a separate report and dataset. Which storage mode should you use for the report file and the dataset file? To answer, drag the appropriate modes to the correct files. Each mode may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point.

Illustration for PL-300 question 137
Show Answer
Correct Answer: Report file: LiveConnect Dataset file: Import
Explanation:
Combine the two Excel tables in a dataset using Import mode (Excel supports Import and allows refresh from OneDrive). Publish this dataset separately. Create a thin report that connects to the published dataset using LiveConnect, keeping report and dataset as separate artifacts.

Question 138

You have a Power BI workspace named BI Data that contains a dataset named BI Finance. You have the Build permission for the BI Finance dataset, but you do NOT have permissions for the workspace. You need to connect to BI Finance and create a report. Which two actions should you perform? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

A. From the Power BI service, create a dataflow to the dataset by using DirectQuery.
B. From Power BI Desktop, connect to a Dataverse data source.
C. From the Power BI service, create a new report and select a published dataset.
D. From Power BI Desktop, connect to a shared dataset.
Show Answer
Correct Answer: C, D
Explanation:
Having Build permission on a dataset allows you to create reports using that dataset even without workspace permissions. You can either create a new report directly in the Power BI service by selecting the published dataset, or connect to the shared dataset from Power BI Desktop to build a report locally.

Question 139

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have a Power BI report that imports a date table and a sales table from an Azure SQL database data source. The sales table has the following date foreign keys: • Due Date • Order Date • Delivery Date You need to support the analysis of sales over time based on all three dates at the same time. Solution: From the Fields pane, you rename the date table as Due Date. You use a DAX expression to create Order Date and Delivery Date as calculated tables. You create active relationships between the sales table and each date table. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: A
Explanation:
The solution uses a role‑playing dimension pattern. By creating three separate date tables (Due Date, Order Date, Delivery Date) and relating each one to the corresponding date column in the Sales table, Power BI allows all three relationships to be active at the same time because they are different dimension tables. This supports simultaneous analysis of sales by all three dates (for example, with multiple slicers or visuals). The limitation of only one active relationship applies only between the same two tables, not across separate date tables.

$19

Get all 356 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.