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.
解決済み

Formula for dynamic dates

HannahSwain7
メテオール

Hi! 

 

I have a data set with a number of columns containing various dates. I want to create a formula which nulls any dates with are more than 3 years old. The workflow will run regularly so the formula needs to be dynamic. How would I do this please?

 

Many thanks,

Hannah

2件の返信2
aatalai
オーロラ

@HannahSwain7  try this conditional formula

 

If  [datefield] < datetimeadd(datetimenow(),-3,"year") then null() else [datefield] endif

Deano478
クエーサー

Hey @HannahSwain7 can you throw some sample dates in here so we can test on them?

ラベル
トップのソリューション投稿者