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 am trying to add a new column and create an expression to generate the data in the column. I have 3 tables, they are all linked but not all linked together - so TableA is linked to TableB and TableA is linked to TableC, but there is not linked between TableB and TableC.
I'm hoping to add a new column in TableA is joins information from a column in each of the two other tables.
eg. New_Column = TableB[FieldA]&" - "&TableC[FieldB]
TableB is a lookup table for the field in TableA, where the fieldin TableA is a number and the same for the field in TableC.
However, when I try to do this I get an error saying that the syntax is incorrect. Is there a way to do this??
Solved! Go to Solution.
Hi @Back2Basics,
You can create calculated coulmn using the formulas and check if it works fine.
Column1 = RELATED(TableA[fieldA]) Column2=RELATED(TableB[fieldB])
Then create another calculated column CONCATENATE function.
New_Column=CONCATENATE(column1,column2)
Please feel free to ask if you have other issue.
Best Regards,
Angelia
are you trying to combine a number and string?
Proud to be a Super User!
Hi Vanessafvg
I'm trying to combine two text fields.
the field in TableA is a number and the related TableB has two columns, one with the number and one with the correct text. i've used this for lookup to provide the correct text and it has worked in all other instances. What i'm trying to do now is combine two fields from TableA, but each field has a sperate lookup table. So I can combine them by using:
New_Column = TableA[fieldA]&" - "&TableB[fieldB]
but this will give me the two numbers in one field, and I'd like the text joined together.
Hi @Back2Basics,
You can create calculated coulmn using the formulas and check if it works fine.
Column1 = RELATED(TableA[fieldA]) Column2=RELATED(TableB[fieldB])
Then create another calculated column CONCATENATE function.
New_Column=CONCATENATE(column1,column2)
Please feel free to ask if you have other issue.
Best Regards,
Angelia
Many thanks Angelia
I haven't tried this yet but looks like it will work. I was trying to avoid adding in new columns where I already had the data, but it doesn't matter in the grand scheme of things - as long as it produces the right outcome.
Thanks again for your help
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 |
---|---|
113 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |