Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
debmsarkar123
Contributor III
Contributor III

Incorrect concatenation happening

This is the loading statement-

Temp:
LOAD [Customer Material Code]&':' & [Sold To]
Material,
[Sold To],
[Customer Material Code]
FROM
$(vDataFolder)Material.qvd
(qvd);

This is the output-

debmsarkar123_1-1645513689269.png

 

 

Customer Material Code is '323494' and Sold To is '978' but a concatenation of them is becoming '323452: 00003498'.

I have tried making all the fields to num# but its not working too.

 

Edit-

SS of the solutions I have tried-

debmsarkar123_0-1645527609572.png

 

 

Labels (5)
7 Replies
micheledenardi
Specialist II
Specialist II

Try these:

text([Customer Material Code])&':' & Text([Sold To])

or

num(num#([Customer Material Code]))&':' & num(num#([Sold To]))
Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
Andrei_Cusnir
Specialist
Specialist

@micheledenardi 's solution is very good and should work perfectly! I was also able to resolve this issue with:

 

Num([Customer Material Code])&':' & Num([Sold To])

 

and 

 

REPLACE(LTRIM(REPLACE([Customer Material Code], '0', ' ')), ' ', '0') &':' & REPLACE(LTRIM(REPLACE([Sold To], '0', ' ')), ' ', '0') as suggested in the post "Remove Leading Zeros from Field while loading" [1]

 

---

[1] https://community.qlik.com/t5/QlikView-App-Dev/Remove-Leading-Zeros-from-Field-while-loading/td-p/16...

 

Help users find answers! Don't forget to mark a solution that worked for you! 🙂
debmsarkar123
Contributor III
Contributor III
Author

Hi,

Thanks for replying . I tried both the solutions but they arent working for me. They are giving the same result as 323452:3498

debmsarkar123
Contributor III
Contributor III
Author

Hi,

Thanks for replying . I tried both the solutions but they arent working for me. They are giving the same result as 323452:3498

micheledenardi
Specialist II
Specialist II

Can you upload your analysis with this record inside? So we can find the cause and a solution...

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
debmsarkar123
Contributor III
Contributor III
Author

Hi,

I have pasted the solutions I have tried.

Thanks

micheledenardi
Specialist II
Specialist II

Can you please post your .qvf / .qvw file? There is something strange in your data... without the live data is very difficult to help you... maybe only the Material.qvd would be sufficient.

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.