Alteryx Designer Desktop Discussions

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

Generating dates between monday and sunday

wonka1234
10 - Fireball

Hi, 

 

I am trying to generate every weekday using the end of week and beginning of week.

However when I summarize my data at the end of the year I am seeing Louis Stevens not having dates but Matt Smith having dates available.

 

wonka1234_0-1685385034487.png

 

I would expect them both to have equal number of dates. As you can see only Matt Smith has late december dates.

 

see attached workflow.

2 REPLIES 2
geraldo
13 - Pulsar

@wonka1234 

 


The problem is in the formula of the mult row tool.

When you change the name to Matt the formula is wrong.

 


The correct formula might be this:

IIF(isNull([Row+1:date] ) or [Staff Name] != [Row+1:Staff Name],DateTimeTrim([date],'LastOfMonth'),DateTimeAdd([Row+1:date],-1,'day'))

 

binuacs
20 - Arcturus

@wonka1234 You need to select the group by option for the Staff Name field

 

binuacs_0-1685437595531.png

 

Labels