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: 
p_verkooijen
Partner - Specialist II
Partner - Specialist II

Qlik keeps formatting numbers based on first match

Got a MSSQL database with numbers formatted with or without a prefix 0

p_verkooijen_0-1686831730525.png

 

QlikView May 2022SR2 formats the numbers based on sort order. First row is the winner..

Qlik Script:

p_verkooijen_1-1686831902825.png

 

Output

 

LEN en TEXT display's the difference in LEN and content

Order by ID ASC all EANcode's become 0850010131146

Order by ID DESC all EANcode's become 850010131146

p_verkooijen_2-1686831915567.png

 

 

Labels (1)
11 Replies
p_verkooijen
Partner - Specialist II
Partner - Specialist II
Author

Hi @ElisaF ,

Thank you for the example, I will check if this works for me

ElisaF
Contributor III
Contributor III

Thanks for the reply. I look forward to your feedback. I am curious if the solution solved your issue.