Skip to content

PL-300 · Domain 1: Prepare the data · 28% of the exam

Task 1.2: Profile and clean the data

Evaluating data with column statistics and properties, resolving inconsistencies, unexpected or null values and data quality issues, and resolving data import errors.

Study it

  • Profiling columns: quality, distribution and statistics

    Partly covered by: Data Readiness for AI

  • Fixing nulls, inconsistent values and import errors

    Lesson coming

Sample questions

Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.

Question 1 · choose 1

In Power Query Editor, the data profiling for the Amount column of a 2-million-row query shows no errors, yet loading the query reports conversion errors. You want the profiling percentages to reflect every row before you decide how to clean the column. What should you do?

  1. ATurn on Column profile for Amount for deeper profiling
  2. BTurn on Column distribution for Amount
  3. CSelect Amount and run Detect data type
  4. DChange column profiling to the entire data set
Show the answer and why
  • ATurn on Column profile for Amount for deeper profiling

    Incorrect

    Column profile adds detail, but it uses the same top-1,000-row sample by default.

  • BTurn on Column distribution for Amount

    Incorrect

    Distribution charts also use the default sample, so errors further down stay hidden.

  • CSelect Amount and run Detect data type

    Incorrect

    Type detection inspects the first rows to pick a type; it doesn't extend profiling to all rows.

  • DChange column profiling to the entire data set

    Correct

    Profiling runs on the first 1,000 rows by default; this setting makes it cover all rows.

The data profiling tools (column quality, column distribution and column profile) work over the first 1,000 rows by default. Selecting the Column profiling based on top 1000 rows message in the lower-left corner switches them to Column profiling based on entire data set, so errors in later rows show up in the percentages.

Question 2 · choose 1

Your Power BI Desktop file uses the English (United States) regional format and imports several CSV files with US-formatted dates. One new CSV from the London office stores OrderDate as day/month/year, and setting its type to Date produces errors for days above 12. The US files must keep converting as they do now. What should you do?

  1. AIn Options, change the current file's regional settings to English (United Kingdom) for the London file
  2. BOn the London query, use Change type > Using locale with Date and English (United Kingdom)
  3. CChange OrderDate's type to Date, then use Replace errors with null
  4. DChange OrderDate's type to Text to avoid conversion errors
Show the answer and why
  • AIn Options, change the current file's regional settings to English (United Kingdom) for the London file

    Incorrect

    A file-level locale change affects every query in the file, so the US-formatted dates would then fail or flip.

  • BOn the London query, use Change type > Using locale with Date and English (United Kingdom)

    Correct

    The conversion for that column interprets the text as UK dates, while every other query keeps the file's US locale.

  • CChange OrderDate's type to Date, then use Replace errors with null

    Incorrect

    This turns every date with a day above 12 into a blank instead of converting it.

  • DChange OrderDate's type to Text to avoid conversion errors

    Incorrect

    Text dates can't drive date filters or time intelligence, so the column still isn't usable as a date.

Power Query uses a locale to interpret text when it converts it to another type; in Power BI Desktop it defaults to the operating system's regional format, and you can override it for the whole file under Options > Current file > Regional settings. For a single column that uses another format, Change type > Using locale converts it with the locale you choose, such as English (United Kingdom) for day/month/year.

Question 3 · choose 1

A Units column arrives as text. Most cells hold whole numbers, but some hold NA, which means the value wasn't recorded. The column must become Whole Number, NA must not be counted as zero, and no rows may be dropped. Which approach fits?

  1. AChange the type to Whole Number, and then replace error values with 0
  2. BChange the type to Whole Number, and then select Remove errors
  3. CChange the type, then Keep errors
  4. DReplace NA with null, then change the type to Whole Number
Show the answer and why
  • AChange the type to Whole Number, and then replace error values with 0

    Incorrect

    The NA cells become 0, which counts them as zero units.

  • BChange the type to Whole Number, and then select Remove errors

    Incorrect

    Remove errors deletes the rows whose conversion failed, so rows are dropped.

  • CChange the type, then Keep errors

    Incorrect

    Every row that converted cleanly is dropped, so most rows are lost.

  • DReplace NA with null, then change the type to Whole Number

    Correct

    Nulls convert without errors and stay blank, so they aren't counted as zero and every row is kept.

Converting a text column that contains values such as NA to a number causes cell-level conversion errors. You can fix the values before the conversion, for example by replacing NA with null, or handle the errors afterwards. Here, handling them afterwards either turns NA into a number or drops rows.

Question 4 · choose 2

A Customers query should keep one row per email address. After Remove duplicates on the Email column, rows such as Ann@Contoso.com and ann@contoso.com (with a trailing space) both remain. Which two steps should you add before Remove duplicates? (Choose TWO.)

  1. ATrim the Email column
  2. BClean the Email column
  3. CFormat the Email column as lowercase
  4. DKeep duplicates on the Email column
  5. EFill down the Email column
Show the answer and why
  • ATrim the Email column

    Correct

    Trim removes leading and trailing whitespace, so the trailing space no longer makes the values differ.

  • BClean the Email column

    Incorrect

    Clean doesn't change letter case or remove ordinary spaces, so both variants remain.

  • CFormat the Email column as lowercase

    Correct

    Power Query compares text case-sensitively, so converting to one case lets the duplicates match.

  • DKeep duplicates on the Email column

    Incorrect

    Keep duplicates filters to the repeated values; it doesn't make different spellings match.

  • EFill down the Email column

    Incorrect

    Fill down replaces nulls with the value above; it doesn't normalize existing values.

