Bird
0
0

Which of the following is the correct syntax to trim spaces from a column named CustomerName in Power BI DAX?

easy📝 Conceptual Q3 of 15
Power BI - Data Cleaning with Power Query
Which of the following is the correct syntax to trim spaces from a column named CustomerName in Power BI DAX?
ATRIM[CustomerName]
BTRIM CustomerName
CTRIM{CustomerName}
DTRIM([CustomerName])
Step-by-Step Solution
Solution:
  1. Step 1: Recall DAX function syntax

    Functions use parentheses with column names inside, e.g., TRIM([ColumnName]).
  2. Step 2: Evaluate options

    TRIM([CustomerName]) uses correct syntax; others use invalid brackets or missing parentheses.
  3. Final Answer:

    TRIM([CustomerName]) -> Option D
  4. Quick Check:

    Correct DAX syntax = TRIM(Column) [OK]
Quick Trick: Functions always use parentheses around column names [OK]
Common Mistakes:
  • Using square or curly brackets incorrectly
  • Omitting parentheses
  • Confusing syntax with Excel formulas

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes