Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |