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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Sania-F
Resolver I
Resolver I

calculated weighted average after applying filter on 4 different columns based on a value

Hi Everyone,

 

calculated weighted average after applying filter on 4 different columns based on a value.

 

sample columns A, B,C,D,E,F. I have to do something as below :

I need to calculate product = A* B
Then I need to Sum(product) /sum (B)

and filter this based on some conditions

select sum(product)/sum(B) from

(

 

select DISTINCT  A

,B

,C

,E

,A*B as product

from 

Table

where C in ('value1','value 2')

and Month in ('APR-21')

and D in ('1')

and F in ('v1','v2','v3')

and E in ('value 1','value2')

 

) weighted-average

#calculate #filter #sum #average #weightedAverage #powerBI #DAX

0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.