Remove duplicates compares values exactly, and Power Query is case-sensitive, so values that differ only by case or by extra spaces stay separate. The documentation suggests applying an uppercase or lowercase transform before removing duplicates; trimming removes leading and trailing whitespace.

Question 5 · choose 1

In Power Query Editor, a Customer column shows most rows as Murali Das and a few as MURALI DAS. After the data loads, every row for him appears as MURALI DAS in report visuals, because that variant happens to come first. Readers want the name shown as Murali Das everywhere. What should you do?

  1. AApply Remove duplicates to the Customer column so only one spelling is left
  2. BSet the Customer column's data category to Person in the model
  3. CApply Capitalize Each Word to the Customer column in Power Query
  4. DChange the column's data type to Text in Power Query Editor
Show the answer and why
  • AApply Remove duplicates to the Customer column so only one spelling is left

    Incorrect

    That would collapse the rows to one per name, removing customer rows instead of fixing how the name is shown.

  • BSet the Customer column's data category to Person in the model

    Incorrect

    A data category describes the column for visuals and maps; it doesn't change the stored value.

  • CApply Capitalize Each Word to the Customer column in Power Query

    Correct

    Once every row has the same capitalization, the model has only one variant to store and show.

  • DChange the column's data type to Text in Power Query Editor

    Incorrect

    The column is already text; the type doesn't control which capitalization the engine keeps.

Power Query is case sensitive and shows values as stored in the source, but the engine that stores and queries data in Power BI is case insensitive. While loading, it keeps one dictionary entry for values that differ only by case, and every row refers to the first variant it met. Normalizing capitalization in Power Query, for example with Capitalize Each Word, gives a consistent value.

Question 6 · choose 1

In Power Query Editor, you want to see for each column what percentage of its values are valid, errors or empty. Which data profiling option should you turn on?

  1. AColumn quality
  2. BColumn distribution
  3. CQuery dependencies
  4. DFormula bar
Show the answer and why
  • AColumn quality

    Correct

    Column quality labels values as valid, error or empty and shows each share as a percentage.

  • BColumn distribution

    Incorrect

    Column distribution shows value frequencies with distinct and unique counts.

  • CQuery dependencies

    Incorrect

    Query dependencies shows how queries reference each other and their sources.

  • DFormula bar

    Incorrect

    The formula bar shows a step's M formula, not data quality.

The data profiling tools are column quality, column distribution and column profile, turned on from the View tab. Column quality shows the share of valid, error and empty values (plus unknown and unexpected error) under each column name.

Question 7 · choose 1

After a type change, a few cells in a Price column show Error. Before you decide how to fix them, you want to read the reason and the message of one of those errors in Power Query Editor. What should you do?

  1. AOpen the Advanced Editor for the query
  2. BSelect the white space next to Error in one of those cells
  3. CStart Query diagnostics for the query
  4. DOpen the data type list on the Price column header
Show the answer and why
  • AOpen the Advanced Editor for the query

    Incorrect

    The Advanced Editor shows the query's M code, not the details of one cell's error.

  • BSelect the white space next to Error in one of those cells

    Correct

    Selecting the white space in an error cell opens the error pane under the data preview, with the error's reason and message.

  • CStart Query diagnostics for the query

    Incorrect

    Query diagnostics records what Power Query does while it evaluates queries; it is not where one cell explains its error.

  • DOpen the data type list on the Price column header

    Incorrect

    The type list changes the column's type; it doesn't explain an error that's already there.

A cell-level error doesn't stop the query from loading; the cell shows Error instead of a value. Selecting the white space in the cell opens the error pane underneath the data preview, which shows the error reason, such as DataFormat.Error, and the error message. You can examine one error value at a time this way.

Question 8 · choose 1

You apply Fill up to a Comments column, but nothing changes in the cells that look empty. The cells contain empty text, not null. What should you do first?

  1. AApply Fill down instead, which treats empty text as null
  2. BChange the column type to Whole Number
  3. CRemove blank rows from the table
  4. DReplace the empty values with null, then apply Fill up
Show the answer and why
  • AApply Fill down instead, which treats empty text as null

    Incorrect

    Fill down also fills only null cells, so the empty text stays as it is.

  • BChange the column type to Whole Number

    Incorrect

    Comments are text; a number type would only create errors.

  • CRemove blank rows from the table

    Incorrect

    This would delete rows rather than fill their comments.

  • DReplace the empty values with null, then apply Fill up

    Correct

    Fill up fills null cells, so the empty text must become null first.

Fill up and fill down replace null values with the nearest nonempty value. Cells with empty text aren't null, so first use Replace values with an empty Value to find and null as Replace with, then fill.

Question 9 · choose 1

The column quality and column distribution bars aren't showing in Power Query Editor in Power BI Desktop. Where do you turn them on?

  1. AIn File > Options, under Report settings
  2. BOn the Home tab, under Manage Parameters
  3. COn the View tab, in the Data preview group
  4. DIn the Transform tab, under Detect data type
Show the answer and why
  • AIn File > Options, under Report settings

    Incorrect

    Report settings cover report behavior, not the Power Query preview.

  • BOn the Home tab, under Manage Parameters

    Incorrect

    Manage Parameters creates and edits query parameters.

  • COn the View tab, in the Data preview group

    Correct

    The profiling options are check boxes in the View tab's Data preview group.

  • DIn the Transform tab, under Detect data type

    Incorrect

    Detect data type sets column types; it doesn't show profiling.

To enable the data profiling tools in Power Query Desktop, go to the View tab and select the options you want in the Data preview group: column quality, column distribution and column profile.

Practice domain 1 →Practice all domains →