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
daniel_1986
Frequent Visitor

Promedio entre fechas

hola me pueden ayudar, 

tengo que calcular el total de registros cargados entre 2 fechas,

 

ejemplo 

en mi tabla tengo 

 
 

tabla1.png

 

lo que nesecito mostrar en PB es el promedio entre 1 fecha y el dia anterior.

tabla2.png

en resumen en el dia 24/9 ingresaron 2 registros y el 23/9 ingresaron 3 registros, como resultado, el promedio para el dia 24 es 2,5 registros.

 

2 REPLIES 2
amitchandak
Super User
Super User

@daniel_1986 , Try a new column like

countx(filter(Table, ([fecha] = earlier([fecha])-1) || ([fecha] = earlier([fecha]))),[registro])/2

funiona pero no cuando se le selecciona un filtro adicional, nesecito que sea dinamica y no fija por dia 😞

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.

Top Solution Authors