Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Como transformar multiplos dados de linhas em multiplas colunas para um id igual

Olá pessoal!

Segue a minha dúvida:

Eu tenho os seguintes dados:

id     data

1     01/02/2016

1     03/02/2016

1     05/02/2016

2     11/02/2016

2     21/02/2016

2     22/02/2016


e quero converter no seguinte formato:

id              data1                data2                    data3

1          01/02/2016      03/02/2016            05/02/2016

2          03/02/2016      21/02/2016           22/02/2016


Agradeço se puderem me ajudar

Labels (2)
5 Replies
micheledenardi
Specialist II
Specialist II

You need a third column, then use it in SetAnalysis achieve your goal.Immagine.png

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
mario_sergio_ti
Partner - Specialist
Partner - Specialist

Amigo, segue.

Row values as fields (opposite of crosstable?)

Consultor certificado | Quem compartilha, aprende!
https://www.linkedin.com/in/mariosergioti
antoniotiman
Master III
Master III

Hi Mauricio,

try this

Generic
LOAD id,'data'&AutoNumber(RowNo(),id) as D1,data Inline [
id, data
1, 01/02/2016
1, 03/02/2016
1, 05/02/2016
2, 11/02/2016
2, 21/02/2016
2, 22/02/2016
]
;

Regards,

Antonio

Anonymous
Not applicable
Author

Thank you Michele!

Anonymous
Not applicable
Author

Thank you Antonio!