Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sss1684971169
Contributor
Contributor

tMap integer to a string

in tMap how do I convert an integer ("0") to a string ("Not Available")? I want the lines where the number 0 appears to become the string.

Labels (3)
1 Reply
Anonymous
Not applicable

Hello @Ana Lopes​ ,

Please try the below expression in Bold

​int num=0;

     String ret="0".equals(String.valueOf(num))?"Not Available": String.valueOf(num);

     System.out.println(ret);