Forum Discussion
New column
- 6 years ago
The syntax is wrong. Replace that = with a ,
And check that the data type of [no_] is text. If it is of number type then you don't need the quotes round the hardcoded values
Hi,
What I'm trying to do is: Create a column with the name of the Custormer and add all the locations that are under this customer. The locations are coded by number so each number I want to call for the name of the customer.
Thanks!
So something like:
Column =
SWITCH('Table'[Column],
"39062","John Lewis",
"39063","John Lewis",
<as many pairs as you want>
)
- RenataOGardner6 years agoHelper II
Hiya,
Thanks for helping me. Much appreciate it.
Unfortunately, it doesn't like the SWITCH either.
- HotChilli6 years agoCommunity Champion
The syntax is wrong. Replace that = with a ,
And check that the data type of [no_] is text. If it is of number type then you don't need the quotes round the hardcoded values
- RenataOGardner6 years agoHelper II
Thank you so much! 🙂