Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Kudoed Authors