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
punksterz626
Helper II
Helper II

Sum Total based on Columns

Hello All,

 

How can I achieve the outcome listed below for Total Capacity? I am using a matrix table and I want to add a column like Total Capacity below that shows the Job Cap total based on Employee. Is this possible? 

 

EmployeeJob CapTotal Capacity
A25100
A25100
A25100
25100
B4080
B4080
C2060
C2060
C2060
D1050
D1050
D1050
D1050
D1050
F3030
1 ACCEPTED SOLUTION

Hi, @punksterz626 ;

punksterz626_0-1654525145678.png

 

In the image above,  can you share yours [Planner] column?Because this is a  [Planner] column grouping.

Base on the example you offered. You could try this dax.

Total capacity 2 = CALCULATE(SUM([Job Cap]),ALLEXCEPT('Table','Table'[Employee]))

The final show:

vyalanwumsft_0-1654566136291.png


Best Regards,
Community Support Team _ Yalan Wu
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

11 REPLIES 11
ddpl
Solution Sage
Solution Sage

Hi Try this one

Column =
CALCULATE ( SUM ( 'Table'[Job Cap] ), DISTINCT ( 'Table'[Employee] ) )
 
==Mark solution as accepted if its worked

The result is the same as job cap and not the total.

Ashish_Mathur
Super User
Super User

Hi,

Write this calculated column formula

Total capacity = calculate(sum(Data[job cap]),filter(Data,Data[Employee]=earlier(Data[Employee])))

Hope this helps.

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

This didnt work for me. Getting an error EARLIER/EARLIEST refres to an earlier row context which doesnt exist. 

 

FYI - The rows might not necessarily be sequential by employees. They are not in specific orders if that helps.

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
mlozano
Helper III
Helper III

Try this:

 

Total Capacity = CALCULATE(
SUM(Tabla[límite de trabajo]), ALL(Tabla[Empleado]))

This did not work for me. The results are the same as the job cap.

this is result you want right??

 

ddpl_0-1654489837524.png

 

It is what i wanted but when i try to follow the same DAX it yields differently.

 

punksterz626_0-1654525145678.png

Total Capacity = CALCULATE(SUM(ProgressTable[Capacity Score]),DISTINCT(ProgressTable[Planner]))
 

Hi, @punksterz626 ;

punksterz626_0-1654525145678.png

 

In the image above,  can you share yours [Planner] column?Because this is a  [Planner] column grouping.

Base on the example you offered. You could try this dax.

Total capacity 2 = CALCULATE(SUM([Job Cap]),ALLEXCEPT('Table','Table'[Employee]))

The final show:

vyalanwumsft_0-1654566136291.png


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

This actually works! Thank you.

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
Top Kudoed Authors