Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi everyone! Pls help me combine two columns from the same table as shown below.
Thanks in advance!
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] ) )
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
In the above example you needed only 3 columns as output
Do you need 100 columns as output and or only 3 out of 100?
Using Query Editor,
You can use the Append Queries to do the same Union I did using DAX
Create a Duplicate Query and then append the Original Query to that Duplicate Query
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.