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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
oxiofrt
Partner - Creator
Partner - Creator

Data type changed whil Qlik loading

Hi,
I try to load a varchar dimension. Some of its values may be '13' or '013'. Those two values are different and should remain different in my application.
I tried to load them with an SQL statement and with a load statement (even tried to include a text() fonction ).

In both cases, Qlikview does consider 13 and 013 as the same dimension...
How may I proceed ?

See attachment.
Thanks a lot for your help !

3 Replies
sparur
Specialist II
Specialist II

Hi, oxioFRT.

See in attachment. 🙂

I think that your problem is solved.

oxiofrt
Partner - Creator
Partner - Creator
Author

Thanks a lot for your help.
Infact the qvw that I have provided is not realyy suitable. (I never use "Load inline").
My problem is still occuring and is not solevd using TEXT().

Concerned loading script is the following. ID_CHAPITRE_GLOB_CPTE sometimes contains '13' and sometimes '013', which are two really different values.
How may I force Qlikview to consider this code as alphanumeric ?

COMPTE :
SQL SELECT "ANNEE_BUDGET_CPTE",
"CLE_COMPTE",
"CODE_SECTION_CPTE",
"ID_CHAPITRE_CPTE",
"ID_CHAPITRE_GLOB_CPTE",
"ID_CPTE",
NIVEAU,
"SENS_CPTE"
FROM "SIPA_DWH_GF"."V_COMPTE";

CHAP_GLOB_TXT :
LOAD distinct "ID_CHAPITRE_GLOB_CPTE",
TEXT("ID_CHAPITRE_GLOB_CPTE") as ID_CHAPITRE_GLOB_CPTE_TXT
resident COMPTE;

Thanks a lot for your help

sparur
Specialist II
Specialist II

Hi,

Try this code:

COMPTE :

LOAD CLE_COMPTE, CODE_SECTION_CPTE, ID_CHAPITRE_CPTE, ID_CPTE, NIVEAU, SENS_CPTE,

Text(ID_CHAPITRE_GLOB_CPTE) AS ID_CHAPITRE_GLOB_CPTE_TXT

;
SQL SELECT "ANNEE_BUDGET_CPTE",
"CLE_COMPTE",
"CODE_SECTION_CPTE",
"ID_CHAPITRE_CPTE",
"ID_CHAPITRE_GLOB_CPTE",
"ID_CPTE",
NIVEAU,
"SENS_CPTE"
FROM "SIPA_DWH_GF"."V_COMPTE";