Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AndrewSandison
Frequent Visitor

Calculated Column function to Categorise Dates for an abnormal date period

I dont think this should be too difficult... essentially, I've got a list of projects with associated completion dates in one column and I want to add a calculated column which basically states the academic year they were completed in. Academic year running between Sep 1 and Aug 31. So for example, if the project was completed on April 1, 2020, then it would be part of the academic year ended 2020 and 2020 would be the calendar year value it should spit out. For a project completed on August 31, 2021, that would be part of the academic year ended 2021.

 

I was thinking of using a nested if statement but no luck with the syntax.  Any tips would be greatly appreciated.

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @AndrewSandison 

try this

NEwColumn =
IF (
    MONTH ( TableName[Completion_Date] ) < 9,
    YEAR ( TableName[Completion_Date] ) - 1,
    YEAR ( TableName[Completion_Date] )
)

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

View solution in original post

2 REPLIES 2
AndrewSandison
Frequent Visitor

Helpful. Thanks

AlB
Community Champion
Community Champion

Hi @AndrewSandison 

try this

NEwColumn =
IF (
    MONTH ( TableName[Completion_Date] ) < 9,
    YEAR ( TableName[Completion_Date] ) - 1,
    YEAR ( TableName[Completion_Date] )
)

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.