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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concatenate Kilometer and meter

Hi,

It's possible concatenating in script two columns and create a new one in this model?

Column KM: 357

Column M: 8

Result: 357008

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be like this:

LOAD [Column KM] & Num([Column M], '000') as Result

FROM Source;


or

LOAD Num(Num#([Column KM] & Num([Column M], '000'), '##')) as Result

FROM Source;

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be like this:

LOAD [Column KM] & Num([Column M], '000') as Result

FROM Source;


or

LOAD Num(Num#([Column KM] & Num([Column M], '000'), '##')) as Result

FROM Source;

swuehl
Champion III
Champion III

You can also probably completely avoid the number formatting and (implicite) interpretation:

LOAD *,

      KM*1000+M as Meter

INLINE [

KM, M

357, 8

];