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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Cleaning Dirty Data

Hiya All

I needed help asap please.

Im working on loading data from a Sql Database and storing it as QVD for others to work on.

Im currently stuck and needed help.

The figures being loaded are long and if i load them in Qlikview its similar to that of MS Excel

E.g

20004561+015

The data comes out like this. Is there something i must write in my script to amend this?

So it shows like

20004561235234015?

Any help appreciated.

1 Solution

Accepted Solutions
bumin
Partner - Creator II
Partner - Creator II

if you try this

num(your_field,'#################') as new_field,

View solution in original post

6 Replies
MK_QSL
MVP
MVP

Use Below function in your load script..

Evaluate(YourDimension) as YourDimension

UPDATE:

QlikView supports a maximum of 14 digits in your number. If it is longer than that,  it will be interpreted a a text.

First, you can use evaluate() to convert your original text into a integer.Then, you can use NUM to format it appropriately


Try Below

num( EVALUATE(YourFieldName),'#0') AS YourFieldName

Anonymous
Not applicable
Author

Qlik Test.PNG.png

I tried this but still no joy

Qlik Test 2.PNG.png

Anonymous
Not applicable
Author

Still didn't work

i'm getting this, the numbers are not displayed but you can select them?

Qlik Test 3.PNG.png

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Try wrapping them in a text() function:

text(EntityId) as EntityID

-Rob

bumin
Partner - Creator II
Partner - Creator II

if you try this

num(your_field,'#################') as new_field,

Anonymous
Not applicable
Author

You did it! Bloody Marvelous

Made my day, been on this since Thursday last week