Recall & Review
beginner
What does the TRIM function do in Power BI?
TRIM removes all extra spaces from text except for single spaces between words. It helps clean up text data by removing leading, trailing, and multiple spaces.
Click to reveal answer
beginner
How does the CLEAN function help with text data?
CLEAN removes non-printable characters from text, such as line breaks or special control characters, making the text easier to work with in reports.
Click to reveal answer
intermediate
Write a simple DAX expression to trim and clean a column named 'CustomerName'.
CleanTrimName = TRIM(CLEAN('Table'[CustomerName]))
This removes extra spaces and non-printable characters from the CustomerName column.
Click to reveal answer
beginner
Why is it important to clean and trim text data before analysis?
Cleaning and trimming text ensures consistent data, avoids errors in matching or filtering, and improves the accuracy of reports and visuals.
Click to reveal answer
intermediate
Can TRIM remove non-breaking spaces or special invisible characters?
No, TRIM only removes regular spaces. To remove non-breaking spaces, use SUBSTITUTE or REPLACE functions. CLEAN removes non-printable characters.
Click to reveal answer
What does the TRIM function remove from text in Power BI?
✗ Incorrect
TRIM removes extra spaces but keeps single spaces between words.
Which function removes non-printable characters like line breaks?
✗ Incorrect
CLEAN removes non-printable characters from text.
What is the correct order to clean and trim text in DAX?
✗ Incorrect
First CLEAN removes non-printable characters, then TRIM removes extra spaces.
Why should you clean and trim text data before analysis?
✗ Incorrect
Cleaning and trimming improves data quality and report accuracy.
Can TRIM remove non-breaking spaces?
✗ Incorrect
TRIM does not remove non-breaking spaces; other methods are needed.
Explain how you would clean and trim a text column in Power BI using DAX.
Think about the order of applying CLEAN and TRIM.
You got /4 concepts.
Why is trimming and cleaning text data important before creating reports or dashboards?
Consider how messy text can affect your analysis.
You got /4 concepts.