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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loading and storing text containing numbers

When I load a text field containing numbers from a Database (IBM DB2), I get a single numeric value when the trimmed values are similar.

eg: 001, 01 and 1 are all represented as 1.

The same problem arises when I store those fields in a qvd file.

Regards

Labels (1)
1 Solution

Accepted Solutions
nathanfurby
Specialist
Specialist

Try using the following in your load script:

Text(Value) AS Value

View solution in original post

5 Replies
nathanfurby
Specialist
Specialist

Try using the following in your load script:

Text(Value) AS Value

Not applicable
Author

Using Text(Value) AS Value is the right way, but is not enough.

Since I'm running the initial query against an ODBC source, I cant pass the TEXT() function to the DB2 Database, but I solved the problem this way.

Table:

LOAD

TEXT(Field) AS Field;

SQL SELECT

Field

FROM ORIGINALTABLE;

Thanks for your support

nathanfurby
Specialist
Specialist

That's exactly what I was suggesting.

Indifferent

Not applicable
Author

Sorry, I misunderstood your reply.

Thanks for your support.

Not applicable
Author

I had the same issue and this resolved it. Thanks.

Essentially, QV is ignoring the datatype from the database which is pretty confusing. Why would this not be considered a bug ?