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
TodGrindley
Frequent Visitor

Sum grouping in Power bi

Hi,

 

I am fairy new to the power bi world and would like some help with grouping in my matrix table. Below is a photo of what my table currently looks like:

https://www.screencast.com/t/Gg8RALDX

 

I have highlighted a section which is a grouping of 2 tasks. Is there a way I can get the sum both fields whenever there are 2 tasks in the same group rather than get each individuals value. End result should look similar to this:

 

https://www.screencast.com/t/AGLwgztLW5

 

Thanks in advance. 

1 ACCEPTED SOLUTION

Hi @TodGrindley,

 

Since you used that column as rows in a Matrix, I would suggest you replace it with a new calculated column. 

New taskwork =
CALCULATE (
    SUMX (
        SUMMARIZE (
            'Tasks (2)',
            'Tasks (2)'[projectname],
            'Tasks (2)'[Summary Task (Group)],
            'Tasks (2)'[taskname],
            'Tasks (2)'[taskwork]
        ),
        'Tasks (2)'[taskwork]
    ),
    ALLEXCEPT (
        'Tasks (2)',
        'Tasks (2)'[ProjectName],
        'Tasks (2)'[Summary Task (Group)],
        'Tasks (2)'[TaskName]
    )
)

 

Sum_grouping_in_Power_bi.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Please delete the file if necessary.

 

Best Regards,

Dale

Community Support Team _ Dale
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

5 REPLIES 5
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @TodGrindley,

 

It seems you have decorated the Matrix. Even if we can get the value 20.60, there are still two rows (cells). Can you share the pbix? Maybe we can find a workaround. You can delete the private contents first.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Dale,

 

I appreciate that. I have been on this all day but cannot find a solution. I have uploaded a copy to the link below:

https://drive.google.com/file/d/1puPlyK2EowrLoCmxcFapdEZQ4JtxpnIm/view?usp=sharing

Hi @TodGrindley,

 

Since you used that column as rows in a Matrix, I would suggest you replace it with a new calculated column. 

New taskwork =
CALCULATE (
    SUMX (
        SUMMARIZE (
            'Tasks (2)',
            'Tasks (2)'[projectname],
            'Tasks (2)'[Summary Task (Group)],
            'Tasks (2)'[taskname],
            'Tasks (2)'[taskwork]
        ),
        'Tasks (2)'[taskwork]
    ),
    ALLEXCEPT (
        'Tasks (2)',
        'Tasks (2)'[ProjectName],
        'Tasks (2)'[Summary Task (Group)],
        'Tasks (2)'[TaskName]
    )
)

 

Sum_grouping_in_Power_bi.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Please delete the file if necessary.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This solution worked for me. Thank you very much for your help!

Floriankx
Solution Sage
Solution Sage

Hello,

 

you can simply add them

 

New Measure=[Tank]+[Task Work].

 

Best regards.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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