community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Community v19.6

Looks aren't everything... But the latest Community refresh looks darn good!

Learn More
SOLVED

Generating dates and other values

Asteroid

Hi! I'm trying to generate some rows of dates, but also need to populate the week as well.

I start with "Week 0", the date range for the week, and then a date for how far back to go.

 

The generate rows tool works but doesn't let me update/create other fields.

 

2019-05-09_12-28-28.pngInput

2019-05-09_12-28-55.pngOutput

Alteryx Certified Partner
Alteryx Certified Partner

Hi @chanmar 

 

An idea would be adding a Multi-Row Formula Tool and updating the Week Field, grouping by ID according to the rule:

IF [Row-1:Start] != [Start] then [Row-1:Week] + 1

ELSE [Row-1:Week] ENDIF

 

Set Values of Closest Valid Row option must be checked as well.

 

Cheers,

Highlighted
Asteroid

Thank you! I got it to work with a combo of that Multi-Row formula tool and generate rows!

Labels