Forum Discussion
JulianTobon
9 years agoHelper I
Function To Calculate Fiscal Week
Hi all, I want to calculate the number of weeks based on the date of sale, I used the formula: week = WEEKNUM(Scorecard[SalesDate],2) This works very well but not for what I need, Due to work ...
Vvelarde
9 years agoCommunity Champion
- Vvelarde9 years agoCommunity Champion
Yes, the formula need some adjustment.
WeeKFY2 = VAR WeekStartinFY = WEEKNUM ( DATE ( Calendario[FiscalYear], 7, 1 ); 2 ) RETURN IF ( Calendario[WeeK] < WeekStartinFY, WeekStartinFY + Calendario[WeeK], Calendario[WeeK] - WeekStartinFY + 1 )Now Appears.But don't know if this the solution to Julian's Question.
- Sean9 years agoCommunity Champion
- JulianTobon9 years agoHelper I
We are on the right track, but as you can see an error is generated at the calendar year change. For example is January 1 should be week 27 and the formula detects it as 28 and changes the next day to 29.
- JulianTobon9 years agoHelper I
Sean No :smileysad:
- gimpexe8 years agoFrequent Visitor
any development on this? ive got the same issue.
trying to create a column for Fiscal Week 1-53, starting on July 1st.