- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Año a la fecha del año pasado
Hola estoy usando la fórmula de trabajo a continuación para calcular nuestro volumen de negocios YTD.
YTD_2020: CALCULATE(SUM('FACTVERKOOP_ALL'[BRUTO_OMZET]); Año('FACTVERKOOP_ALL'[FECHA])-Año(HOY()))
¿Qué fórmula puedo usar para obtener el resultado del año anterior?
Muchas gracias de antemano
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@BartVlek , Con una tabla de fechas
LYTD QTY á TOTALYTD(Sum('order'[Qty]),dateadd('Date'[Date],-1,year))
LYTD QTY forzado
var _max á date(year(today())-1,month(today()),day(today()))
devolución
CALCULATE(Sum('order'[Qty]),DATESYTD(dateadd('Date'[Date],-1,year)),'Date'[Date]<-_max)
O
LYTD QTY forzado
var _max á date(year(today())-1,month(today()),day(today()))
devolución
if('Date'[Date]<-_max,CALCULATE(Sum('order'[Qty]),DATESYTD(dateadd('Date'[Date],-1,year))), blank())
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@BartVlek , Con una tabla de fechas
LYTD QTY á TOTALYTD(Sum('order'[Qty]),dateadd('Date'[Date],-1,year))
LYTD QTY forzado
var _max á date(year(today())-1,month(today()),day(today()))
devolución
CALCULATE(Sum('order'[Qty]),DATESYTD(dateadd('Date'[Date],-1,year)),'Date'[Date]<-_max)
O
LYTD QTY forzado
var _max á date(year(today())-1,month(today()),day(today()))
devolución
if('Date'[Date]<-_max,CALCULATE(Sum('order'[Qty]),DATESYTD(dateadd('Date'[Date],-1,year))), blank())
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

var maxyear á YEAR(TODAY())
YTD_2020: CALCULATE(SUM('FACTVERKOOP_ALL'[BRUTO_OMZET]); Año('FACTVERKOOP_ALL'[FECHA])-maxyear)
y se puede utilizar el mismo sustrato uno para geet el año pasado
var maxyear á YEAR(TODAY())
LYTD_2019 : CALCULATE(SUM('FACTVERKOOP_ALL'[BRUTO_OMZET]); Año('FACTVERKOOP_ALL'[FECHA])-maxyear-1)
Y para confirmar ¿está buscando año completo más las mismas fechas disponibles en el último año con el año pasado?
Si usted piensa que esto es útil por favor acepte esto como solución y deje un like.
saludos
Manikumar
If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!
Proud to be a Super User!

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
03-19-2024 08:00 PM | |||
01-13-2021 12:55 PM | |||
12-06-2023 05:13 AM | |||
09-15-2023 04:04 PM | |||
01-08-2024 09:54 AM |