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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Weighted average in dax

Hi all, I need a formula to determined a weighted average as follows:

VolumeYield
152,549,311.483.00%
122,854,908.94.50%
35,234,814.974.50%
VolumeSumProduct
310,639,035.3511,690,516.92

In excel is simple, I just use a Sumproduct formula between both columns and the divided it between the total sum of the Volume, but I need to do the exact same thing with DAX.

=11,690,516.92/310,639,035.35 = 3.76%

 

Thanks a lot.

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@bsolano

Use Measure below:

W Avg = 
DIVIDE(
    SUMX(
        'Table',
        'Table'[Volume] * 'Table'[Yield]
    ),
    SUM('Table'[Volume])
)

Fowmy_0-1598301391673.png

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click the Thumbs-Up icon if you like this answer 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try like

divide(sumx(Table,Table[Volume]*Table[Yield]),sum(Table[Volume))

 

In case you need % , mark column as % from measure tools

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Fowmy
Super User
Super User

@bsolano

Use Measure below:

W Avg = 
DIVIDE(
    SUMX(
        'Table',
        'Table'[Volume] * 'Table'[Yield]
    ),
    SUM('Table'[Volume])
)

Fowmy_0-1598301391673.png

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click the Thumbs-Up icon if you like this answer 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors