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

¿Cómo manejar la fecha de finalización de febrero al pronosticar?

Hola a todos,

Estoy tratando de crear algún pronóstico, pero noto que tengo un problema con febrero y podría usar algo de ayuda. Tengo un campo de fecha, una columna con datos al final del mes y una columna de pronóstico. Tengo el visual filtrado para mostrar solo el final de mes. Mi fórmula para el pronóstico es:

Pronóstico = CALCULAR([Medida], SAMEPERIODLASTYEAR(DateTable[date_field]))

Como puede ver allí 02/28/21 no tiene datos para el pronóstico porque la fecha de finalización de febrero anterior es 02/29/2020. Avanzar en eso podría crear un problema cuando tengamos el próximo año bisiesto. ¿Hay alguna manera de resolver esto?

nleuck_101_0-1659704360905.png

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

En lugar de usar SAMERPERIODLASTYEAR, usé PARALLELPERIOD y eso pareció funcionar.

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

En lugar de usar SAMERPERIODLASTYEAR, usé PARALLELPERIOD y eso pareció funcionar.

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.