Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need to do something like implode in php,i have some data on load in table and i need to group data in one string.THX for helping
Example:
From this table
ID | Data |
---|---|
1 | 5 |
1 | 6 |
2 | 7 |
3 | 8 |
i need to get something like this:
ID | Data |
---|---|
1 | 5,6 |
2 | 7 |
3 | 8 |
Load
ID,
CONCAT(Data, ',') as Data
From....
Group By ID;
UPDATE:
===========================
Temp:
LOAD ID,
Data
FROM
[http://community.qlik.com/thread/115770]
(html, codepage is 1252, embedded labels, table is @1);
NoConcatenate
Final:
Load ID,
Concat(Data,',') as Data
Resident Temp
Group By ID;
Drop Table Temp;
==============================
Load
ID,
CONCAT(Data, ',') as Data
From....
Group By ID;
UPDATE:
===========================
Temp:
LOAD ID,
Data
FROM
[http://community.qlik.com/thread/115770]
(html, codepage is 1252, embedded labels, table is @1);
NoConcatenate
Final:
Load ID,
Concat(Data,',') as Data
Resident Temp
Group By ID;
Drop Table Temp;
==============================
Hi,
maybe you could use a group by and the concat function.
Hi,
See the attached qvw
Regards
Alan
Thx) i think about concat,but i forgot about group by))