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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ZuzanaK
Frequent Visitor

weighted average

Hello,

 

I am struggling to create weighted average as this case is sort of unusual. Essentially, most of the campaigns have multiple strategies where I want to create uplift weighted average across strategies for each campaign respectively. Once I have that I would like to create uplift weighted average across all campaigns per each month. 

 

Any suggestions?

Thanks,

Z

 

Campaign Id

Strategy Id

Month

Budget

Booked Uplift

63f5ebc348636621c86a4666

63f5ec3ef39e1f27e771b634

March

50000

23

63f5ebc348636621c86a4666

63f5ed4e48636621c86a46d

March

20000

0

63f5ebc348636621c86a4666

63f77076f39e1f27e771b6d

March

9000

2

63f5ebc348636621c86a4666

63ff45ffd9d5047da9f9ddde

March

3000

11

638646475ff14c20d5065344

6389daa20720a332eb340se

March

10000

4

638646475ff14c20d5065344

6389e202ad090878732f8cjg

March

9000

68

638646475ff14c20d5065344

6389e25bad090878732f8cje

March

64000

240

638646475ff14c20d5065344

6389f187ad090878732f8cjd

March

1000

48

 

 

1 REPLY 1
lbendlin
Super User
Super User

Weighted uplift = 
var a = SUMMARIZE(Campaigns,Campaigns[Campaign Id],"bd",sum(Campaigns[Budget]),"ul",sumx(Campaigns,Campaigns[Budget]*Campaigns[Booked Uplift]))
return sumx(a,[ul])/sumx(a,[bd])

(you should use DIVIDE() to safeguard against division by zero)

see attached.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors
Top Kudoed Authors