Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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))