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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Dax Promedio

Hola a todos,

Tengo un conjunto de datos como se muestra a continuación:

Row_NumbergrantedamountWeightedGranted
14500001350000
2225000675000
3180000540000
41800001260000
5135000405000
6135000540000
7112500562500
890000450000
990000450000
1067500270000
11125001260000
290000405000
390000540000
4112500562500
5900001260000
690000405000
1112500540000
290000562500
3900001260000
4112500405000

Actualmente ya tengo una medida simple que divide una en la otra:

Promedio ponderado concedido á suma('Promedio'[WeightedGranted]) / suma('Promedio'[grantedamount])
Sin embargo, lo que quiero hacer ahora es la misma suma, pero por lo que no incluye números de fila del 1 al 3. Básicamente todos los valores que he resaltado en rojo por lo que cualquier cosa que es > 4 en adelante.
¿Alguien puede ayudar?
Gracias de antemano
3 REPLIES 3
amitchandak
Super User
Super User

@rsd1989 , Probar como

Promedio ponderado concedido :calcular(divide(sum('Average'[WeightedGranted]) , sum('Average'[grantedamount])), 'Average'[Row_Number] >3)

Promedio ponderado concedido á calcular(divide(sum('Average'[WeightedGranted]) , sum('Average'[grantedamount])), filter('Average','Average'[Row_Number] >3))

tex628
Community Champion
Community Champion

Prueba esto,

Granted Weighted Average = 
VAR Weighted = CALCULATE( SUM('Average'[WeightedGranted]) , 'Average'[RowNumber] > 3)
VAR Granted = CALCULATE( SUM('Average'[grantedamount]) , 'Average'[RowNumber] > 3)
Return
DIVIDE( Weighted , Granted , BLANK())

Connect on LinkedIn
Anonymous
Not applicable

Muchas gracias

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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