Forum Discussion
melian
7 years agoFrequent Visitor
How to combine three columns into one?
Hi, I have a table that has three columns (Zip codes columns). I want to combine all of them into one column that has all the zip codes. How can I do that?
- 7 years ago
Anonymous
7 years agoNot applicable
melian
7 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]))- Anonymous5 years agoNot applicable
Anonymous , Have you written the union dax formula on "Create a new table using DAX" pane?