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

El año pasado vs este año

Hola
Tengo esta función buscando para 2021 y 2020, ¿de todos modos puedo usar esto y hacerlo para buscar Last Year Vs este año? ¿En lugar de actualizar esto cada año? Por favor, avise.
CALCULAR(
[in situ %nuevo],
HEA_DATE_Detail[Año] = 2021
)
-
CALCULAR(
[in situ %nuevo],
HEA_DATE_Detail[Año] = 2020
)
2 ACCEPTED SOLUTIONS
Syndicate_Admin
Administrator
Administrator

AÑO ( HOY () ) y AÑO ( HOY () ) -1 podrían ser reemplazos directos en lo anterior.

View solution in original post

Syndicate_Admin
Administrator
Administrator

¿ @sraj

Use DATEADD en el contexto de filtro de sus fórmulas en lugar de HEA_DATE_Detail[Año] = 2021

Iike

FECHAADD(HEA_DATE_Detail[FECHA],0, AÑO) para este año
Y
DATEADD(HEA_DATE_Detail[FECHA],-1, AÑO) para el año pasado

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

¿ @sraj

Use DATEADD en el contexto de filtro de sus fórmulas en lugar de HEA_DATE_Detail[Año] = 2021

Iike

FECHAADD(HEA_DATE_Detail[FECHA],0, AÑO) para este año
Y
DATEADD(HEA_DATE_Detail[FECHA],-1, AÑO) para el año pasado
Syndicate_Admin
Administrator
Administrator

AÑO ( HOY () ) y AÑO ( HOY () ) -1 podrían ser reemplazos directos en lo anterior.

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.