Forum Discussion
Convert numbers into text
- 6 years ago
Hi Anonymous ,
What is the logic to give the names ?
If you have it mapped in another table, you can just merge both tables and use this column.
Hi Anonymous ,
This is an Power Query solution using custom column:
let
_char = {"A".."Z"},
_value = Number.FromText(Text.Start(Number.ToText([Column1]), 1)) - 1
in Text.Repeat(_char{_value}, Text.Length(Text.From([Column1])))
Hi camargos88 ,
thanks for that solution. It unfirtunatley also didn't worked out. Power Bi shows "error" in every row of the column.
As far as I understand your formula, I would say it is maybe not the right approach. But I'm not sure.
To make it more clear:
I have a column with four different numbers, that are in there.
like
Column1
1111
1111
3333
2222
1111
4444
2222
and I want to give every specific number of that four numbers, the right name.
Like for example: 1111 is Steven, 2222 is Christoph, 3333 is Larry, 4444 is Magdalen
So it should look like this:
Column1 Column2
1111 Steven
1111 Steven
3333 Larry
2222 Christoph
etc.
- camargos886 years ago
Community Champion
Hi Anonymous ,
What is the logic to give the names ?
If you have it mapped in another table, you can just merge both tables and use this column.
- Anonymous6 years agoNot applicable
Thank you. Since I had just 4 names to merge with the numbers it was easy to make a seperate table and merge it with the other one.
I made it more complicated than needed.
Thanks for the solution camargos88 worked out perfect!