Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I need to combine two text columns. I've tried it in the custom column with the & Formuala, but I get an error.
= Table.AddColumn(#"Geänderter Typ", "Text.Combine", each [FCURR]&[Period])
Anyone has an idea how i can solve it?
thanks in advance,
regards
Solved! Go to Solution.
is [FCURR] and [Period] of type Text? What is the error you get?
Also, where is your function Text.Combine( )? It looks like you've just joined with '&' which should give you something like:
[Column1]&[Column2] outputs 'helloworld'
Text.Combine({[Column1],[Column2]}," " ) outputs 'hello world'
Proud to be a Super User!
The trick when concatenating values is to make sure they are of the Text sort.
So either:
- Make sure the entire column is text
- Use a function that transforms the value to text during the evaluation.
I think anyone struggling with this may enjoy this article:
https://gorilla.bi/power-query/concatenate-values/
Also take into account that referencing null values may result in different values.
--------------------------------------------------
@ me in replies or I'll lose your thread
Master Power Query M? -> https://powerquery.how
Read in-depth articles? -> BI Gorilla
Youtube Channel: BI Gorilla
If this post helps, then please consider accepting it as the solution to help other members find it more quickly.
is [FCURR] and [Period] of type Text? What is the error you get?
Also, where is your function Text.Combine( )? It looks like you've just joined with '&' which should give you something like:
[Column1]&[Column2] outputs 'helloworld'
Text.Combine({[Column1],[Column2]}," " ) outputs 'hello world'
Proud to be a Super User!
thanks for your fast reply....with two text columns it worked now 🙂
=Text.Combine({[FCURR],[TCURR]}," " )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
80 | |
63 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |