u can't use aggregation in your case. only when you having functions like Max, sum, count , avg etc. then the aggregation function will work.
may u can try like this,
if(isnull(NAME) or len(trim(NAME))<=0,'Other',NAME))
also check this article about the aggregation function in qlik