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%3EKombinieren%20von%20Zeilen%20mit%20seriellen%20Daten%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-582643%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%2C%20es%20gibt%20ein%20paar%20Beitr%C3%A4ge%20dazu%2C%20die%20sich%20jedoch%20nicht%20mit%20diesem%20speziellen%20Problem%20befassen%3C%2FP%3E%3CP%3EIch%20muss%20von%20Beispiel%201%20zu%20Beispiel%202%20gelangen.%20Zeilen%20nach%20ID%20%23%20in%20einer%20Zeile%20kombinieren%2C%20wobei%20die%20Daten%20nacheinander%20ausgerichtet%20werden.Danke%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CU%3EBeispiel%201%3C%2FU%3E%3C%2FP%3E%3CP%3EID-Besuch%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%3E2%206%204%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3EBeispiel%202%3C%2FU%3E%3C%2FP%3E%3CP%3EAusweis.Besuchen%20Sie%23%20PGA.besuchen%23.PGA.besuchen%23.PGA%23%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%3EErweiterte%20statistische%20Modellierung%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EInhaltsorganisation%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%3EBetreff%3A%20Zeilen%20mit%20seriellen%20Daten%20kombinieren%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%20schrieb%3A%3CBR%20%2F%3E%3CP%3Edas%20funktioniert!Danke%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3ESch%C3%B6n!%20K%C3%B6nnten%20Sie%20markieren%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%20Ist%20die%20Antwort%20dann%20eine%20L%C3%B6sung%3F%20...%20und%20ersparen%20Sie%20ihm%20gro%C3%9Fz%C3%BCgig%20ein%20Kudo%2FGef%C3%A4llt%20mir%20...%20nur%20um%20die%20Leute%20motiviert%20zu%20halten.%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%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%3EBetreff%3A%20Zeilen%20mit%20seriellen%20Daten%20kombinieren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-582807%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Edas%20funktioniert!Danke%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-582685%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Zeilen%20mit%20seriellen%20Daten%20kombinieren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-582685%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEine%20M%C3%B6glichkeit%20besteht%20darin%2C%20eine%20neue%20Gruppierungsspalte%20mit%20etwas%20wie%20%E2%80%9E%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%3EDanach%20k%C3%B6nnen%20Sie%20die%20Tabelle%20teilen%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%3Eund%20am%20Ende%20mit%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%3EDann%20k%C3%B6nnen%20Sie%20die%20Spalten%20verschieben%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.