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

Bandera para mostrar el año fiscal actual y anterior

Hola

Tengo una columna del año financiero que produce el año financiero del registro que almacenamos (por ejemplo, FY21/22)

El ejercicio se extiende del 1 de septiembre al 31 de agosto.

Lo que me gustaría, si es posible, es tener una bandera que genere "fy actual" y "fy anterior" en función del rango de fechas anterior.

Por lo tanto, a partir de hoy, FY20/21 mostrará "fy anterior" y FY21/22 mostrará "fy actual".

Y cuando pasemos al 1 de septiembre de 2022, eso se mostrará como "fy actual" y FY21/22 cambiará para mostrar "fy anterior" y FY20/21 se mostrará como "en blanco".

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Necesitamos 2 marcas de fecha: start_of_currentFY y start_of_previousFY para definir la bandera

medida start_of_currentFY =

si (MES(HOY()) en {9,10,11,12}, FECHA(AÑO(HOY()),9,1),FECHA(AÑO(HOY())-1,9,1))
medida start_of_previousFY
si (MES(HOY()) en {9,10,11,12}, FECHA(AÑO(HOY()-1),9,1),FECHA(AÑO(HOY())-2,9,1))
luego hacemos comparación para definir la bandera en la tabla de datos:
indicador de columna = if ( Fecha > = start_of_currentFY, "CurrentFY",if ( Fecha > = start_of_previousFY,"FY anterior", en blanco()))

Muchas gracias por su ayuda, realmente lo aprecio.

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.