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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jdobbins
Frequent Visitor

Caculated Measure Subtotal Help - Subtotal needs to sum each row instead of calculation at subtotal

Afternoon! I am working on a report where I am able to get my calculated field functioning fine for each row but the subtotal is just doing the same measure calculation instead of adding up the row values.  This must be something I am not taking into account for DAX and would appreciate any guidance.  Any tips on how to get my subtotal in a matrix to not calculate the measure at the subtotal level and just add the rows together to get the true SUM?

 

This is my measure: 

Calculated Denial Amount =
(DIVIDE(
    SUM('devro-PTEST-20231128_11-28'[Denied Amount]),
    SUM('devro-PTEST-20231128_11-28'[# of Denials])
))

 

 

jdobbins_0-1704746094771.png

 

jdobbins_1-1704746128254.png

 

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


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

Alberto Ferrari explains very well what I think the solution to your problem is, which would be using the SUMX/VALUES functions in a measure instead.

https://youtu.be/6rgAkejrup8?si=wZc-yXI3cqkk0Ml8

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.