Hello,
Has anyone had luck on calculating the week number from a date?
example: 2016-02-01 is the 6th week of the year
Appriciate anyones help with this.
Thank you.
Is this what you're looking for?
In the Formula tool, use the expression DateTimeFormat(<date/time>, "%U")
From the Date Time Functions (http://help.alteryx.com/9.5/Reference/DateTimeFunctions.htm)
%U
This will return the week number, as 00 – 53, with the beginning of weeks as Sunday.
%W
This will return the week number, as 00 – 53, with the beginning of weeks as Monday.
[ removing as errant ]
Thanks Phillip,
I had tried that however still wasn't populating correctly so I was looking for another way to calculate it.
Thank you
hello team,
when fiscal weeks, Quarter,sales_amount are there how can we get average of sales-amount with respect to number of fiscal weeks updated in that quarter
example : Q1=FW1 to FW13
Q1=sum(sales_amount)/FW count = 331/13=25.461.
consider Q2 and Q3 as above
now coming to Q4 as this quarter is in progress we had only count of FW as 11
based on next week this count gets increment
we need the above calculation similar to this dynamically.
Thanks.