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
amaleranda
Post Patron
Post Patron

Una etiqueta para los últimos tres ejercicios australianos

Hola Gurus,

Necesito una columna calculada en mi tabla de caladores para etiquetar los últimos tres ejercicios (Australia) de una fecha actual

Etiqueta FY

2019/2020 Sí

2018/2019 Sí

2017/2018 Sí

2016/2017 No

2015/2016 No ............. así y así cuarto.

cualquier ayuda estaría muy apreciada.

Gracias

1 REPLY 1
amaleranda
Post Patron
Post Patron

Me puse a trabajar con la siguiente soulción, funciona bien como esperaba. Si alguien tiene algo más óptimo y menos cody :).

"Last Five FY",
VAR __currentfy ?
SI (
MES ( HOY () ) <-6,
VALOR ( FORMATO ( HOY (), "AAAA" ) ),
VALOR ( FORMATO ( HOY (), "AAAA" ) ) + 1
)
VAR __visiblefy ?
SI (
MES ( [Fecha] ) <-6,
VALOR ( FORMAT ( [Fecha], "AAAA" ) ),
VALOR ( FORMAT ( [Fecha], "AAAA" ) ) + 1
)
DONDE __yeardiff ?
(__currentfy - __visiblefy)
SER __result ?
IF(AND(__yeardiff > á 0,__yeardiff <5 ),"Sí","No")
devolución
__result

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.