Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Fill in a column

romanyurek
5 - Atom

I have a current workflow that feeds into an Excel file used for auditing purposes. We gather data files twice a day at 12AM and 10AM. I am trying to get the excel file output to check a 12AM column or 10AM column based on either a Q&A or by looking at the timestamp (If between 12AM and 9AM it pus an "x" in the 12AM column. If between 10AM and 12PM it puts an "x" in the 10AM column).

 

I have been stuck on this and cannot find the right tool or function to make this happen.

5 REPLIES 5
DavidP
17 - Castor
17 - Castor

Hi @romanyurek 

 

If I understand correctly, the position of X depends on what time the workflow runs?

 

In that case, you can simply use 2 if statements, like this:

 

DavidP_0-1618439755649.png

 

Qiu
21 - Polaris
21 - Polaris

@romanyurek 
Hope this is what you need.

0415-romanyurek.PNG

romanyurek
5 - Atom

Thank you. This worked partially. But when I RUN it only puts an "X" in the 12AM column and leaves the 10AM column blank. I am playing around with this now, but any advice would be helpful.

Qiu
21 - Polaris
21 - Polaris

@romanyurek 
I mocked the input data as you can see.

It will be good if you could provide us some sample from your real input, then we can know where is the problem.

romanyurek
5 - Atom

Actually I had to combine portions of each of your input. The reason the 10AM "X" would not show is because I was putting just greater than 10. What I needed to do was greater than or equal to.

 

That is working great now and I appreciate both of your input.

Labels
Top Solution Authors