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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Combine 2 variable in 1

Hi all,

Very easy question. How combine 2 variable in 1 in load?

Var1Var2
0

4
7
9
2
6

8
4
9

10
3
7
5

Thanks,

13 Replies
rbecher
MVP
MVP

Then you have to use if() function:

if(len(trim(Var1))=0, Var2, Var1)

- Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
swuehl
MVP
MVP

Maybe like this:

TMP:

LOAD  

     RangeMaxString(String1,String2) as Result

INLINE [

String1, String2

Hello, Hello

, Hallo

No, No

Yes,

];

Anonymous
Not applicable
Author

Thanks,

It works!!!

Anonymous
Not applicable
Author

Thanks,

I didn't check it, but you always give right idea and issue.

Thanks again.