Data import & transformation — quiz
12 questions covering this module. Connecting to sources, Power Query, cleaning, merging and appending.
Where should you remove unneeded columns?
- In DAX with a measure
- In Power Query before load
- In the report visual
- In the Service after publishing
Answer: In Power Query before load — Columns removed in Power Query never enter the model, so they cost nothing in size or refresh.
When does DAX evaluate?
- At refresh time
- At query time, when a visual is rendered
- When the file is saved
- Only on publish
Answer: At query time, when a visual is rendered — DAX measures are computed on demand as users interact with visuals.
In a composite model, dimension tables joined to DirectQuery facts should usually be:
- Import
- DirectQuery
- Dual
- Live connection
Answer: Dual — Dual lets the engine serve from memory when possible and query the source when a join requires it.
Which is a genuine limitation of DirectQuery?
- No relationships allowed
- Many DAX functions are unavailable or slow
- No visuals can be used
- Refresh is impossible
Answer: Many DAX functions are unavailable or slow — DirectQuery restricts the DAX surface and pushes work to the source on every interaction.
Which action commonly breaks query folding?
- Filtering rows
- Removing columns
- Adding an index column
- Renaming a column
Answer: Adding an index column — An index column has no SQL equivalent, so folding stops there and later steps run locally.
Wide spreadsheet data with one column per month should be:
- Pivoted
- Unpivoted
- Merged
- Grouped
Answer: Unpivoted — Unpivot converts the month columns into attribute/value rows, which the model can actually use.
Which is valid M?
- table.selectrows(Sales, each [Amt] > 0)
- Table.SelectRows(Sales, each [Amt] > 0)
- SELECT * FROM Sales WHERE Amt > 0
- Table.selectRows(Sales, [Amt] > 0)
Answer: Table.SelectRows(Sales, each [Amt] > 0) — M is case sensitive, and each supplies the per-row context.
How do you stop one unparseable value failing a refresh?
- Remove the column
- Wrap the conversion in try ... otherwise
- Use DirectQuery
- Disable load
Answer: Wrap the conversion in try ... otherwise — try ... otherwise substitutes a fallback instead of raising a step error.
What does query folding mean?
- Collapsing steps
- Power Query translates steps into a query the source runs
- Compressing the file
- Merging queries
Answer: Power Query translates steps into a query the source runs — It keeps the work in the database.
View Native Query is greyed out on a step. This means:
- The step is invalid
- Folding has stopped at or before it
- The source is a file
- The query is slow
Answer: Folding has stopped at or before it — Everything after is processed locally.
Which join kind returns only first-table rows with no match?
- Inner
- Left anti
- Left outer
- Full outer
Answer: Left anti — It answers "which of these are missing" directly.
A merge matches nothing on identical-looking values. Fix:
- Change join kind
- Trim and lowercase both key columns
- Use Append
- Add an index
Answer: Trim and lowercase both key columns — Whitespace and case are invisible in the preview.