The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
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.
SOLVED

RENAME THE FIELD BASED ON DATES

Ronal_bal
8 - Asteroid

Hi,

 

I've many fields with dates as there header.

 

eg: attached screenshot.

Ronal_bal_0-1686665917661.png

 

I want create a formula in dynamic rename tool which will add the word 'actual' to the prefix of the dates which are less than today's date.

 

any help will be grate

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

Hey @Ronal_bal, this expression ought to do it:

 

DataNath_0-1686666359867.pngDataNath_1-1686666385540.png

 

IF [_CurrentField_] < DateTimeToday() THEN 'Actual_'+[_CurrentField_] ELSE [_CurrentField_] ENDIF
npariso
10 - Fireball

Hi @Ronal_bal here is the formula that will get you to your solution.

IF [_CurrentField_] < DateTimeNow()
THEN "Actual "+[_CurrentField_]
ELSE [_CurrentField_]
ENDIF

Labels
Top Solution Authors