Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hola, necesito obtener el Days_Open medio entre el 01/04/2024 y el 30/07/2024. Mi cálculo me da el Days_Total de 44, pero ¿cómo puedo convertirlo en un promedio, por favor?
| Ubicación | Perrera | Start_Date | End_Date | Days_Open |
| Mánchester | 1 | 01/04/2024 | 10/04/2024 | 10 |
| Mánchester | 1 | 01/06/2024 | 14/06/2024 | 14 |
| Mánchester | 1 | 01/07/2024 | 20/07/2024 | 20 |
| Mánchester | 1 | 01/08/2024 | 20/08/2024 | 20 |
Hola @RichOB
Gracias por la respuesta de dharmendars007 .
También puedes probar la siguiente medida:
Date_Range =
CALCULATE(
AVERAGE('Table'[Days_Open]),
'Table' [Start_Date] >= DATE(2024,4,1),
'Table' [Start_Date] <= DATE(2024,7,30)
)
Salida:
Saludos
Yulia Xu
Si esta publicación ayuda, considere Acéptalo como la solución para ayudar a los demás miembros a encontrarlo más rápidamente.
Hola @RichOB ,
Para calcular el Days_Open promedio dentro del intervalo de fechas (del 01/04/2024 al 30/07/2024), puede modificar la medida del DAX dividiendo el total Days_Open por el número de filas que se encuentran dentro del intervalo especificado.
Average_Days_Open =
DIVIDIR(
CALCULAR(
SUM('Tabla'[Days_Open]),
'Tabla'[Start_Date] >= FECHA(2024, 4, 1),
'Tabla'[Start_Date] <= FECHA(2024, 7, 30)),
CALCULAR(
COUNTROWS('Tabla'),
'Tabla'[Start_Date] >= FECHA(2024, 4, 1),
'Tabla'[Start_Date] <= FECHA(2024, 7, 30)))
Si encuentra esto útil, márquelo como una solución que será útil para otros y sus felicitaciones / me gusta 👍 son muy apreciados.
Gracias
Dharmendar S
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.