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
PshemekFLK
Helper IV
Helper IV

Weighted Average between 2 calculate measures

Hello, 

 

I have 2 measures:

Measure1 = CALCULATE([Measure2],ALL(Table1),Table4[Column1]>5)

Measure3 = CALCULATE(MAXX(Table2,RELATED(Table3[Column2])),ALL(Table4))

 
I try to create a weighted average:
 
DIVIDE(SUMX(Table4,Measure1*Measure3),Measure1))
 
but it just results in SUM of Measure 3
 
What am I doing wrong?
2 REPLIES 2
VahidDM
Super User
Super User

Hi @PshemekFLK 

 

There is an issue with the structure of your Measure3; you added two expressions, and why did you add ALL(Table4)?

How to Get Your Question Answered Quickly

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos

Hi @VahidDM 

 

Sorry, I put the measure incorrectly initially. Now it's correct in the initial post. Measure 3 is also a CALCULATE

 

I need ALL in Measure 3 because it should ignore the filters on Table4.

 

I'm starting to think that I'm missing KEEPFILTERS somewhere since introducing SUMX in the weighted average measure totally ignores the filters added in Measure 1 and Measure 3. Am I on the right track?

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.