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.
Información de fondo:
Lo que quiero lograr es lo siguiente:
¿Hay alguna manera de hacerlo dentro de Power Bi?
Gracias de antemano por su amable apoyo !!
Solved! Go to Solution.
@Keiko , Probar como
LYTD QTY forzado
var _max á date(year(today())-1,month(today()),day(today()))
devolución
if(max('Date'[Date])<'_max, CALCULATE('order'[Qty]),DATESYTD(dateadd('Date'[Date],-1,year),"5/31"),'Date'[Date]<-_max), blank())
O
CALCULATE(Sum('order'[Qty]),DATESYTD(dateadd('Date'[Date],-1,year),"5/31"),'Date'[Date]<-_max)
TOTALYTD(Sum('order'[Qty]),dateadd('Date'[Date],-1,year),'Date'[Date]<-_max)
añadir la fecha de fin del año según la necesidad
YTD QTY forzado
var _max hoy()
devolución
if(max('Date'[Date])<-_max, calculate('sum('order'[Qty]),DATESYTD('Date'[Date])), blank())
O
calculate(Sum('order'[Qty]),DATESYTD('Date'[Date]),filter('Date','Date'[Date]<'_max))
calculate(TOTALYTD(Sum('order'[Qty]),'Date'[Date]),filter('Date','Date'[Date]<'_max))
@Keiko , Probar como
LYTD QTY forzado
var _max á date(year(today())-1,month(today()),day(today()))
devolución
if(max('Date'[Date])<'_max, CALCULATE('order'[Qty]),DATESYTD(dateadd('Date'[Date],-1,year),"5/31"),'Date'[Date]<-_max), blank())
O
CALCULATE(Sum('order'[Qty]),DATESYTD(dateadd('Date'[Date],-1,year),"5/31"),'Date'[Date]<-_max)
TOTALYTD(Sum('order'[Qty]),dateadd('Date'[Date],-1,year),'Date'[Date]<-_max)
añadir la fecha de fin del año según la necesidad
YTD QTY forzado
var _max hoy()
devolución
if(max('Date'[Date])<-_max, calculate('sum('order'[Qty]),DATESYTD('Date'[Date])), blank())
O
calculate(Sum('order'[Qty]),DATESYTD('Date'[Date]),filter('Date','Date'[Date]<'_max))
calculate(TOTALYTD(Sum('order'[Qty]),'Date'[Date]),filter('Date','Date'[Date]<'_max))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.