Forum Discussion
Establishing academic year
- Anonymous5 years ago
Please create the following calculate column to get the expected result.
Year = IF([Date].[MonthNo]<=6&&[Date].[Day]<=31,CONCATENATE([Date].[Year]-1,CONCATENATE("-",RIGHT([Date].[Year],2))),CONCATENATE([Date].[Year],CONCATENATE("-",RIGHT([Date].[Year]+1,2))))Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
JamesUhlenkamp , the expected output is not very clear. Please refer
Creating Financial Calendar - From Any Month
https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calendar-1-5-Power/ba-p/1187441
amitchandak, does this help?
Do I need to create a calendar table to define the displayed Desired Outcome column? Note: in the example, all the dates are in May or December, but the reality is that different tables (such as retention or assessment) will have dates in every month.
- Samarth_185 years ago
Community Champion
Hi JamesUhlenkamp ,
You can create a column with below code:-
Column = VAR years = YEAR ( 'Table (6)'[Graduation date] ) RETURN YEAR ( 'Table (6)'[Graduation date] ) - 1 & "-" & INT ( FORMAT ( 'Table (6)'[Graduation date], "YY" ) )output:-
Thanks,
Samarth