Start Free Trial

Alteryx Designer Desktop Discussions

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

How to generate increment row based on value of another column

EJ_Alt
7 - Meteor

Hi Guys,

 

I would appreciate some help with this. I want to generate rows (increment date + 1) based on the value of another column. The value column in this case max of 50. if  >50 create a new row and increment date by 1.

 

e.g. A is split to 6 rows, B is left, C is split to 3, D is left, E is split to 2 rows (75 = 50+25) 

 

i tried using the generate rows tool. but hit a snag.

 

EJ_Alt_1-1600179804489.png

 

 

6 REPLIES 6
Ben_H
11 - Bolide

Hi @EJ_Alt,

 

I did it with generate rows and a couple of multi row formulas, I have a feeling there's a simpler way but this is what I did -

 

Ben_H_0-1600183962804.png

 

Ben_H_1-1600183981825.png

Hope that helps!

 

Regards,

 

Ben

 

 

EJ_Alt
7 - Meteor

Hi @Ben_H , thanks for your solution, its almost right. Is it possible to make the max value in the value column no more than 50? see my final output in the original question

 

e.g. Person A will be (300/50), 6 rows of 50, Person B is OK, Person C is 3 rows of 50, Peron D is OK, Person E would be 1 row of 50 and 1 row 25.

JWS
Alteryx Alumni (Retired)

@EJ_Alt let me know if this is the solution that you are looking for?

JWS_0-1600185992410.png

 

paulfound
11 - Bolide

Hi @EJ_Alt 

 

Nice little challenge this.

 

PaulFound_0-1600186475776.png

 

EJ_Alt
7 - Meteor

Hi @JWS ..It worked thanks for your solution

EJ_Alt
7 - Meteor

Hi @paulfound ..your solution also worked. Thanks

Labels
Top Solution Authors