Forum Discussion
StephenGW
4 years agoHelper II
Fiscal Week Reset
All, I found this code for the advanced editor on here somewhere but I struggle to pick it apart to the level I need. let // Enter the date in Advanced Editor for the first day of the earlie...
- 4 years ago
Hi StephenGW ,
Please check if this could meet your requirements:
FY = IF ( [Date] >= DATE ( [Year], 1, 3 ) && [Date] <= DATE ( [Year] + 1, 1, 2 ), "FY" & RIGHT ( [Year], 2 ), "FY" & RIGHT ( [Year] - 1, 2 ) )FW = RANKX ( FILTER ( FiscalWeek, FiscalWeek[FY] = EARLIER ( FiscalWeek[FY] ) ), [FW_Index], , ASC, DENSE )Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Icey
4 years agoCommunity Support
Hi StephenGW ,
Please check if this could meet your requirements:
FY =
IF (
[Date] >= DATE ( [Year], 1, 3 )
&& [Date]
<= DATE ( [Year] + 1, 1, 2 ),
"FY" & RIGHT ( [Year], 2 ),
"FY"
& RIGHT ( [Year] - 1, 2 )
)
FW =
RANKX (
FILTER ( FiscalWeek, FiscalWeek[FY] = EARLIER ( FiscalWeek[FY] ) ),
[FW_Index],
,
ASC,
DENSE
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.