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

DATE TRUNCATIOn

razzy
8 - Asteroid

I am trying to write a formula based on every specific SUBJECT ID that have serial events that are at least six months apart on RECORDED TIME. Events are termed ST_DEV.

Attached is an excel sheet of the data.

THANKS

4 REPLIES 4
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @razzy,

 

Can you show an example of the output you're looking to achieve?

 

J

razzy
8 - Asteroid

Thanks for responding ,

So for instance from the worksheet SUBJECT ID 13 has two serial events :

Dates 5/25/18 and 9/19/2019. I want to create a column that outputs the number of months apart for every specific SUBJECT ID with serial events recorded dates in months. if only one date for a SUBJECT ID then 0,

Thanks

reply_mueller
8 - Asteroid

Hi @razzy,

 

I'm still not one hundered percent sure if this is the solution you're looking for, but with this method you will get the maximum difference of months between two events for each subject id. You can then filter out those that are > 6.

 

If I did not get this question correctly, please refine it a bit more.

 

AlteryxGui_2020-02-07_17-58-51.png

 

Please let me know if this helps.

 

Best,

 

Johannes

(Blue Reply)

 

razzy
8 - Asteroid

More than perfect.

Thanks

Labels