cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-582643%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ECombinazione%20di%20righe%20con%20dati%20seriali%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-582643%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECiao%2C%20ci%20sono%20alcuni%20post%20a%20riguardo%20ma%20non%20affrontano%20questo%20problema%20specifico%3C%2FP%3E%3CP%3Edevo%20passare%20dall'esempio%201%20all'esempio%202.%20combinare%20le%20righe%20per%20ID%20%23%20in%20una%20riga%20con%20i%20dati%20allineati%20in%20sequenza.Grazie%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CU%3EEsempio%201%3C%2FU%3E%3C%2FP%3E%3CP%3Eid%20visita%23.PGA%3C%2FP%3E%3CP%3E1%201%205%3C%2FP%3E%3CP%3E1%202%203%3C%2FP%3E%3CP%3E2%203%2012%3C%2FP%3E%3CP%3E2%205%207%3C%2FP%3E%3CP%3E264%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3Eesempio%202%3C%2FU%3E%3C%2FP%3E%3CP%3Eid.visita%23%20PGA.visita%23.PGA.visita%23.PGA%23%3C%2FP%3E%3CP%3E1.1%205%202%203%3C%2FP%3E%3CP%3E2.3%2012%205%207%206%204%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-582643%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EModellazione%20statistica%20avanzata%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOrganizzazione%20dei%20contenuti%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-583131%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Combinazione%20di%20righe%20con%20dati%20seriali%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-583131%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F23793%22%20target%3D%22_blank%22%3E%40jsolo01%3C%2FA%3E%20ha%20scritto%3A%3CBR%20%2F%3E%3CP%3Eche%20funzioni!Grazie%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EBello!%20Potresti%20segnare%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F14366%22%20target%3D%22_blank%22%3E%20%40jthi%3C%2FA%3E%20la%20risposta%20come%20soluzione%20allora%3F%20...%20e%20generosamente%20risparmiagli%20un%20kudo%2Fmi%20piace%20...%20solo%20per%20mantenere%20le%20persone%20motivate.%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Acara_con_una_leve_sonrisa%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-582807%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Combinazione%20di%20righe%20con%20dati%20seriali%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-582807%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Eche%20funzioni!Grazie%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-582685%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Combinazione%20di%20righe%20con%20dati%20seriali%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-582685%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EUn'opzione%20%C3%A8%20creare%20una%20nuova%20colonna%20di%20raggruppamento%20con%20qualcosa%20di%20simile%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ECol%20Cumulative%20Sum(1%2C%20%3Aid)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_3-1671207892330.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_3-1671207892330.png%22%20style%3D%22width%3A%20315px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_3-1671207892330.png%22%20style%3D%22width%3A%20315px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F48381i001723F1B839A191%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_3-1671207892330.png%22%20alt%3D%22jthi_3-1671207892330.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Edopodich%C3%A9%20puoi%20dividere%20il%20tavolo%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_0-1671207782024.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1671207782024.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1671207782024.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F48378i99D05ED20E0CF540%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_0-1671207782024.png%22%20alt%3D%22jthi_0-1671207782024.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Ee%20finire%20con%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_1-1671207790056.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1671207790056.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1671207790056.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F48379i725D8F04E2C1C874%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_1-1671207790056.png%22%20alt%3D%22jthi_1-1671207790056.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Equindi%20puoi%20spostare%20le%20colonne%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_2-1671207877254.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_2-1671207877254.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_2-1671207877254.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F48380i0F387AA48DBF14D8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_2-1671207877254.png%22%20alt%3D%22jthi_2-1671207877254.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
jsolo01
Level I

Combining rows with serial data

Hi - there are a few posts on this but they dont address this specific issue

i need to get from example 1 to example 2.  combine rows by ID # into one row with data aligned sequentially.  Thanks


example 1

id    visit#.   PGA 

1      1          5

1      2          3 

2      3        12

2      5         7

2      6         4

 

example 2

id.   visit#    PGA.   visit#.   PGA.    visit#.  PGA#

1.      1         5          2           3     

2.       3        12        5           7           6         4

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Combining rows with serial data

One option is to create new grouping column with something like

Col Cumulative Sum(1, :id)

jthi_3-1671207892330.png

 

after this you can split the table

jthi_0-1671207782024.png

and end up with

jthi_1-1671207790056.png

then you can move the columns around

jthi_2-1671207877254.png

 

-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

Re: Combining rows with serial data

One option is to create new grouping column with something like

Col Cumulative Sum(1, :id)

jthi_3-1671207892330.png

 

after this you can split the table

jthi_0-1671207782024.png

and end up with

jthi_1-1671207790056.png

then you can move the columns around

jthi_2-1671207877254.png

 

-Jarmo
jsolo01
Level I

Re: Combining rows with serial data

that works!  Thanks

fja
fja
Level III

Re: Combining rows with serial data


@jsolo01 wrote:

that works!  Thanks


Lovely! Could you mark @jthi 's answer as a solution then? ... and generously spare it a kudo/like ...  just to keep people motivated.