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.
Hello everyone,
I would like to combine or group multiple columns of related row and place into a new table.
For example:I would like to have another table with HchID , Flk (Flk1 & Flk2) and respective Qty. Please note that I am using this data for other reports.
So I would like the new table to be T2:
Solved! Go to Solution.
Hi @sophtee,
If you have the source data available in power query, you can do the following:
Hi, @sophtee
Based on your information, I create a table:
You can use DAX to create what you want. Create two new tables, get data for 1 and 2, and combine them together
Table1 = SELECTCOLUMNS('Table', "HchID", 'Table'[HchID], "Flk", 'Table'[Flk1], "Qty", 'Table'[Qty1])
Table2 = SELECTCOLUMNS('Table', "HchID", 'Table'[HchID], "Flk", 'Table'[Flk2], "Qty", 'Table'[Qty2])
FinalTable = UNION(Table1, Table2)
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @sophtee
Based on your information, I create a table:
You can use DAX to create what you want. Create two new tables, get data for 1 and 2, and combine them together
Table1 = SELECTCOLUMNS('Table', "HchID", 'Table'[HchID], "Flk", 'Table'[Flk1], "Qty", 'Table'[Qty1])
Table2 = SELECTCOLUMNS('Table', "HchID", 'Table'[HchID], "Flk", 'Table'[Flk2], "Qty", 'Table'[Qty2])
FinalTable = UNION(Table1, Table2)
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @sophtee,
If you have the source data available in power query, you can do the following:
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.