Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

inserting Record- Repeating Rows based on the Months

Simon1187
9 - Comet

Hi there, @atcodedog05 

 Qiu

 

I am trying to insert the number of rows below each row as the number of months and in invoice date get the date plus one month.

 

In the desirable file as an example, I explained that. Could you please let me know how can I achieve that? 

 

Thanks, 

 

 

6 REPLIES 6
Sebastiaandb
12 - Quasar

@Simon1187 

 

Sebastiaandb_0-1634625907932.png

 

Let me know if this helps! 

 

Greetings,

 

Seb

 

atcodedog05
22 - Nova
22 - Nova

Hi @Simon1187 

 

Here is my take on it.

 

Workflow:

atcodedog05_1-1634626693063.png

 

Hope this helps : )

 

Simon1187
9 - Comet

Hi @Sebastiaandb,

 

Thank you very much. Also, I want to get a column that shows the month from 0 to the end of the number. For example for the first row, I have 43 months. In another column, I need to show from 0 to 43.

 

Could you please help me? Thanks,   

atcodedog05
22 - Nova
22 - Nova

Hi @Simon1187 

 

Here is the updated workflow with month No.

 

Workflow:

atcodedog05_0-1634629932292.png

 

Hope this helps : )

 

Peachyco
11 - Bolide

Also, I want to get a column that shows the month from 0 to the end of the number. For example for the first row, I have 43 months. In another column, I need to show from 0 to 43.

 

You might use a Formula tool to introduce a new column with a formula that goes:

'0 to ' + [Months]

 

If Month is stored as a number, you'd have to cast it to a string, so your formula might instead be:

'0 to ' + ToString([Months])

Sebastiaandb
12 - Quasar

@Simon1187 

 

Including the month number! @atcodedog05 's solution is a bit more elegant i would say ;-). 

 

Greetings, 

 

Seb

Labels
Top Solution Authors