Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

Add a new row if condition is correct

Inactive User
Not applicable

Hi guys,

 

I have the following problem, that I want to add an existing row to the database after true condition. The condition is if the database has values, then add the row but if is empty, don't add. 

I am a newbie in Alteryx and have not so much experience. Thank you for your help.

5 REPLIES 5
grazitti_sapna
17 - Castor

Hi @Inactive User , You can read the data from database and then join it with your input data on the basis of columns which you want to check values for and then load the data to your target database.

Sapna Gupta
Inactive User
Not applicable

@grazitti_sapna and how does it look like? Because I have no idea how I can do this. And unfortunately, I don't know if your solution will help me. It does not sound what I need 

Christina_H
14 - Magnetar

What about something like this?  It counts how many records are in the main data set, appends that to the extra row, then filters it out if the count is zero.

Christina_H_1-1666173385682.png

 

 

gyang3
Alteryx Alumni (Retired)

@Inactive User it'd be helpful if you could provide a sample or snapshot of your input and what you're trying to accomplish.

Inactive User
Not applicable

Thank you @Christina_H. That solves my problem :) 

Labels