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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Serj
Frequent Visitor

Summarization inside appended table

Hi guys,

I have 2 tables:

1. Available Hours across Teams/Roles for Week1 – Week3

TeamRoleWeek1Week2Week3
RedA404040
RedB404040
RedC404040
BlueA404040
BlueD404040

 

2. Required Hours allocation:

TeamRoleWeek1Week2Week3
RedA-20-20-20
BlueA-40-40-40
BlueD-10-10-10
GreenA-20-20-20

 

What I want to get is an Hours Balance table calculated as Available Hours - Required Hours :

TeamRoleWeek1Week2Week3
RedA202020
RedB404040
RedC404040
BlueA000
BlueD303030
GreenA-20-20-20

 

What I did was append these two tables with Available Hours and Required Hours, however, the output table does not summarize calculations and shows each entry as a separate row:

 

TeamRoleWeek1Week2Week3
RedA404040
RedA-20-20-20
RedB404040
RedC404040
BlueA404040
BlueA-40-40-40
BlueD404040
BlueD-10-10-10
GreenA-20-20-20

 

Could you pls help me to get the described desired Hours Balance table.

 

Thank you! Have a great day!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Serj ,

 

Here are the steps you can follow:

1. In Power Query – Home – Append Queries -- Append Queries as new.

vyangliumsft_0-1677478174499.png

Result:

vyangliumsft_1-1677478053105.png

2. Create calculated table.

 

True =
SUMMARIZE(
    'Append1',
    'Append1'[Team],'Append1'[Role],    "Week1",SUMX(FILTER(ALL('Append1'),'Append1'[Team]=EARLIER('Append1'[Team])&&'Append1'[Role]=EARLIER('Append1'[Role])),[Week1]), "Week2",SUMX(FILTER(ALL('Append1'),'Append1'[Team]=EARLIER('Append1'[Team])&&'Append1'[Role]=EARLIER('Append1'[Role])),[Week2]), "Week3",SUMX(FILTER(ALL('Append1'),'Append1'[Team]=EARLIER('Append1'[Team])&&'Append1'[Role]=EARLIER('Append1'[Role])),[Week3]))

 

3. Result:

vyangliumsft_2-1677478053107.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi  @Serj ,

 

Here are the steps you can follow:

1. In Power Query – Home – Append Queries -- Append Queries as new.

vyangliumsft_0-1677478174499.png

Result:

vyangliumsft_1-1677478053105.png

2. Create calculated table.

 

True =
SUMMARIZE(
    'Append1',
    'Append1'[Team],'Append1'[Role],    "Week1",SUMX(FILTER(ALL('Append1'),'Append1'[Team]=EARLIER('Append1'[Team])&&'Append1'[Role]=EARLIER('Append1'[Role])),[Week1]), "Week2",SUMX(FILTER(ALL('Append1'),'Append1'[Team]=EARLIER('Append1'[Team])&&'Append1'[Role]=EARLIER('Append1'[Role])),[Week2]), "Week3",SUMX(FILTER(ALL('Append1'),'Append1'[Team]=EARLIER('Append1'[Team])&&'Append1'[Role]=EARLIER('Append1'[Role])),[Week3]))

 

3. Result:

vyangliumsft_2-1677478053107.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.