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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Combine Columns into Single Column (+Transform?)

Hello!

I'm stuck with what I think is a concatenate and a replace  - but I was hoping there might be a useful/simple/better way of doing it.

I have four columns of data I want to turn into one column of data, as below:

Easy way to do it?

Alex

Labels (1)
10 Replies
maxgro
MVP
MVP

tt:

load * inline [

ID, Labour,Conservative,Green,UKIP

1,Yes,,,

2,,Yes,,

3,,,Yes,

4,,,,Yes

];

ct:

CrossTable (Party, YesNo)

LOAD * Resident tt

;

final:

NoConcatenate load ID, Party Resident ct where len(trim(YesNo))>0;

DROP Table ct, tt;