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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Mad890
Regular Visitor

Sum of (calculated measures (conditional measures))

Hello BI Fam,
I have a problem in calculating the total of calculated measure. The below sc shows the table, Lateslam_DPMO and Late_slam_penalty are calculated measures. The conditional measures are also posted in the pictures. 
Now i want to calculate the sum of those calculated measures. I have applied the CALCULATE func but it is not giving me the right answer. It would be appreciated if some one from the family understand this and help in finding the solution.
Mad890_0-1672851069763.png

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Mad890 

You can use a SUMX iterator to get you the total you are looking for I think.  It takes a list of values (looks like the CW field in your case), calculates an amount then sums up each row.

Late_Slam_Penalty_Total = SUMX ( VALUES ( 'YourTable'[CW] ), [Late_slam_penalty] )

You would need to change the name of the table / field in this part

VALUES ( 'YourTable'[CW] )

to match your model.

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@Mad890 

You can use a SUMX iterator to get you the total you are looking for I think.  It takes a list of values (looks like the CW field in your case), calculates an amount then sums up each row.

Late_Slam_Penalty_Total = SUMX ( VALUES ( 'YourTable'[CW] ), [Late_slam_penalty] )

You would need to change the name of the table / field in this part

VALUES ( 'YourTable'[CW] )

to match your model.

Thank you😊. It worked. 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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