Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Necesito lograr una medida de año COMPLETO para el año pasado.
Para lograrlo, tengo que... Ignore los filtros Mes y Fecha, y de alguna manera elija el valor seleccionado 'Año fiscal' y haga un -1 en él.
Para el año completo lo que tengo es:
Sales Full Year:= CALCULATE ([Sales] , ALL('Date'[FY & Month], 'Date'[Week Offset],'Date'[Date]))
¡Esto funciona bien!
Pero para el año completo del año pasado estoy haciendo esto:
Sales Full Year LY:= CALCULATE ( [Sales Full Year] , PARALLELPERIOD ( 'Date'[Date] , -12 , MONTH ) )
¡Pero esto no funciona!
Solved! Go to Solution.
@ovonel , ejemplo completo un último año
Ventas del año pasado = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),previousyear('Date'[Date]))
Último año = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))
Power BI: año tras año con o sin inteligencia de tiempo
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
Entonces, ¿tiene la tabla de hechos y la tabla de fechas, y la tabla de fechas como filtro?
¿Qué tal usar ALL (tabla de hechos) en su lugar?
Es mejor compartir algunos datos de muestra para que podamos crear el archivo pbix y probar la fórmula.
Saludos
Arrendajo
@ovonel , ejemplo completo un último año
Ventas del año pasado = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),previousyear('Date'[Date]))
Último año = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))
Power BI: año tras año con o sin inteligencia de tiempo
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA