ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Find week ending on sunday

BosKev
Asteroide

Hey All,

 

I got a list of Employees with a date [field] with over 2 years date (daily). I used  DateTimeFormat([Date], "%W") to get the week number ending Sunday, I would like a new field that will display the actual date ended on Sunday

 

for example 1/24/2021, week = 3,

 

Desired result ->week ending date = 1/24/2021.

 

I tried generate rows function but with millions of records its slowing down the workflow.

 

Thanks.

4 RESPUESTAS 4
randreag
Bólido

hi @BosKev 

 

You could calculate just the dates for sundays 

 

Something like the example

BosKev
Asteroide

Thanks, forgot to mention there are several metrics fields I'm using the summarized tool to sum up to  the weekly total.

 

Weekend date would ideally be attached after the sum function...I would loose the date field. end result would be something like below:

 

Year; Week; Week End Date; metric 1,2,3

 

randreag
Bólido

 

well, I'm not sure if I undestand correctly but you can join after the summarize by the week already calculated

 

 

BosKev
Asteroide

Thanks!

Etiquetas
Autores con mayor cantidad de soluciones