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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
raajaswin
Creator III
Creator III

Concat using dynamic string

Hi all,

My Input,

KEYTEXT1TEXT2
1AB
2AB
3B
4A
5

Required Output,

KEYOUTPUT
1A,B
2A,B
3B
4A
5

Need to do it in script,

As of now am using some nested if and & operator, do we have direct function??, can we do it with concat??

14 Replies
Anil_Babu_Samineni

I am sure, There is no direct function for this

In Excel, We do have direct option like

Concatenate(Cell1 & "," & Cell2)

But qlikview has limited functionality.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
raajaswin
Creator III
Creator III
Author

Then I will go with Ifs only.. Thank u

raajaswin
Creator III
Creator III
Author

Hi Every one,

Concat works fine, but I have a small problem kindly refer the attachment

sunny_talwar

May be try this:

data:

CrossTable(TEXT, toto, 1)

LOAD * INLINE [

KEY, A, B,C

1, A, B,1

2, A, B

3, , B ,1

4, A, ,1

5

];

LOAD

KEY,

Concat(toto, ',', AutoNumber(TEXT)) as tt

Resident data

where len(toto)<>0

Group By KEY

;

raajaswin
Creator III
Creator III
Author

Yo thats it. Thank you sunny