nerdexam
Microsoft

PL-300 · Question #3

Case Study 1 - Litware, Inc. Overview Litware, Inc. is an online retailer that uses Microsoft Power Bl dashboards and reports. The company plans to leverage data from Microsoft SQL Server databases…

The correct answer is A. Change the data type of Sales[region_id] to Whole Number. In Power BI, the data type of a column used as a foreign key or join key in a relationship must match the data type of the corresponding primary key column. If regionid in the Sales table is stored as a Decimal Number or Text but the related table uses a Whole Number, the…

Submitted by amina.ke· Apr 18, 2026Prepare the data

Question

Case Study 1 - Litware, Inc. Overview Litware, Inc. is an online retailer that uses Microsoft Power Bl dashboards and reports. The company plans to leverage data from Microsoft SQL Server databases, Microsoft Excel files, text files, and several other data sources. Litware uses Azure Active Directory (Azure AD) to authenticate users. Existing Environment Sales Data Litware has online sales data that has the SQL schema shown in the following table. In the Date table, the dateid column has a format of yyyymmdd and the month column has a format of yyyymm. The week column in the Date table and the weekid column in the Weekly_Returns table have a format of yyyyww. The regionid column can be managed by only one sales manager. Data Concerns You are concerned with the quality and completeness of the sales data. You plan to verify the sales data for negative sales amounts. Reporting Requirements Litware identifies the following technical requirements:

  • Executives require a visual that shows sales by region.
  • Regional managers require a visual to analyze weekly sales and

returns.

  • Sales managers must be able to see the sales data of their respective

region only.

  • The sales managers require a visual to analyze sales performance

versus sales targets.

  • The sale department requires reports that contain the number of sales

transactions.

  • Users must be able to see the month in reports as shown in the

following example: Feb 2020.

  • The customer service department requires a visual that can be

filtered by both sales month and ship month independently.

  • The maximum allowed latency to include transactions in reports is

five minutes. You need to create the required relationship for the executive's visual. What should you do before you can create the relationship?

Options

  • AChange the data type of Sales[region_id] to Whole Number.
  • BIn the Sales table, add a measure for sum(sales_amount).
  • CChange the data type of sales[sales_id] to Text.
  • DChange the data type of sales [region_id] to Decimal Number.

How the community answered

(30 responses)
  • A
    90% (27)
  • C
    7% (2)
  • D
    3% (1)

Explanation

In Power BI, the data type of a column used as a foreign key or join key in a relationship must match the data type of the corresponding primary key column. If regionid in the Sales table is stored as a Decimal Number or Text but the related table uses a Whole Number, the relationship will fail or produce incorrect results. Region IDs are discrete integer values (no fractional part), so Whole Number is the correct and most appropriate data type. Decimal Number (choice D) would be inappropriate for an ID column because it implies fractional values and can cause relationship issues. Text (choice C) would prevent numeric comparisons and relationship joins. Adding a measure (choice B) addresses aggregation, not the data type concern.

Topics

#Data Types#Relationships#Data Preparation

Community Discussion

No community discussion yet for this question.

Full PL-300 Practice