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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors