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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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