Start Free Trial

Alteryx Designer Desktop Discussions

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

Generate New Rows Based on Condition

michaellee_work
5 - Atom

Hi, I would like to generate the new rows based on the condition below. For every month, every person need to have 3 categories, which is internal, external and others. For those new rows which are just generated, should just put 0 in Hours. The second table is the ideal result and the bold rows are the result of new rows.

 

Thanks in advanced.

 

NameDateCategoryHours
Michael1-6-2020Internal10
Michael1-6-2020External5
Michael1-7-2020Internal15
Michael1-8-2020External25
William1-7-2020External10

 

NameDateCategoryHours
Michael1-6-2020Internal10
Michael1-6-2020External5
Michael1-6-2020Others0
Michael1-7-2020Internal0
Michael1-7-2020Internal15
Michael1-7-2020Others0
Michael1-8-2020External25
Michael1-8-2020Internal0
Michael1-8-2020Others0
William1-7-2020External10
William1-7-2020Internal0
William1-7-2020Others0
2 REPLIES 2
markcurry
12 - Quasar

Hi @michaellee_work have a look at the attached workflow, hopefully it gives you what you are after...

michaellee_work
5 - Atom

Thanks Mark! This is the result i wanted!

 

Labels
Top Solution Authors