Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Enero-20 | 1000 |
Feb-20 | 2000 |
Mar-20 | 3000 |
Abr-20 | 4000 |
20 de mayo | 5000 |
Junio-20 | 6000 |
Solved! Go to Solution.
@Andrew1 , Probar como
Rolling 3 hasta el último 1 mes - CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],ENDOFMONTH(dateadd(Sales[Sales Date],-1,month)),-3,MONTH))
también se puede probar a continuación medida
Measure =
VAR maxdate=max('Sheet2'[date])
VAR startdate=date(year(maxdate),month(maxdate)-2,1)
return CALCULATE(sum(Sheet2[value]),FILTER('date','date'[Date]<=maxdate&&'date'[Date]>=startdate))
Proud to be a Super User!
@Andrew1 , Probar como
Rolling 3 hasta el último 1 mes - CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],ENDOFMONTH(dateadd(Sales[Sales Date],-1,month)),-3,MONTH))
Funciona muy bien! Muchas gracias.