Forum Discussion
How to combine three columns into one?
- 7 years ago
- Anonymous7 years agoNot applicable
CONCATENATE([col1],CONCATENATE([col2],[col3]))
- melian7 years agoFrequent Visitor
Anonymous
The problem with this is that it combines them on the same line, which is not what I want. Your code would make the the new list looks like this
However, I want the new list to look like this
- melian7 years agoFrequent Visitor
This is an example of what I want to do. In the table I am working on there are three columns, the first three, of zipcodes. I want to combine all of them into one column, All ZipCodes.
Anonymous
- v-chuncz-msft7 years ago
Community Support
- melian7 years agoFrequent Visitor
v-chuncz-msft Thank you so much. The UNION function did the job. Much appreciated.
- rkumar6 years ago
Helper III
Hi Melian, Can you please post your solution DAX . I have the same requirement but UNIOn is not working in my case.
- Anonymous6 years agoNot applicable
Hi,
Use Summarize with union function as shown below-
AllZipCode =UNION(SUMMARIZE('Table','Table'[ZipCode1]),SUMMARIZE('Table','Table'[ZipCode2]),SUMMARIZE('Table','Table'[ZipCode3]))Angad- Anonymous5 years agoNot applicable
@AngadK , i have a similar requirement, tried the union dax with Summarize its throwing an error, can you please help me with this
Project IDs = UNION(SUMMARIZE('Table','Table'[Project_ID1]),SUMMARIZE('Table','Table'[Project_ID2]),SUMMARIZE('Table','Table'[Project_ID3]),SUMMARIZE('Table','Table'[Project_ID4]))