Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
AllanBerces
Post Prodigy
Post Prodigy

Merge Summarize Table

Hi to all, can someone help me if possible to Merge multiple Summarize table into one table

AllanBerces_0-1779342470989.png

Output

AllanBerces_1-1779342532215.png

JobTask
rwerttytyt
werwertytytytyytyty
ertrghfghf
ertetjghjgjgyt
564eyrytydrdryjtyjdtj
rtryjtr6urjdj
fdhry5sysrtdghdfgh6urt
65745ytjtueruytueu
ghjdtjjhr754ysrtdun
2w4w4nyw45 754ue
3 ACCEPTED SOLUTIONS
freginier
Solution Sage
Solution Sage

Quick note on terminology first: in Power Query "Merge" means a join (it adds columns), whereas what you want here is to stack the rows from several tables into one - that's "Append" (Power Query) or UNION (DAX).

 

- If these summaries are Power Query queries: Home > Append Queries > Append Queries as New, then pick the tables. They share the same Job/Task columns, so you get one stacked table.

- If they are DAX calculated tables (created with SUMMARIZE): Combined = UNION(Summary1, Summary2, Summary3). UNION matches columns by position (so keep the same column order), takes the column names from the first table, and keeps duplicate rows - wrap it in DISTINCT() if you want to remove duplicates.

- If all three summaries come from the same base table, the cleanest option is to skip the intermediate tables and do a single SUMMARIZE/GROUPBY over the base table (or just drop Job and Task into one visual).

 

Hope that helps!

View solution in original post

cengizhanarslan
Super User
Super User

If these are separate SUMMARIZE results stored as variables or separate tables, you can combine them using UNION. Please try the logic below:

Combined Table =
VAR _Table1 =
    SUMMARIZE ( Source1, Source1[Job], Source1[Task] )
VAR _Table2 =
    SUMMARIZE ( Source2, Source2[Job], Source2[Task] )
VAR _Table3 =
    SUMMARIZE ( Source3, Source3[Job], Source3[Task] )
RETURN
    UNION ( _Table1, _Table2, _Table3 )

 

If you need this as a physical table (not a measure), use it inside a Calculated Table definition. If you are working in Power Query instead of DAX, use Table.Combine:

= Table.Combine({Table1, Table2, Table3})
_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

View solution in original post

Lodha_Jaydeep
Solution Sage
Solution Sage

Hi @AllanBerces,

 

If you have the table with the same number of columns you can use the union to merge them all (as same your expected O/P) 

Lodha_Jaydeep_0-1779361216235.png

 
For existing tables.
Merged Table =
UNION (
SELECTCOLUMNS ( Table1, "Job", Table1[Job], "Task", Table1[Task] ),
SELECTCOLUMNS ( Table2, "Job", Table2[Job], "Task", Table2[Task] ),
SELECTCOLUMNS ( Table3, "Job", Table3[Job], "Task", Table3[Task] )
)

Lodha_Jaydeep_1-1779361607358.png

 

 

If you want to do the same in the power query editor you can use query something like, Assuming tables are already created.

let
    Combined =
        Table.Combine({Table1, Table2, Table3})
in
    Combined


Hope this is the asnwer to your question. Please consdier this as an accepted solution or give some kudos.

View solution in original post

4 REPLIES 4
Lodha_Jaydeep
Solution Sage
Solution Sage

Hi @AllanBerces,

 

If you have the table with the same number of columns you can use the union to merge them all (as same your expected O/P) 

Lodha_Jaydeep_0-1779361216235.png

 
For existing tables.
Merged Table =
UNION (
SELECTCOLUMNS ( Table1, "Job", Table1[Job], "Task", Table1[Task] ),
SELECTCOLUMNS ( Table2, "Job", Table2[Job], "Task", Table2[Task] ),
SELECTCOLUMNS ( Table3, "Job", Table3[Job], "Task", Table3[Task] )
)

Lodha_Jaydeep_1-1779361607358.png

 

 

If you want to do the same in the power query editor you can use query something like, Assuming tables are already created.

let
    Combined =
        Table.Combine({Table1, Table2, Table3})
in
    Combined


Hope this is the asnwer to your question. Please consdier this as an accepted solution or give some kudos.

Hi @Lodha_Jaydeep @cengizhanarslan @freginier thank you very much for the reply working all good.

cengizhanarslan
Super User
Super User

If these are separate SUMMARIZE results stored as variables or separate tables, you can combine them using UNION. Please try the logic below:

Combined Table =
VAR _Table1 =
    SUMMARIZE ( Source1, Source1[Job], Source1[Task] )
VAR _Table2 =
    SUMMARIZE ( Source2, Source2[Job], Source2[Task] )
VAR _Table3 =
    SUMMARIZE ( Source3, Source3[Job], Source3[Task] )
RETURN
    UNION ( _Table1, _Table2, _Table3 )

 

If you need this as a physical table (not a measure), use it inside a Calculated Table definition. If you are working in Power Query instead of DAX, use Table.Combine:

= Table.Combine({Table1, Table2, Table3})
_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.
freginier
Solution Sage
Solution Sage

Quick note on terminology first: in Power Query "Merge" means a join (it adds columns), whereas what you want here is to stack the rows from several tables into one - that's "Append" (Power Query) or UNION (DAX).

 

- If these summaries are Power Query queries: Home > Append Queries > Append Queries as New, then pick the tables. They share the same Job/Task columns, so you get one stacked table.

- If they are DAX calculated tables (created with SUMMARIZE): Combined = UNION(Summary1, Summary2, Summary3). UNION matches columns by position (so keep the same column order), takes the column names from the first table, and keeps duplicate rows - wrap it in DISTINCT() if you want to remove duplicates.

- If all three summaries come from the same base table, the cleanest option is to skip the intermediate tables and do a single SUMMARIZE/GROUPBY over the base table (or just drop Job and Task into one visual).

 

Hope that helps!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.