Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Select only current date time and within 1 hour

JDong
8 - Asteroid

Hello Team,

 

I have the below table where I am calculating Now and Now - 1 hour. Now in my output I want to show only records that are current. That is based on the current datetime and also select corresponding Now-1 hour.

 

ValueNowNow - 1 hour
10022.01.2020 08:3122.01.2020 07:31
10122.01.2020 08:3122.01.2020 07:31
10222.01.2020 08:3122.01.2020 07:31
10322.01.2020 08:3122.01.2020 07:31
10422.01.2020 08:3122.01.2020 07:31
10522.01.2020 08:3122.01.2020 07:31
10622.01.2020 08:3122.01.2020 07:31
10722.01.2020 08:3122.01.2020 07:31
10822.01.2020 08:3122.01.2020 07:31
10922.01.2020 08:3122.01.2020 07:31
11022.01.2020 08:3122.01.2020 07:31
11122.01.2020 08:3122.01.2020 07:31
11222.01.2020 08:3122.01.2020 07:31
11322.01.2020 08:3122.01.2020 07:31
11422.01.2020 08:3122.01.2020 07:31
11522.01.2020 08:3122.01.2020 07:31
19021.01.2020 06:4021.01.2020 05:40
19121.01.2020 06:4022.01.2020 05:40
18819.11.2019 05:3019.11.2019 04:30

 

Expected Outcome

 

ValueNowNow - 1 hour
10022.01.2020 08:3122.01.2020 07:31
10122.01.2020 08:3122.01.2020 07:31
10222.01.2020 08:3122.01.2020 07:31
10322.01.2020 08:3122.01.2020 07:31
10422.01.2020 08:3122.01.2020 07:31
10522.01.2020 08:3122.01.2020 07:31
10622.01.2020 08:3122.01.2020 07:31
10722.01.2020 08:3122.01.2020 07:31
10822.01.2020 08:3122.01.2020 07:31
10922.01.2020 08:3122.01.2020 07:31
11022.01.2020 08:3122.01.2020 07:31
11122.01.2020 08:3122.01.2020 07:31
11222.01.2020 08:3122.01.2020 07:31
11322.01.2020 08:3122.01.2020 07:31
11422.01.2020 08:3122.01.2020 07:31
11522.01.2020 08:3122.01.2020 07:31

 

Thanks

6 REPLIES 6
messi007
15 - Aurora
15 - Aurora

@JDong,

 

Please see below.

messi007_0-1611301874397.png

Attached the workflow,

 

Hope that helps,

 

Regards,

JDong
8 - Asteroid

Hi @messi007 

 

Thanks, but you see the last 2 rows. 

 

That should not be part of the data output.

Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,


I have prepared a workflow for you:

Emil_Kos_0-1611302126983.png

 

 

JDong
8 - Asteroid

Thanks @Emil_Kos 

 

 

I still see the last 2 rows which should not be part of the output. Any thoughts here ?

 

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

I think got an idea what you are looking for. You want to consider only recent now.

 

Output: same as expected

atcodedog05_0-1611302655187.png

Workflow:

atcodedog05_1-1611302677730.png

 

Hope this helps 🙂

Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,

 

I was under impression that we should use only 2 columns in order to check the values 😀

Labels