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: 
fionna51
Creator
Creator

How to display long number as text?

Hi,

I am working on following field which most values are like number but is in fact text. For those two highlighted, they contain a "D" and a "B", then the display is correct. For all others, they are still text. Even I use text(), it is still displayed as +14. This field is read from Excel file, is this the issue?

1 Solution

Accepted Solutions
fionna51
Creator
Creator
Author

Finally, I worked it out. Thanks for your hint.

if(isnum(fieldname, Text(Num(fieldname,'0')), fieldname)

View solution in original post

5 Replies
vishsaggi
Champion III
Champion III

What happens when you try like

Text(Num(yourfieldname))

el_aprendiz111
Specialist
Specialist

Hi,

num#(MyNum, '#','.',',')

num#(MyNum, '#,##0.00','.',',')

num#(MyNum, '#,#','.',',')

fionna51
Creator
Creator
Author

Those are not working.

Please note, some of this value contain letters, when I tried Num(), the letter's gone, and still like 1.3456788883344e+14.

fionna51
Creator
Creator
Author

And, when I extract from Excel and saved as qvd, this field shows correct format. After left join to my fact table as additional field, it shows wrongly.

fionna51
Creator
Creator
Author

Finally, I worked it out. Thanks for your hint.

if(isnum(fieldname, Text(Num(fieldname,'0')), fieldname)