Why calculated field return "undefined"?

I have a question.
when I add new calculated field, no matter what input I provide, it always returns ‘undefined’.
Moreover, with the exact same JavaScript code, sometimes it can return specific results, but other times it only returns ‘undefined’

Hi, @XuJi

Welcom to the eazyBI community. I’m sorry for not answering sooner.

What version of eazyBI are you using? It might be something in the Advanced settings / other custom field settings. If the problem persists, please, write us to support: support@eazybi.com