Start Free Trial

Alteryx Designer Desktop Discussions

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

Convert Week Starting day to Every Friday

mehbpar
7 - Meteor

Hello 

I am trying to get the Start of week to be Friday and then for the rest of the week display the same date until a new week starts. I tried using Mod and datetime add but did not succeed

 

DATETIMEADD([Date],Mod(ToNumber(DateTimeFormat([Date],"%w"))+2,7) . ,'days')

 

Excel attached, Workflow will e greatly apricated.

 

Thank you in Advance 

2 REPLIES 2
TheOC
16 - Nebula
16 - Nebula

hey @mehbpar 

Theres bound to be a few easier ways, however i tried this way to see if it works:

TheOC_0-1647267439548.png



Basically in the bottom stream i am generating all dates from 2020 - 2025, and then mapping them based on what the previous fridays date was:

TheOC_1-1647267469311.png



Then i am joining with your dataset. This seems correct, however its not exactly what your desired output is. I think there is some mistakes in your desired output if im not mistaken.
Please see attached.

Cheers,
TheOC



Cheers,
TheOC
Connect with me:
LinkedIn Bulien
Qiu
21 - Polaris
21 - Polaris

@mehbpar 
I tried the approach with Multirow Tool and hope you dont mind I roll back your data to the nearest Friday.

0315-mehbpar.PNG

Labels
Top Solution Authors