Forum Discussion
WillTickel
9 years agoFrequent Visitor
Fiscal Year Calculated Columns
I'm certain there's a more elegant (and correct) way of doing this, but I'm trying to create a calculated column which gives each date a corresponding fiscal year label e..g "FY16/17" The formula ...
- 9 years ago
Hi WillTickel,
Based on my test, the formula below should also work in your scenario.:smileyhappy:
Financial Year = VAR fy = IF ( MONTH ( 'Dates'[Dates] ) <= 3, VALUE ( FORMAT ( 'Dates'[Dates], "YY" ) ) - 1, VALUE ( FORMAT ( 'Dates'[Dates], "YY" ) ) ) RETURN CONCATENATE ( "FY", CONCATENATE ( fy, CONCATENATE ( "/", fy + 1 ) ) )Regards
v-ljerr-msft
9 years agoMicrosoft Employee
Hi WillTickel,
Based on my test, the formula below should also work in your scenario.:smileyhappy:
Financial Year =
VAR fy =
IF (
MONTH ( 'Dates'[Dates] ) <= 3,
VALUE ( FORMAT ( 'Dates'[Dates], "YY" ) ) - 1,
VALUE ( FORMAT ( 'Dates'[Dates], "YY" ) )
)
RETURN
CONCATENATE ( "FY", CONCATENATE ( fy, CONCATENATE ( "/", fy + 1 ) ) )
Regards
WillTickel
9 years agoFrequent Visitor
Many Thanks v-ljerr-msft. It worked perfectly!