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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Promedio ponderado en dax

Hola a todos, necesito una fórmula para determinar un promedio ponderado de la siguiente manera:

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

En Excel es simple, sólo uso una fórmula Sumproduct entre ambas columnas y la dividida entre la suma total del Volumen, pero necesito hacer exactamente lo mismo con DAX.

11.690,516,92/310,639.035,35 a 3,76%

Muchas gracias.

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@bsolano

Usar a continuación Medir:

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

Fowmy_0-1598301391673.png

________________________

¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂

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

@bsolano , Probar como

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

En caso de que necesite % , marque la columna como % de las herramientas de medida

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Fowmy
Super User
Super User

@bsolano

Usar a continuación Medir:

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

Fowmy_0-1598301391673.png

________________________

¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂

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
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors
Top Kudoed Authors