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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors