ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
RESUELTAS

Trying to subtract one day from DateTimeToday

cstafford
Asteroide

I am trying to subtract one day from todays date (DateTimeToday) and not successful. I am using the formula tool to create two new date columns. One of which is labeled TODAY (DateTimeToday) and the second called YESTERDAY. However, I thought this formula would work but not having much luck

 

TODAY = DateTimeToday() 

 

YESTERDAY = [TODAY]<DateTimeAdd(ToDate(DateTimeNow()),-1,"days")

 

The output is ZERO.

1 RESPUESTA 1
cstafford
Asteroide

Figured this out:

 

DateTimeAdd([TODAY],-1,"days")

 

 

Etiquetas
Autores con mayor cantidad de soluciones