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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
badtuffstuff
Frequent Visitor

Matrix subtotal Percentages not Calculating correctly.

Hello,

badtuffstuff_0-1606853988335.png

Why is the percentage column not recalculating the percentage instead of just adding them together?

1 ACCEPTED SOLUTION

Hey @badtuffstuff ,

 

the DAX statement of calculated columns will be evaluated just during data refresh (and of course when the statement is changed during the development phase). Because of this, a calculated column is just a numeric value after the model is recalculated, the final phase of the data refresh.

Create a measure instead of a calculated column, use this DAX statement:

% TO LEADS GOAL 1 (ms) = 
DIVIDE( 
    CALCULATE( SUM( MSR_POWERBI[MTD ACTUAL LEADS] ) )
    , CALCULATE( SUM( MSR_POWERBI[MTD LEADS GOAL] ) )
)

 

Hopefully, this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

4 REPLIES 4
TomMartens
Super User
Super User

Hey @badtuffstuff ,

 

please provide the DAX statement that used to calculate the ratio. Also, provide the information if it's a

  • calculated column, or a 
  • measure

My assumption - it's a calculated column, this will explain why the ratios are summed up.

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Here is the dax. It is a column. 

% TO LEADS GOAL 1 = divide ( MSR_POWERBI[MTD ACTUAL LEADS] ,MSR_POWERBI[MTD LEADS GOAL])

Hey @badtuffstuff ,

 

the DAX statement of calculated columns will be evaluated just during data refresh (and of course when the statement is changed during the development phase). Because of this, a calculated column is just a numeric value after the model is recalculated, the final phase of the data refresh.

Create a measure instead of a calculated column, use this DAX statement:

% TO LEADS GOAL 1 (ms) = 
DIVIDE( 
    CALCULATE( SUM( MSR_POWERBI[MTD ACTUAL LEADS] ) )
    , CALCULATE( SUM( MSR_POWERBI[MTD LEADS GOAL] ) )
)

 

Hopefully, this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Thank you so much this worked perfectly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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