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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
sebastianqc
Helper I
Helper I

Problema con las columnas repetidas del jueves al miércoles

Hola, tengo un problema:

Los datos 452.66 no se repiten como los datos anteriores

Necesito que los datos se repitan de jueves a miércoles y en el campo de la primera imagen toma el valor de la anterior

Jueves

Por favor, ayúdame

Thanks
Sebastián

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @sebastianqc,

¿Así que quieres usar el siguiente valor para reemplazar el actual? Si este es un caso, puede modificar la fórmula para usar 'next value' para reemplazar 'anterior':

Formatted =
VAR _prev =
    LOOKUPVALUE ( T2[Value], T2[Index], [Index] - 1 )
VAR _next =
    LOOKUPVALUE ( T2[Value], T2[Index], [Index] + 1 )
VAR _status =
    IF ( [Value] = _prev || [Value] = _next, 1, 0 )
RETURN
    IF ( _status <> 1, _next , [Value] )

saludos

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

HI @sebastianqc,

Parece que los registros de datos de origen contienen filas de excepción que rompen el estado 'continuar' y desea dar formato a estos registros de excepción con los siguientes registros para solucionar este problema, ¿verdad?

Si este es un caso, puede hacer referencia a la siguiente columna calculada:

Formatted =
VAR _prev =
    LOOKUPVALUE ( T2[Value], T2[Index], [Index] - 1 )
VAR _next =
    LOOKUPVALUE ( T2[Value], T2[Index], [Index] + 1 )
VAR _status =
    IF ( [Value] = _prev || [Value] = _next, 1, 0 )
RETURN
    IF ( _status <> 1, _prev, [Value] )

17.png

Aviso: esta fórmula requiere un campo de índice, si la tabla contiene un campo de valor único (número, tipo de fecha), puede usarlo para reemplazar

[Index] parte.

saludos

Xiaoxin Sheng

@v-shex-msft Gracias por tu recomendación, pero no funcionó para mí.

Ahora se ve así:
wrong.png

Anonymous
Not applicable

HI @sebastianqc,

¿Así que quieres usar el siguiente valor para reemplazar el actual? Si este es un caso, puede modificar la fórmula para usar 'next value' para reemplazar 'anterior':

Formatted =
VAR _prev =
    LOOKUPVALUE ( T2[Value], T2[Index], [Index] - 1 )
VAR _next =
    LOOKUPVALUE ( T2[Value], T2[Index], [Index] + 1 )
VAR _status =
    IF ( [Value] = _prev || [Value] = _next, 1, 0 )
RETURN
    IF ( _status <> 1, _next , [Value] )

saludos

Xiaoxin Sheng

sebastianqc
Helper I
Helper I

Copio las imágenes de mi problema y DAX

parid_total.pngProblemafechas.pngimagen2.pngimagen3.pngimagen4.pngimagen5.pngimagen6.pngimagen7.pngimagen8.pngimagen9.pngimagen10.pngimagen11.png

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Kudoed Authors