In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Week into Months

UKPQ
5 - Atom

Hi All,

 

I am trying to convert weeks into months. I have weeks from 1 to 52 and I want them to convert into months from 1 to 12 but I condition if the weeks split into two months like week 5 is splitting into Jan & Feb in that case the week should fall into that month where more days are coming like for week 5  - 3 days are coming in jan month & 4 days are coming into feb so it should be considered into Feb month and same logic should be added to rest of weeks & month.

 

I am using this calculation right now - DateTimeFormat(DateTimeAdd(ToString([Year])+'-01-01',[Week (2023)]*7-1,'day'),'%m') but it is not giving me the desired result.

Looking forward for some positive response.

1 REPLY 1
ChrisTX
16 - Nebula
16 - Nebula

I think you'll need more than one formula.  Take a look at the field New Month in the attached workflow.

 

ChrisTX_0-1677760328354.png

 

 

Chris

Labels
Top Solution Authors