Forum Discussion
concatenate calculated column
- 7 years ago
I got this example from here: https://msdn.microsoft.com/en-us/query-bi/dax/concatenate-function-dax
Criterios = Concatenate(NF, Concatenate(",", Concatenate(MI, Concatenate(",", MV))))
[Edited, I didnt see you already had commas. I also did this with calculated columns from my data. You might need to update your desktop version if this is not working for you.]
Criterios = Concatenate(NF, Concatenate(MI, MV))
This is not directly responsive to the question, but I have seen several people seeking a solution to concatenating 3 columns when editing a query (see example when desiring to get a FullName from 3 columns).
LastName, FirstName, MI, for example.
I recently found you can get there with a simple measure ...
Full Name = MemberName[NameFirst] & ", " & MemberName[NameLast] & ", " & MemberName[NameMiddle]
... by selecting 2 or more Table[columnnames] which will appear on your Report Canvas after selecting the "fields you want. Then immediately left click on the table name and instead on selecting a "measure" select "column" and an "equal" sign will appear in the Measure area. Simply use the above syntax after naming your "column" measure (in the above case I used FullName = ). Apologies in advance for dropping this in the wrong place ... any help to get this moved to the right place will be appreciated.