Bird
0
0

You wrote this code to replace "NY" with "New York" in the City column:

medium📝 Formula Fix Q6 of 15
Power BI - Power Query Editor
You wrote this code to replace "NY" with "New York" in the City column:
Table.ReplaceValue(Source, "NY", "New York", Replacer.ReplaceText)

But it gives an error. What is missing?
AThe old value to replace
BThe source table variable
CThe replacer function
DThe list of columns to apply replacement to
Step-by-Step Solution
Solution:
  1. Step 1: Review Table.ReplaceValue syntax

    The function requires source, old value, new value, replacer, and columns list.
  2. Step 2: Identify missing argument in code

    The code lacks the list of columns to apply replacement, causing error.
  3. Final Answer:

    The list of columns to apply replacement to -> Option D
  4. Quick Check:

    Columns list is mandatory in ReplaceValue [OK]
Quick Trick: Always specify columns as a list in ReplaceValue [OK]
Common Mistakes:
  • Omitting columns list
  • Confusing replacer function with columns
  • Missing source table argument

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes