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

Cálculo Delta para fechas de fila duplicadas

hola a todos los cuerpos ...

Tengo esta tabla con filas duplicadas para la columna de fecha

Quiero calcular el Delta sólo para "Muertes"? como una medida

por favor ayúdame chicos

country date status values previos date

España04/16/2020395.570224334054Recuperado 04/15/2020
España04/16/2020395.570224334054Activo18494804/15/2020
España04/16/2020395.570224334054Delta_Confirmed730404/15/2020
España04/16/2020395.570224334054Muertes1931504/15/2020
España04/15/2020379.948293204569Recuperado 04/14/2020
España04/15/2020379.948293204569Activo17764404/14/2020
España04/15/2020379.948293204569Delta_Confirmed510304/14/2020
España04/15/2020379.948293204569Muertes1870804/14/2020
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@almohalhel1408 ,

Puede probar una nueva columna como

Diff á [values] - maxx(filter(Table,[country] ?earlier([country]) && [status] ?earlier([status]) && [date] ?earlier([date]) -1),[Value])

Esto se diferenciará entre el mismo estado

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hola

¿Qué hay en la tercera columna? No hay ningún título allí. Por favor,muestre el resultado exacto esperado .


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@almohalhel1408 ,

Puede probar una nueva columna como

Diff á [values] - maxx(filter(Table,[country] ?earlier([country]) && [status] ?earlier([status]) && [date] ?earlier([date]) -1),[Value])

Esto se diferenciará entre el mismo estado

muchas gracias fue como una magia 😙

puede dar una explicación de cómo funciona la fórmula

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.