Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

How QV distinct between '0' and '00'

Hi to everybody,

I have a big problem loading files with my QV version 10.00:

when I load a file that  contain in the same field in a record '0' in another one '00', Qv sets the format equal to the first.

So if the first is '0' all the next records that contain '00' or '000' become '0'; instead if the first is '00', all the other become '00'.

How can I solve this issue?

Thanks in advance

PG

Tags (1)
1 Solution

Accepted Solutions
Employee
Employee

Re: How QV distinct between '0' and '00'

Use TEXT() function to translate you field at script level

3 Replies
Employee
Employee

Re: How QV distinct between '0' and '00'

Use TEXT() function to translate you field at script level

Not applicable

Re: How QV distinct between '0' and '00'

Thanks to Clever Anjos,

Now I can't use Text() into a "SQL select" with ODBC, because the DB2 server don't recognizes the function, but I think that is possible to solve the problem making a load after the SQL select, that it's all right!

Thanks, see you soon. PG

Employee
Employee

Re: How QV distinct between '0' and '00'

Use a preceding LOAD

LOAD

      text(yourfield) as youfield;

SQL SELECT

...

...

Community Browser