Producao Prensa 6 meses anteriores =
VAR ReferenceDate = MAX(dimCalendario[Date])
VAR PreviousDate = DATESINPERIOD( 'Previous date'[Date] , ReferenceDate, -6, MONTH)
VAR Result = CALCULATE( [Soma Produção Prensa], PreviousDate, USERELATIONSHIP('Previous date'[Date],dimCalendario[Date]))
return
Result