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
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
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.

Top Solution Authors