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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Numeric to Text

Hi community,

Please i want to transform a field INTEGER to a field STRING in Load statement?

For example : Let take this script.

Ligne:
LOAD CodeLigne,
LibelleLigne,
NumLigne,
CodeSsSousGroupe,
CodeSousGroupe,
CodeGroupe
FROM
Structure_Edition_V02.xls
(biff, embedded labels, table is Ligne$);

The type of field NumLigne is INTEGER,

I want to transform it in STRING.

How to do???

Thanks.

Labels (1)
1 Reply
Miguel_Angel_Baeyens
Support
Support

Hello Yimen,

Use Text() function. In the following example

Text('000001') AS TextField, Num(000001) AS NumField


TextField will return all preceding zeroes, as the field is considered text, while NumField will return just "1", as preceding zeroes don't count.

Hope that helps