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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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

Ahora se ve así:
wrong.png

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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
March PBI video - carousel

Power BI Monthly Update - March 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.