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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
coco
Contributor II
Contributor II

loading excel data into qlik sense consistent with excel

Read the CODE column from excel. The data is the text version type, starting with 000, as shown in pic1, but the data read by qlik sense automatically removes the previous 000, as shown in pic2. I hope the data read is consistent with that in Excel. What should I do?

Here is my code in qlik sense.Where should be modified?

Table:
LOAD
CODE
FROM [lib://file/file 2021.09.14.xlsx]
(ooxml, embedded labels, table is Sheet1);

pic1.pngpic2.png

4 Replies
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi, Try converting Code into Text.

like Text(Code) as Text

Vegar
MVP
MVP

If you expect all CODE values to be a numeric integer value with five positions, then you can format the output with NUM(CODE, '00000'). If it is a mix of numeric and string values then I would go with the solution from @AshutoshBhumkar .

 

coco
Contributor II
Contributor II
Author

coco
Contributor II
Contributor II
Author