Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problem with database load

Hi

When I load data from an MYSQL database, QlikView adds a zero in the beginning of the value.

Example.

Database

Customer              NationalRegNumber

123                          12345679

QlikView

Customer              NationalRegNumber

123                        012345679

Do some of you have any idea why Qlikview does like this?

Thanks in advance

// Victor

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

The first record loaded had a leading 0 in MySQL. QV uses this value to determine the format for the values of that field. If the value is a true number (ie the 0 is not needed), then Num(NationalRegNumber) will force the dropping of the leading 0. If the 0 is significant, then Text(NationalRegNumber) will preserve it in QV.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

The first record loaded had a leading 0 in MySQL. QV uses this value to determine the format for the values of that field. If the value is a true number (ie the 0 is not needed), then Num(NationalRegNumber) will force the dropping of the leading 0. If the 0 is significant, then Text(NationalRegNumber) will preserve it in QV.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Thank you Jonathan, you saved my day!

Now it works!