Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
usamashahid
Contributor II
Contributor II

Data Changing when saving to QVD

I created a new qvd from sql database. Once the qvd is generated data is not matching with sql (e.g. I have two items '03011001' and '3011001' in sql it is showing as two separate lines but once i load the qvd '0' is added in '3011001', so only 1 item appears which is '03011001' and there is no '3011001'.

I've attached a snapshot of Qlik and SQL for reference. 

Anyone, please help me understand this.

Labels (1)
1 Solution

Accepted Solutions
Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

try like this

Abc:
LOAD

Text(ID) as ID,
Name,
Fees;
SQL SELECT ID,
Name,
Fees
FROM Database.dbo.Table;

Store Abc into //loc/Abc.qvd(QVD);

 

Hope this helps

Thanks

Thanks and Regards
Kashyap.R

View solution in original post

7 Replies
lorenzoconforti
Specialist II
Specialist II

Usually the issue is that leading zeroes are dropped rather than added

Can you share the part of the script where you load the data from SQL?

Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

try by converting it to text format using Text()

Hope this helps

Thanks

Thanks and Regards
Kashyap.R
usamashahid
Contributor II
Contributor II
Author

attached is the script where qvd is created from sql.

usamashahid
Contributor II
Contributor II
Author

Already tried using Text(FieldName) but no luck

Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

try like this

Abc:
LOAD

Text(ID) as ID,
Name,
Fees;
SQL SELECT ID,
Name,
Fees
FROM Database.dbo.Table;

Store Abc into //loc/Abc.qvd(QVD);

 

Hope this helps

Thanks

Thanks and Regards
Kashyap.R
lorenzoconforti
Specialist II
Specialist II

Just to rule it out, how are you reloading the qvd? 

usamashahid
Contributor II
Contributor II
Author

I'm using the script as reload as well.