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
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
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.