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
Syndicate_Admin
Administrator
Administrator

Columna Año personalizado entre fechas

Hola

Necesito crear una columna de año personalizada basada entre fechas

Entre

01/09/2014 y 31/08/2015 luego 14/15

01/09/2015 y 31/08/2016 luego 15/16

01/09/2016 y 31/08/2017 luego 16/17

01/09/2017 y 31/08/2018 luego 17/18

01/09/2018 y 31/08/2019 luego 18/19

01/09/2019 y 31/08/2020 luego 19/20

01/09/2020 y 31/08/2021 luego 20/21

01/09/2021 y 31/08/2022 luego 21/22

01/09/2022 y 31/08/2023 luego 22/23

¿Alguna idea de cuál sería la sintaxis correcta para usar en esto, por favor?

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@thomas_2583 , Pruebe una nueva columna como

if(month([Date]) >=9 , format([Date], "YY") & "" & ((format([Date], "YY")*1)+1) ,((format([Date], "YY")*1)-1) & "" & format([Date], "YY") )

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.