Forum Discussion
Custom Column - Concatenate numbers using & operation
- 5 years ago
Hi smitpau
Based on what you provided, I conclude that the NC column is numeric.
For this reason, Power BI shows you the error that you cannot use the & character to connect two numbers.In your case, the best solution is to multiply * 100 (instead of adding & and 00).
Try this:
Table.AddColumn(#"Added Custom1", "NC v2", each if [CC] = "HO" then [NC] * 100 else [NC])
_______________
If I helped, please accept the solution and give kudos! 😀
Hi smitpau
Based on what you provided, I conclude that the NC column is numeric.
For this reason, Power BI shows you the error that you cannot use the & character to connect two numbers.
In your case, the best solution is to multiply * 100 (instead of adding & and 00).
Try this:
Table.AddColumn(#"Added Custom1", "NC v2", each if [CC] = "HO" then [NC] * 100 else [NC])
_______________
If I helped, please accept the solution and give kudos! 😀
Thanks makes sense (converted it to text in the end)