Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Alteryx is here to help you solve your biggest data challenges. Read about the new Virtual Solution Center here.
SOLVED

DATE TRUNCATIOn

Highlighted
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

Highlighted
Alteryx Partner

Hi @razzy,

 

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

 

J

Highlighted
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

Alteryx Partner

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)

 

Highlighted
8 - Asteroid

More than perfect.

Thanks

Labels