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: 
fkeuroglian
Partner - Master
Partner - Master

Text to num

Hi expert

i have  a qvd where i have fields like latitude and longitude and i want to put in a map, my problem is that this fields are in TEXT format and the map do no recognize them as a number.

and when i try to pass in the script to NUM, nothing happend or pass wrong.

what could be?

i need the longitude and the latitude as a num

thank you a lot

Fernando

attached a qvw and the qvd i am using

thank you again!

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Fernando,

Use the following in the script:

Num(Replace(latitude, '.', ',')) AS latitude

This happens because your regional OS settings and QlikView settings do not match.

In my computer, I can see the same behavior, because decimals in Spanish are separated by ',' and not '.'.

Miguel

View solution in original post

4 Replies
Miguel_Angel_Baeyens

Fernando,

Use the following in the script:

Num(Replace(latitude, '.', ',')) AS latitude

This happens because your regional OS settings and QlikView settings do not match.

In my computer, I can see the same behavior, because decimals in Spanish are separated by ',' and not '.'.

Miguel

hic
Former Employee
Former Employee

You use decimal comma but the source data has decimal points. Then you need to load the longitude and latitude like

  Num# (longitude , '#', '.', ',') as longitude

And you should do it before you store them in the qvd.

HIC

fkeuroglian
Partner - Master
Partner - Master
Author

Muchas gracias Miguel

saludos

Fernando

fkeuroglian
Partner - Master
Partner - Master
Author

Thank you Henric!