Start Free Trial

Alteryx Designer Desktop Discussions

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

Query on updating table in Alteryx

kafka_u21
7 - Meteor

Hi,

 

I am stuck in a situation to solve this in Alteryx.

Basically the below is my current table

 

IDValueDateFlag
10Sep 25 2023Y
210Sep 26 2023Y
30Sep 18 2023Y
420Sep 19 2023Y
50Sep 11 2023Y
630 Sep 12 2023Y

 

Basically you can see all the value for Monday's are 0. i need to take the next day's value for all the dates when previous date is 0 & populate into a table as below with flag as N for the monday's record

IDValueDateFlag
10Sep 25 2023N
110Sep 25 2023Y
210Sep 26 2023Y
30Sep 18 2023N
320Sep 18 2023Y
420Sep 19 2023Y
50Sep 11 2023N
530Sep 11 2023Y
630Sep 12 2023Y
4 REPLIES 4
Yoshiro_Fujimori
15 - Aurora
15 - Aurora

Hi @kafka_u21 ,

For simplicity, I assumed the Monday data always has Tuesday data right below.

I hope it helps.

 

Workflow

Community_1215914.png

sparksun
11 - Bolide

Here is my solution:

1.jpg

flying008
15 - Aurora

Hi, @kafka_u21 

 

FYI.

 

录制_2023_12_04_11_49_06_457.gif

 

Input   
IDValueDateFlag
10Sep 25 2023Y
210Sep 26 2023Y
30Sep 18 2023Y
420Sep 19 2023Y
50Sep 11 2023Y
630Sep 12 2023Y
    
Output   
IDValueDateFlag
10Sep 25 2023N
110Sep 25 2023Y
210Sep 26 2023Y
30Sep 18 2023N
320Sep 18 2023Y
420Sep 19 2023Y
50Sep 11 2023N
530Sep 11 2023Y
630Sep 12 2023Y
kafka_u21
7 - Meteor

All the 3 solutions worked out. Thanks so much.

Labels
Top Solution Authors