Hi Premdas,
I can understand your scenario.
You should verify the data cell as undefined before applying conditional formatting. Also, Use get data from data source in this case instead of getText from Text component. It should help you.
Your script should be like,
var target = DS.getdata ( <your data selection goes here .. > ) .value;
if( target == ' ' || target === undefined ) {
css = 'contentNeutral' ;
}
I hope this helps.
Thanks,
Ganesh
Visual BI