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
MrA15S
New Member

PARALLELPERIOD no funciona cuando el importe actual es igual a 0,00 euros

He creado 2 medidas...

1) Importe actual

Importe de la entrada de GL : suma('037_MS_GL Data_Qlik'[Importe de entrada gl])+0
2) Importe del año pasado
Last Year Amount ? CALCULATE([GL Entry Amount],PARALLELPERIOD(Dates[Date],-12,MONTH))+0
Cuando el Importe de entrada de GL es igual a 0,00 euros, el Importe del último año se convierte automáticamente en 0,00 euros cuando realmente debería tener un valor.
¿Hay alguna razón para esto? Cuando filtro en meses en los que el importe de entrada de GL no es igual a 0,00 euros, la medida Importe del último año funciona bien. ¡Realmente extraño!
Cualquier ayuda será muy apreciada.
1 ACCEPTED SOLUTION

Muchas gracias por su ayuda.

Parece que el problema también fue con mi relación. La relación entre mis 2 tablas tenía una dirección de filtro cruzado, ambos, pero cuando la cambié a Single, la solución funcionó.

Mucho apreciado.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@MrA15S , para el año pasado mejor se utiliza la medida Trailing

Ejemplo

Año detrás de Ventas: CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))

o mismoperiod pasado año

Año detrás de las Ventas: CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))

o medidas como

Ventas YTD á CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))
Last YTD Sales á CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
Este año Ventas: CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR('Date'[Date]),"12/31"))
Ventas del año pasado: CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))
Last to last YTD Sales - CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-2,Year),"12/31"))

Muchas gracias por su ayuda.

Parece que el problema también fue con mi relación. La relación entre mis 2 tablas tenía una dirección de filtro cruzado, ambos, pero cuando la cambié a Single, la solución funcionó.

Mucho apreciado.

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.

Top Kudoed Authors