Free Trial

Alteryx Designer Desktop Discussions

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

How to filter the last end date for each group and display the datediff

NishiR27
5 - Atom

Any suggestions please

 

MoreIDSNoIdIdEFF_LOW_DTMin_EFF_HI_DTMax_DateDiff in Days
444422221110/28/2014 0:008/13/2018 0:001385
44442222118/13/2018 0:0012/31/2099 0:0029725
44442222118/13/2018 0:0012/31/2099 0:0029725
44442222118/13/2018 0:008/13/2018 0:000
444422222210/28/2014 0:0012/31/2099 0:0031110
44442222337/15/2015 0:0010/2/2020 0:001906
444422223310/2/2020 0:005/29/2024 0:001335
44442222335/29/2024 0:006/14/2024 0:0016
44442222336/14/2024 0:0012/31/2099 0:00279
3 REPLIES 3
shancmiralles
11 - Bolide

hi! what do you mean each group? do you mean ID (column) group? and what do you mean by "last end date"? you have 2 columns for dates , do you mean the most recent date for the 2 columns? it would be great if you can provide what are the records/rows that you need to show out of the given input you provided above. thanks! @NishiR27 

flying008
15 - Aurora

Hi, @NishiR27 

 

FYI.

 

DateTimeDiff(DateTimeParse([Min_EFF_HI_DT],'%m/%d/%Y %H:%M'),DateTimeParse([EFF_LOW_DT],'%m/%d/%Y %H:%M'),'day')

 

录制_2024_10_26_09_07_59_100.gif

NishiR27
5 - Atom

@flying008 - Thank you so much! This worked as expected.

Labels
Top Solution Authors