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%3ECombinaison%20de%20lignes%20avec%20des%20donn%C3%A9es%20s%C3%A9rie%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-582643%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EBonjour%2C%20il%20y%20a%20quelques%20articles%20%C3%A0%20ce%20sujet%20mais%20ils%20ne%20traitent%20pas%20de%20ce%20probl%C3%A8me%20sp%C3%A9cifique.%3C%2FP%3E%3CP%3Eje%20dois%20passer%20de%20l'exemple%201%20%C3%A0%20l'exemple%202.%20combiner%20les%20lignes%20par%20ID%20%23%20en%20une%20seule%20ligne%20avec%20les%20donn%C3%A9es%20align%C3%A9es%20s%C3%A9quentiellement.Merci%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CU%3EExemple%201%3C%2FU%3E%3C%2FP%3E%3CP%3Enum%C3%A9ro%20de%20visite%20d'identification.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%3E2%206%204%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3Eexemple%202%3C%2FU%3E%3C%2FP%3E%3CP%3Eidentifiant.visitez%20%23%20PGA.visite%23.PGA.visite%23.%23PGA%3C%2FP%3E%3CP%3E1.%201%205%202%203%3C%2FP%3E%3CP%3E2.%203%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%3EMod%C3%A9lisation%20statistique%20avanc%C3%A9e%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOrganisation%20du%20contenu%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%3ERe%20%3A%20Combiner%20des%20lignes%20avec%20des%20donn%C3%A9es%20s%C3%A9rie%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%20a%20%C3%A9crit%3A%3CBR%20%2F%3E%3CP%3E%C3%A7a%20marche!Merci%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EBeau!%20Pourriez-vous%20marquer%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%20r%C3%A9ponse%20comme%20solution%20alors%20%3F%20...%20et%20lui%20%C3%A9pargnez%20g%C3%A9n%C3%A9reusement%20un%20f%C3%A9licitation%2Fun%20like...%20juste%20pour%20garder%20les%20gens%20motiv%C3%A9s.%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%3ERe%20%3A%20Combiner%20des%20lignes%20avec%20des%20donn%C3%A9es%20s%C3%A9rie%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-582807%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%C3%A7a%20marche!Merci%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-582685%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20Combiner%20des%20lignes%20avec%20des%20donn%C3%A9es%20s%C3%A9rie%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-582685%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EUne%20option%20consiste%20%C3%A0%20cr%C3%A9er%20une%20nouvelle%20colonne%20de%20regroupement%20avec%20quelque%20chose%20comme%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%3Eapr%C3%A8s%20cela%2C%20vous%20pouvez%20diviser%20la%20table%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%3Eet%20finir%20avec%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%3Ealors%20vous%20pouvez%20d%C3%A9placer%20les%20colonnes%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.