Free Trial

Alteryx Designer Desktop Discussions

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

Using Generate Rows Tool to split rows that have positive and negative numbers

Wixard
8 - Asteroid

 

Hi all,

 

I am trying to split a row based on a number in that row (Units in the example below) - so know I should be using the Generate Row tool. I'm stuck because there are some negative numbers that I would like to split.

 

Would someone be able to help with the correct configuration? 😊

 

 

Original Table

 

CompanyProductSpecificationUnits
ACB IncChips18nm-2
AcmePhones5.6in3

 

 

 

Desired Output - split the units to +1 / -1

 

CompanyProductSpecificationUnits
ACB IncChips18nm-1
ACB IncChips18nm-1
AcmePhones5.6in1
AcmePhones5.6in1
AcmePhones5.6in1

 

 

Thanks in advance!

 

 

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @Wixard 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1634897223385.png

 

1. Using generate row tool to generate rows equal to units number.

2. Using formula tool to set unit to 1 or -1 based on the original unit.

 

Hope this helps : )

 

Wixard
8 - Asteroid

 

This is perfect - thank you!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Wixard 

Cheers and have a nice day!

Labels
Top Solution Authors