Hi
Something wrong in formula to yet YTD sales
:=calculate(sum(SALESDATA[AMOUNT]),SALESDATA[year]=2015,all([MonthCode]),filter(SALESDATA,SALESDATA[MonthCode]<=[Mon2]))
[MonthCode] column having month numbers like 1,2,3,...12
[Mon2] is max([MonthCode])
i want to override my month filter to get YTD sales. ie if i select 11 in filter should give sales from month 1 to 11
Something wrong in formula to yet YTD sales
:=calculate(sum(SALESDATA[AMOUNT]),SALESDATA[year]=2015,all([MonthCode]),filter(SALESDATA,SALESDATA[MonthCode]<=[Mon2]))
[MonthCode] column having month numbers like 1,2,3,...12
[Mon2] is max([MonthCode])
i want to override my month filter to get YTD sales. ie if i select 11 in filter should give sales from month 1 to 11