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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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: