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
salman_ali
Helper IV
Helper IV

añadir fechas

Hola

salman_ali_0-1603465806162.png

si la fecha es hace 7 días, me gustaría añadir 7 días a la fecha de hoy

si la fecha es hace 6 días, me gustaría añadir 6 días a la fecha de hoy

así sucesivamente y así sucesivamente

si la fecha es hoy, entonces déjela como está

de lo contrario en blanco

pero mi fórmula no funciona,

me da espacios en blanco o la fecha de hoy

¿Razones?

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hola @salman_ali ,

Refiera a esto:

next_date = var diff = DATEDIFF('Table'[date],TODAY(),DAY)
return IF(diff>=0&&diff<=7,TODAY()+diff,BLANK())

V-lianl-msft_0-1603768267612.png

Saludos
Liang
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hola @salman_ali ,

Refiera a esto:

next_date = var diff = DATEDIFF('Table'[date],TODAY(),DAY)
return IF(diff>=0&&diff<=7,TODAY()+diff,BLANK())

V-lianl-msft_0-1603768267612.png

Saludos
Liang
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

amitchandak
Super User
Super User

@salman_ali , Parece una nueva columna como

Switch( True() ,
Consulta[Fecha del evento] > á today() -7 && Query[Fecha del evento] <-today() , today(),
blank()
)

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.