Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Generating dates and other values

mcha54
8 - 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.

 

InputInput

OutputOutput

2 REPLIES 2
Thableaus
17 - Castor
17 - Castor

Hi @mcha54 

 

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,

mcha54
8 - Asteroid

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

Labels
Top Solution Authors