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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cwfmoore
Regular Visitor

Change a Year to Academic Year String eg. 2016 -> 2016/17

I have a date table I use for an academic organisation.  The academic year application process starts on October 1st.

 

I would like a text column which displays the appropriate academic year in this format "2016/17".

 

To clarify 2016/17 would run from 1st October 2016 to 31st September 2017 then increment up to 2017/18 from the 1st October 2017 and so on.

 

My date table is imaged below, so far I have only added 1 to the year value, but I have no idea how to get the result I want.

 

Any assitance would be greatly appreciated.

 

 

power_bi_date_table.png

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

Use below formula

= Text.From(if [Month Num]>=10 then [Year] else [Year]-1)&"/"&Text.End(Text.From(if [Month Num]>=10 then [Year]+1 else [Year]),2)

View solution in original post

2 REPLIES 2
cwfmoore
Regular Visitor

Perfect, thanks for your help! 😁

Vijay_A_Verma
Super User
Super User

Use below formula

= Text.From(if [Month Num]>=10 then [Year] else [Year]-1)&"/"&Text.End(Text.From(if [Month Num]>=10 then [Year]+1 else [Year]),2)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors