MSBA-269 · Lesson 3 of 12 · 19 min
Domain review: preparing data
▶ Video coming soon A video version of this lesson is on the way.
The third session started with a whiteboard covered in data sources. Kwabena listed everything the Student Success model drew on: the StudentRecords SQL Server database behind the registrar's system, the learning platform's activity export, a SharePoint list of tutoring sessions, and the Excel file of program targets that the deans updated each term. "Every one of those is an exam question waiting to happen," Rupert said. "How do you connect to it, where does the gateway go, which storage mode, what privacy level, what breaks when the file moves?" The first domain of PL-300, preparing the data, is worth 25 to 30 percent of the exam, and its objectives come straight from that kind of whiteboard.
This lesson reviews domain 1 objective by objective. It does not reteach Power Query; that was the job of Preparing Data with Power Query (MSBA-260), with sources and storage modes introduced in Power BI and Dataverse Essentials (MSBA-132). The aim here is to check that you can recognize what each objective looks like as a question, and to rehearse the decisions that questions most often turn on.
The three objective groups
Get or connect to data
The first objective is to identify and connect to data sources or a shared semantic model. Questions describe a source and ask which connector or approach fits. A shared semantic model is a model already published in the service; connecting to it from Desktop gives a live connection (or, if you add your own tables, a composite model). The key point the exam tests is that a live connection reuses the existing model: you build reports on it, but you do not add Power Query steps to its tables. If a scenario says the finance team must reuse the certified sales model rather than build its own copy, the answer is to connect to the shared semantic model.
The second objective is to change data source settings, including credentials and privacy levels. In Desktop, data source settings are where you change the server or file path, edit credentials and set privacy levels. Privacy levels (Private, Organizational, Public, and None) control whether Power Query may send data from one source to another while combining queries. A classic question shows an error about combining data from different privacy levels, or a query that becomes slow because folding stopped, and asks what to change. Setting both sources to Organizational, when they are both internal, is usually the intended fix; ignoring privacy levels altogether is possible in Desktop options but is not the governed answer.
The third objective, new in emphasis, is to choose between DirectLake, DirectQuery, and Import. Each storage approach trades freshness, performance and requirements.
| Approach | Where data lives at query time | Strengths | Constraints to remember |
|---|---|---|---|
| Import | In the semantic model, compressed in memory | Fastest visuals; full DAX and Power Query; works with any source | Data is as fresh as the last refresh; refreshes are limited per day by license; model size limits apply |
| DirectQuery | In the source; queries are sent at view time | Near real-time data; very large sources | Slower visuals; source must handle the load; some transformations and DAX functions limited |
| Direct Lake | Delta tables in OneLake, read directly into memory | Import-like speed without copying data through refresh | Needs Fabric capacity and Delta tables in OneLake; guardrails on table size; Direct Lake on SQL can fall back to DirectQuery, Direct Lake on OneLake does not |
| Composite (dual / mixed) | Some tables imported, some DirectQuery | Combines fresh facts with fast dimensions | More complex; relationship and storage settings matter |
Exam questions on storage mode usually contain one decisive phrase. "Data must be no more than five minutes old" with a large SQL source points to DirectQuery. "Data is stored in a Fabric lakehouse" or "Delta tables in OneLake" points to Direct Lake. "Reports must be as fast as possible and the data changes overnight" points to Import. If a question mentions an on-premises source, remember that Direct Lake does not use gateways, because it reads from OneLake; the on-premises data would have to land in OneLake first.
The last objective in the group is to create and modify parameters. Parameters let one query value, such as a server name or a date threshold, be changed in one place. In the service, parameters can be edited in the semantic model settings, which is how Kwabena points the same model at the test and production databases. Questions often ask how to change a server name without editing every query, or how to let report authors choose a value when they open a template file. Parameters are the answer to both.
Profile and clean the data
Power Query's column quality, column distribution and column profile views appear in this objective group. A favorite question asks why the profile shows 100 percent valid values but the refreshed model has errors. The reason is that profiling is based on the first 1,000 rows by default; switching to "Column profiling based on entire data set" in the status bar gives the true picture. Questions also test the difference between errors (a value that cannot be converted, such as text in a date column) and empty or null values, and how to resolve each: replace errors, remove errors, replace values, or fix the source.
| Symptom in Power Query | Likely cause | Typical fix |
|---|---|---|
| Column quality shows errors after changing type to Date | Some text cannot be converted, often because of a locale difference such as day-month order | Change type using locale, or clean the text first |
| Totals in the report are lower than the source | Rows with errors were removed, or a filter step was left in | Inspect applied steps; replace errors instead of removing them |
| Distinct count is higher than expected for a code column | Trailing spaces or inconsistent case | Trim and change case before deduplicating or merging |
| Import fails with a missing column error | The source file changed its headers | Remove hard-coded column references or update the step |
Transform and load the data
This is the largest group, and most of it is familiar from daily work. Select appropriate column data types: whole number for counts and keys, fixed decimal for currency, date versus date/time. Create and transform columns: add column from examples, conditional columns, custom columns. Group and aggregate rows. Pivot, unpivot and transpose: the exam likes unpivot, because many source files arrive in a wide layout with one column per month or term, and a model needs one row per period. Convert semi-structured data to a table: JSON and nested records, expanded with the expand buttons.
Two objectives in this group produce the most wrong answers. The first is to identify when to use reference or duplicate queries and the resulting impact. A reference creates a new query that starts from the output of the original, so changes to the original flow through. A duplicate copies all the steps into an independent query. If a question says that a dimension table must always reflect the cleaning steps applied to a staging query, reference is the answer. If two versions must diverge completely, duplicate is the answer. The impact the objective mentions includes refresh: referenced queries can cause the source to be read more than once, depending on caching and the source.
The second is to merge and append queries. Merge is a join: it adds columns from another query based on matching keys, with join kinds such as left outer, inner, full outer, left anti and right anti. Append stacks rows from queries with the same columns. A question that describes "two files with the same columns, one per campus" wants append; "add the program name to each registration row" wants merge. Anti joins are the tool for "find registrations with no matching student", a common data quality check.
The group closes with three modeling-adjacent objectives. Create fact tables and dimension tables asks you to shape data into a star: one table of events or measurements (registrations, sessions) and separate tables that describe them (students, programs, dates). Identify and create appropriate keys for relationships asks you to recognize when a natural key is unreliable and a surrogate or combined key is needed, for example combining campus and course code when course codes repeat across campuses. Configure data loading for queries covers disabling load for staging queries so that only the tables the model needs are loaded, and excluding queries from report refresh.
Worked problem
An unpivot and load question
The deans' targets workbook has one row per program and one column per term: Fall 2025, Winter 2026, Spring 2026, Fall 2026. The model needs targets by term to compare with actual registrations. A helper query called TargetsRaw cleans the workbook. What should the analyst do?
Show solution
- Recognize the wide layout: terms are column headers, so the data must be unpivoted.
- Create a query that references TargetsRaw, so cleaning steps stay in one place.
- Select the Program column and choose Unpivot Other Columns, so new term columns are included automatically next term.
- Rename the resulting Attribute and Value columns to Term and Target, set data types, and disable load for TargetsRaw.
Answer: Reference TargetsRaw, use Unpivot Other Columns with Program selected, rename and type the columns, and disable load on the staging query. "Unpivot other columns" is the robust choice because "unpivot selected columns" would miss a new term column.
Patterns in domain 1 questions
After two weeks of practice sets, Kwabena noticed patterns. Most domain 1 questions name a symptom or a requirement and ask for a step or setting. Very few ask him to write M. When M did appear, it was a short expression with a gap, such as the join kind argument in a merge or the column list in an unpivot. He also noticed that the wrong answers often described something that works but violates a constraint: removing rows with errors when the requirement says totals must match the source, or duplicating a query when the requirement says later cleaning changes must apply everywhere.
| Phrase in the question | Usually points to |
|---|---|
| "without copying the data" / "data is in OneLake" | Direct Lake |
| "changes must appear within minutes" with a relational source | DirectQuery or a composite model |
| "reuse the certified model" | Live connection to a shared semantic model |
| "change the server for all queries at once" | A parameter |
| "one column per month" | Unpivot |
| "find rows with no match" | Left anti merge |
| "staging query should not appear in the model" | Disable load |
Three more preparation questions to try
| Question | Answer |
|---|---|
| A query combines a public web table with an Organizational SQL source, and refresh fails with a privacy error. What is the usual fix? | Set the correct privacy level on each source, or restructure the queries, so that data from the private source is not sent to the public one; ignore privacy levels only if the organization permits it. |
| A CSV file uses commas as decimal separators, and numbers import as errors. Which option resolves this without editing the file? | Change the column type using locale, choosing a locale that uses commas as decimal separators. |
| A staging query feeds three other queries and should not appear in the model. What load setting fits? | Turn off Enable load for the staging query; the queries that reference it still work. |
Domain 1 questions often describe a symptom and ask for the cause. A column with a quality bar showing errors points to a type conversion problem. A refresh that works in Desktop but fails in the service points to credentials, a gateway or a privacy level that differs between the two. A query that becomes slow after a merge may have lost query folding, which you can check by right-clicking a step and looking for "View native query". These cause-and-effect pairs are worth more than memorizing menu locations, because the exam describes what a user sees, not where a button is.
| Symptom in the question | Likely cause | Typical fix |
|---|---|---|
| Refresh fails only in the service | Missing gateway or credentials, or different privacy settings | Configure the gateway data source and credentials |
| Errors appear after a type change | Values that do not convert, or a locale mismatch | Change type using locale, or replace errors |
| Query becomes slow after a step | Query folding stopped at that step | Reorder steps so folding steps come first |
| A new month column is ignored | Unpivot used on selected columns | Use Unpivot Other Columns |
| Duplicate rows after a merge | The key on the lookup side is not unique | Remove duplicates on the key before merging |
Kwabena added one habit after this review. Whenever a practice question mentioned a source, he asked three things before reading the options: where the data lives, how fresh it must be, and whether the service can reach it without help. Those three answers decided the storage mode, the refresh method and whether a gateway was needed, and together they settled most domain 1 scenarios.
Common mistakes
MistakeTrusting column profiling without checking that it covers the whole data set.
InsteadProfiling uses the first 1,000 rows by default; switch to the entire data set when it matters.
MistakeChoosing Direct Lake for an on-premises SQL Server source.
InsteadDirect Lake reads Delta tables in OneLake; on-premises data must land in OneLake first.
MistakeUsing Unpivot Columns on the term columns you can see today.
InsteadSelect the identifier columns and use Unpivot Other Columns so new periods are included.
MistakeConfusing merge with append.
InsteadMerge adds columns by key; append stacks rows with the same columns.
Summary and key terms
- Domain 1, preparing the data, is 25 to 30 percent and has three groups: connect, profile and clean, transform and load.
- Know when to use Import, DirectQuery, Direct Lake and composite models, and the constraint each carries.
- Privacy levels and data source settings appear in questions about combining sources and changing servers.
- Reference keeps queries linked; duplicate makes independent copies; merge joins, append stacks.
- Shape fact and dimension tables, create reliable keys, and disable load for staging queries.
- Live connection
- A report connected to a published semantic model without its own Power Query tables.
- Privacy level
- A setting that controls whether Power Query may combine data from sources across trust boundaries.
- Direct Lake
- A storage mode that reads Delta tables in OneLake directly into memory on Fabric capacity.
- Reference query
- A query that starts from another query's output, so upstream changes flow through.
- Left anti join
- A merge that keeps rows from the first table that have no match in the second.
- Disable load
- A query setting that keeps a staging query out of the semantic model.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Data must be no more than five minutes old and comes from a large SQL database. Which storage approach fits?
Show answer
DirectQuery, or a composite model with DirectQuery for the fact table.
Why might profiling show no errors but refresh fail?
Show answer
Profiling covers the first 1,000 rows by default; errors can be further down.
Which merge kind lists registrations whose student ID has no match in the students table?
Show answer
Left anti, with registrations as the first table.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.