Bird
0
0

You have a column Feedback with messy text containing extra spaces and hidden characters. Which DAX formula correctly cleans and trims the text for a new calculated column?

hard📝 Scenario Q15 of 15
Power BI - Data Cleaning with Power Query
You have a column Feedback with messy text containing extra spaces and hidden characters. Which DAX formula correctly cleans and trims the text for a new calculated column?
ACleanTrim = TRIM([Feedback]) + CLEAN([Feedback])
BCleanTrim = CLEAN(TRIM([Feedback]))
CCleanTrim = TRIM(CLEAN([Feedback]))
DCleanTrim = SUBSTITUTE(TRIM([Feedback]), CLEAN([Feedback]), "")
Step-by-Step Solution
Solution:
  1. Step 1: Understand order of operations

    CLEAN should be applied first to remove hidden characters, then TRIM removes extra spaces.
  2. Step 2: Evaluate each option

    CleanTrim = TRIM(CLEAN([Feedback])) applies CLEAN then TRIM correctly. CleanTrim = CLEAN(TRIM([Feedback])) reverses order, which may leave hidden chars. Options C and D misuse functions and produce incorrect results.
  3. Final Answer:

    CleanTrim = TRIM(CLEAN([Feedback])) -> Option C
  4. Quick Check:

    CLEAN then TRIM cleans text best = A [OK]
Quick Trick: Always CLEAN first, then TRIM for best text cleaning [OK]
Common Mistakes:
  • Applying TRIM before CLEAN
  • Adding results instead of nesting functions
  • Using SUBSTITUTE incorrectly to clean text

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes