Forum Discussion
ScorpionKing
8 years agoFrequent Visitor
How to combine two columns from the same table
Hi everyone! Pls help me combine two columns from the same table as shown below.
Thanks in advance!
5 Replies
- Zubair_MuhammadCommunity Champion
Hi ScorpionKing
Go to Modelling Tab ... and select the NEW TABLE button
NEW Table = UNION ( SELECTCOLUMNS ( TableName, "Location", TableName[Location], "Reason Code", TableName[Unserved Code], "Quantity", TableName[Qty] ), SELECTCOLUMNS ( TableName, "Location", TableName[Location], "Reason Code", TableName[Return Code], "Quantity", TableName[Qty1] ) )- Zubair_MuhammadCommunity Champion
- ScorpionKingFrequent Visitor
Hi Zubair_Muhammad, appreciate your very fast reply. Is there a way not to label all my columns? I have 100 columns and 800k rows. Would there be an impact in the speed? Is there a way to do it in the Query table?
Thanks