问题
I have field which is taking string as datatype and that field has values like $20000 and N/A
. I am using the string as datatype I want to show data like this $20000 and N/A
, but I am getting it as a 20000 and N/A
. How can I get data as $20000 and N/A
. I am using that expression:
=IF([annual_roll_amount]=="N/A";"N/A";"$" &[annual_roll_amount])
What is wrong in this expression and Is it ok to use that in value field under attributes??
回答1:
Your expression is wrong. you have to use CONCATENATION.
=IF([annual_roll_amount]=="N/A";"N/A";CONCATENATE("$";[annual_roll_amount]))
来源:https://stackoverflow.com/questions/51527899/how-to-add-symbol-to-the-value-field-in-the-pentaho-report-designer