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
Syndicate_Admin
Administrator
Administrator

obtener valor de la fila Anterior

Necesita una función o lógica para leer una fila anterior, por ejemplo:

Fotos.png

¿Cómo puede ver ¿Cómo puedo ver ¿Necesito es resumir el registro anterior y construir una nueva columna con esos valores

Apreciamos su ayuda!!

1 ACCEPTED SOLUTION

@Rigoleto

Creo que esta columna calculada funcionaría.

Consulte también el archivo de ejemplo adjunto

Columna calculada á
VAR PreviousRow ?
    TOPN (
        1,
        FILTER (
            Table1, Table1[Month] < EARLIER ( Table1[Month] )
                && Table1[Empleado] - ANTERIOR ( Tabla1[Empleado] )
        ),
        [Mes], DESC
    ) VAR
PreviousValue ?
    MINX ( PreviousRow, [Sales] )
RETURN
    Table1[Ventas] + PreviousValue

gvc.png


Regards
Zubair

Please try my custom visuals

View solution in original post

23 REPLIES 23

@Zubair_Muhammad

¿Podemos reconstruir esto fácilmente para obtener valor de la PRIMERA fila existente? Lo intenté por MIN etc. en mi caso tengo fecha, no solo mes. Así que quiero obtener valor con la primera cita.

@Zubair_Muhammad ¡Muchas gracias!

Zubair_Muhammad
Community Champion
Community Champion

@Rigoleto

Prueba esta Columna

Columna de
VAR PreviousRow ?
    TOPN (
        1,
        FILTER ( Table1, Table1[Columna A] < EARLIER ( Tabla1[Columna A] ) ),
        [Columna A], DESC
    ) VAR
PreviousValue á
    MINX ( PreviousRow, [Columna B] )
RETURN
    Tabla1[Columna B] + PreviousValue

Regards
Zubair

Please try my custom visuals

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.