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

Mapping

Bonjour,

 

Je rencontre un souci de mapping

En effet, j'importe un nombre et je désire le mettre en format texte mais impossible, pourtant ma table de mapping est ok je pense, la voici :

 

MapREFarticle:
Mapping LOAD * INLINE [
From, To

42001C, 42001C PFV
6SMS28FRV7, 6SMS28FRV7 PFV
5370, 5370 PFV
5483, 5483 PFV
5484, 5484 PFV
5486, 5486 PFV
5490, 5490 PFV
5609, 5609 PFV
111881, 111881 PFV
111884, 111884 PFV
112005, 112005 PFV
131142, 131142 PFV
1219634, 1219634 PFV

];

...

ApplyMap('MapREFarticle',TEXT([Ref article])) as [Ref article],

...

Par exemple le chiffre 5609 ne se transforme pas en 5609 PFV

 

Pourquoi ?

 

Merci beaucoup

Cordialement

 

 

 

 

1 Reply
Taoufiq_Zarra

@lebontuyau  est ce que tu as testé sans Text()

like :

Taoufiq_Zarra_0-1610211591112.png

 

si tu veux l’interpréter comme un text tu peux par exemple faire ;

MapREFarticle:
Mapping LOAD * INLINE [
From, To
42001C, 42001C PFV
6SMS28FRV7, 6SMS28FRV7 PFV
5370, 5370 PFV
5483, 5483 PFV
5484, 5484 PFV
5486, 5486 PFV
5490, 5490 PFV
5609, 5609 PFV
111881, 111881 PFV
111884, 111884 PFV
112005, 112005 PFV
131142, 131142 PFV
1219634, 1219634 PFV
];


Data:

load ApplyMap('MapREFarticle',''&([Ref article])) as [Ref article] inline [
Ref article
5609
];

résultat :

Taoufiq_Zarra_1-1610211646570.png

 

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