Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

How to change column header name (todays date) to a string like "Todays Sales"

Anjankumar2021
8 - Asteroid

I am a new user to Alteryx designer. not able to fix below exception. Every day this column header name changes to present date( todays date) . want to Change Column header (2022-12-12) name is todays date to "Today Sales". 

Please help me:)

Anjankumar2021_0-1670828744225.png

 

5 REPLIES 5
ShankerV
17 - Castor

Hi @Anjankumar2021 

 

You can use the Dynamic Rename to achieve your solution.

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @Anjankumar2021 

 

Please find the below solution for you.

 

ShankerV_0-1670830164028.png

 

ShankerV_1-1670830195428.png

 

IF Contains([_CurrentField_], datetimeformat(DateTimeToday(),"%d/%m/%Y")) THEN
"Today Sales"
ELSE [_CurrentField_]
ENDIF

 

Many thanks

Shanker V

 

 

ShankerV
17 - Castor

Hi @Anjankumar2021 

 

Input was:

ShankerV_0-1670830304951.png

 

 

Output as expected:

ShankerV_1-1670830324170.png

 

Designed the formula in such a way it will work dynamically for all the days you run in future,

IF Contains([_CurrentField_], datetimeformat(DateTimeToday(),"%d/%m/%Y")) THEN
"Today Sales"
ELSE [_CurrentField_]
ENDIF

 

If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.

 

Many thanks

Shanker V

binuacs
20 - Arcturus

@Anjankumar2021 One way of doing this

 

binuacs_0-1670838057370.png

 

Anjankumar2021
8 - Asteroid

@binuacs -Thank you so much for your help and its working fine to me 😊

Labels