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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Restar el valor de fila actual del valor de fila anterior

Hola a todos,

Tengo un informe que muestra el resumen de ventas por el día 1 y esto se puede filtrar por otros valores como el representante de ventas, la región y el número de semana.

Sin embargo, quiero presentar mis datos para que muestren la diferencia entre las ventas del día anterior y el día actual.

Tenga en cuenta que no hay ningún campo de fecha en la tabla, solo número de día y número de semana.

Día #Importe de ventasDiferencia
11000
21500500 (Cantidad del día 2 - Importe del día 1)
32100600
4 2000-100
51500-500

para la cortadora de la semana: tenemos valores como

- Semana 1, Semana 2, Semana 3, etc.

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hola @tobz ,

Hay muchos hilos para el problema similar en esta comunidad:

https://community.powerbi.com/t5/Desktop/DAX-Subtract-previous-row-from-current-row/m-p/570742

Gracias

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

1 REPLY 1
Pragati11
Super User
Super User

Hola @tobz ,

Hay muchos hilos para el problema similar en esta comunidad:

https://community.powerbi.com/t5/Desktop/DAX-Subtract-previous-row-from-current-row/m-p/570742

Gracias

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
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