Bird
0
0

Why does CLEAN(TRIM([TextColumn])) sometimes produce the same result as TRIM([TextColumn])?

medium📝 Formula Fix Q7 of 15
Power BI - Data Cleaning with Power Query
Why does CLEAN(TRIM([TextColumn])) sometimes produce the same result as TRIM([TextColumn])?
ABecause both functions convert text to uppercase
BBecause CLEAN only removes non-printable characters, which may not exist
CBecause CLEAN removes spaces, same as TRIM
DBecause TRIM removes non-printable characters too
Step-by-Step Solution
Solution:
  1. Step 1: Understand CLEAN and TRIM roles

    CLEAN removes non-printable chars; TRIM removes spaces at edges.
  2. Step 2: Reason about input

    If text has no non-printable chars, CLEAN changes nothing, so result equals TRIM alone.
  3. Final Answer:

    Because CLEAN only removes non-printable characters, which may not exist -> Option B
  4. Quick Check:

    CLEAN affects non-printable chars only [OK]
Quick Trick: CLEAN does nothing if no hidden chars exist [OK]
Common Mistakes:
  • Thinking TRIM removes non-printable chars
  • Assuming CLEAN removes spaces
  • Confusing function effects

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes