Power Query Error: Cannot Apply Operator & to Types Text and Number
Short answer
The error is caused by mismatched data types. The desired outcome of the custom column is A1.
Question
You attempt to use Power Query Editor to create a custom column and receive the error message shown in the following exhibit.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.

Key Takeaways
The core concept tested is Power Query's strict typing system, where the ampersand (&) operator fails if one operand is text and the other is a number, requiring explicit conversion via Text.From().
This question addresses the Power Query error regarding mismatched data types during concatenation. The correct resolution involves converting the number to text to achieve the desired output of A1.
Common mistake: Candidates often misinterpret the error as a syntax issue or believe the column name itself is invalid. They may overlook that the root cause is the incompatibility between Text and Number types rather than the structure of the formula.
Expert Analysis
The error message displayed in the exhibit is Expression.Error: We cannot apply operator '&' to types Text and Number. This specific error occurs in Power Query when attempting to concatenate (join) two values using the ampersand symbol, but those values have incompatible data types. In this scenario, one operand is a text string (e.g., "A") and the other is a numeric value (e.g., 1). Power Query requires both operands to be of the same type for concatenation; therefore, the mismatch causes the failure.
To resolve this, you must convert the number to text before applying the ampersand operator. Once converted, the resulting custom column will combine the text prefix with the numeric suffix. For example, converting the number 1 to text allows the expression "A" & Text.From([Column]) to produce the string "A1". Thus, the desired outcome of the custom column is the concatenated string A1.
Exam Strategy
When encountering Power Query errors related to operators, always check the data types of the involved columns. If an operation like concatenation fails, use the Type column in the editor to identify mismatches and apply transformation functions like Text.From() or Number.ToText() to align the types.
Frequently Asked Questions
What function converts a number to text in Power Query?
Why does the ampersand operator fail in Power Query?
Discussion 14 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 14
-
RazaTheLegend 👍 49Given answers are correct
-
Igetmyrole 👍 23Mismatched data types and A1 are the correct answers. The custom column expression is trying to concatenate (use the "&" operator) a text value and a number value, which are mismatched data types. In this case, the left side of the operator is a text value (e.g.,"A"), and the right side is a number value (e.g.,1). To achieve the desired outcome of the custom column as "A1", you should ensure that both sides of the "&" operator have the same data type, which is text in this case.
-
joaowendling 👍 21In the error message, you can see that we are trying to concatenate two "parts", the left one (which is "A") and the right one (which is the number 1). The "&" is how we are concatenating (in Power Query the syntax "abc"&"def" will result in "abcdef"
-
lizbette 👍 6can someone explain the syntax? where did the "&" come from? what does the { } mean"
-
Shalaleh 👍 5Given answer is correct.
Show 9 more comments
-
omath 👍 2Answers: - The error is caused by: mismatched data types - The desired outcome of the custom column is: A1 Explanation: - Error message: Expression.Error: We cannot apply operator & to types Text and Number. This means the issue is due to mismatched data types (text vs number) when using the & operator. - Desired outcome: The formula is trying to concatenate "A" and 1. The expected result is A1 (not A&1 and not 1A).
-
rcaliandro 👍 2The error is caused by mismatched data types (text and number). The desired outcome of the custom column is A1. The given answer is OK
-
saarah9 👍 2The error is caused by: mismatched data types The desired outcome of the custom column is: A1
-
PBI2916 👍 2I tried "A"&1 to create custom column . It gives the same error as shown in the picture.
-
KARELA 👍 2can someone please share the resource from where this is referenced?
-
dataguru08 👍 2Can someone please explain why is it A1?
-
Mogo111 👍 1mismatch data types, a1
-
BP215 👍 1Correct answer
-
LuluSkyy 👍 1correct
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All PL-300 Questions
Access 116 questions with complete answers and detailed explanations.
View Full PL-300 Practice Test →