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
orangeatom
Resolver I
Resolver I

Calculate Measure not returning proper sum

Hello,

I am attempting to create a measure that will return the sum of a few calculated measures (sourced from different tables). I have a simple Calculate function does return the correct average but i can't seem to get the sum to work. I also use a few measure on measure on measures to get to this point:

 

Measure_PTI = DIVIDE(([M_MeasurementTotal]-[M_MeasurementDeviation]),[M_MeasurementTotal])
Measure_UserWeight = DIVIDE([M_Users],[M_UsersTotal])
MeasurePTIWeight = [Measure_PTI] * [Measure_UserWeight]

 

MeasurePTIWeightPercent = CALCULATE([M_MeasurePTIWeight])

 

CountryAverageM_MeasurePTIM_UserWeightM_MeasurePTIWeight
127.1966217399.17%1.60%1.59%
2323.350072432.48%2.00%0.65%
31.432356916100.00%21.60%21.60%
4191.72285930.20%7.20%0.01%
5155.49665430.00%4.00%0.00%
645.9348328599.21%1.20%1.19%
740.8160948699.17%2.00%1.98%
860.0549355698.85%4.00%3.95%
90100.00%2.00%2.00%
10154.93434424.90%2.40%0.12%
11162.65366730.12%8.00%0.01%
12112.150918296.01%43.20%41.48%
13262.97869970.40%0.80%0.00%
   Current5.74%
   Goal74.58%

 

I have read a few threads and tired different solutions and I am not sure if there is an issue with the formula or if i have other issues like the model not being setup correctly.

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks! This looks very interesting and i will certainly explore it.

 

Two quick questions I have so far.

1) How does this handle dimensionality across the SuperGroups/Groups?

2) Lets assume that the score in the AttributeScores is a calculated measure, (example 5 users /40 total users), how does that effect the model?

 

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.