The List in the view displays calculated column values correctly, but when I filter the same column it shows the formula instead of values. How can I resolve this to show calculated values in the filter.
My formula in the calculated column is -
="<img src='/_layouts/images/blank.gif' onload=""{"&" var day=new Date();"&" var SPday=new Date(); "&" SPday.setFullYear("&YEAR(ITGCreationDate)&","&MONTH(ITGCreationDate)-1&","&DAY(ITGCreationDate)&");"&" var m=Math.ceil(Math.abs(SPday.getTime()-day.getTime()) /(1000*3600*24)); "&" this.parentNode.innerHTML=m; "&"}"">"
And here is the display of filter, showing formula, not values.
And this image is of the same calculated column, without filter, showing value. Thank you.