In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Duplicate rows when condition met

ppatane
8 - Asteroid

I am trying to split rows where the Warranty column is not 20%, and then duplicate that row and just add in the correct amount (second set of columns below.)  Any ideas would be welcome!

 

 

question.jpg

5 REPLIES 5
binu_acs
21 - Polaris

@ppatane what is the calculation of 20% based on Spent and Warranty? I mean how are you getting 20% based on Spent and Warranty?

ppatane
8 - Asteroid

Warranty / Spent

CoG
14 - Magnetar

One way is to Filter on %, calculate necessary warranty with Formula Tool, and then Union the records back in:

Screenshot.png

binu_acs
21 - Polaris

@ppatane One way of doing this

image.png

ppatane
8 - Asteroid

@binu_acs The sample file I provided was much more simplistic than what I am actually using, but your workflow gave me the path I needed, I am very grateful! Grazie!  I am now actually duplicating all the rows, filtering out the rows that are numbered 2 and have a correct 20%, and then will go to the rows that do not meet the 20% rule and do the necessary calculations I need on those rows and union it all back together. ☺

 

Labels
Top Solution Authors