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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Diferencia de Año anterior acumulada

Hola a todos.

Este es mi primer post y solicito ayuda para traer la suma acumulada de diferencia entre años.

la diferencia la realice a trves de una medida y quiesiera que se sume acumulativamente esas diferencias cada año acumulado.JPG

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@Syndicate_Admin , ¿necesita ytd vs último ytd?

Con la ayuda de la tabla de fecha unida a la fecha de la tabla

YTD Sales = CALCULATE(SUMA(Ventas[Importe de ventas]),DATESYTD('Fecha'[Fecha],"12/31"))
Últimas ventas YTD = CALCULATE(SUMA(Ventas[Importe de ventas]),DATESYTD(dateadd('Fecha'[Fecha],-1,Año),"12/31"))

YTD =
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min = eomonth(_max,-1*MES(_max))+1
devolución
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))

Inteligencia de tiempo, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Período personalizado hasta la fecha: https://youtu.be/aU2aKbnHuWs&t=145s

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors