Alteryx Designer Desktop Discussions

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

Perpetual maturity date in "Date" field

wikus_struwig
5 - Atom

Hi,

 

My workflow includes calculating the time to maturity of capital instruments, however some instruments are perpetual (i.e. no maturity date). The preference would be to show the word "Perpetual", however t

 

The days to maturity column has been classed as a "Date" data type.

 

Thanks

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @wikus_struwig 

 

You can convert date to string in the select tool and add the words.

 

Or treat the date column as string from the beginning itself. 

 

Date function will still work on string columns provided its in format yyyy-mm-dd. And you can replace Null()'s will word "Perpetual"

 

Hope this helps 🙂

atcodedog05
22 - Nova
22 - Nova

Hi @wikus_struwig 

 

Here is a supporting workflow

 

Input: data metainfo

atcodedog05_0-1606988806805.png

Workflow:

atcodedog05_1-1606988853606.png

Hope this helps 🙂

 

 

 

wikus_struwig
5 - Atom

Very helpful indeed!

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @wikus_struwig 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any issues 🙂

Labels