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
Theamitbhardwaj
Regular Visitor

FUNCIÓN DATEADD DAX

Estoy enfrentando un desafío mientras uso la función DAX "DATEADD". A continuación se muestra la función que estoy usando

DATEADD('This Month'[Hoy].[ Fecha],3,Mes).

La columna "'Este mes'[Hoy]" contiene la fecha como "21 oct 2020", NumberOfIntevals-3, Intervalo - Mes

Cuando uso NumberOfIntevals como 1 me devuelve la fecha como "21 Nov 2020" así que no hay problema hasta ahora

Cuando uso NumberOfIntevals como 2 me devuelve la fecha como "21 dic 2020" de nuevo ningún problema

Pero cuando uso NumberOfIntevals como 3 me devuelve "Blank" ningún valor ni error.

Ayuda de Pls si ya tiene una solución

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Theamitbhardwaj , Dateadd requiere una fecha continua en la tabla. Así que si la fecha no está presente, no dará la respuesta correcta

se puede utilizar la fecha en lugar de dateadd como

Añadir cuatro meses

=

var _date á today()

devolución

date(año(_date), Month(_date)+4, day(_date))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Theamitbhardwaj , Dateadd requiere una fecha continua en la tabla. Así que si la fecha no está presente, no dará la respuesta correcta

se puede utilizar la fecha en lugar de dateadd como

Añadir cuatro meses

=

var _date á today()

devolución

date(año(_date), Month(_date)+4, day(_date))

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.