Good morning! I find always good solution here! This is very hard for me... for this i need your help! I've this table App / Matrix / Fee 123456 12/10000 452,00 123456 15/10000 555,00 123456 12/15000 585,00 123456 15/15000 604,00 123457 12/10000 452,00 123457 15/10000 555,00 123457 12/15000 585,00 123457 15/15000 604,00 123458 12/10000 645,00 123458 15/10000 518,00 123458 12/15000 588,00 123458 15/15000 604,00 I want to transpose the table and want the result like this: App Fee 12/10000 15/10000 12/15000 15/15000 123456 fee 452,00 555,00 585,00 604,00 123457 fee 452,00 555,00 585,00 604,00 123458 fee 645,00 518,00 588,00 604,00 Is it possible? I start from this code: data matrix;
input app $ matrix $ fee $ ;
datalines;
123456 12/10000 452,00
123456 15/10000 555,00
123456 12/15000 585,00
123456 15/15000 604,00
123457 12/10000 452,00
123457 15/10000 555,00
123457 12/15000 585,00
123457 15/15000 604,00
123458 12/10000 645,00
123458 15/10000 518,00
123458 12/15000 588,00
123458 15/15000 604,00
;
PROC SORT
DATA=WORK.MATRIX(KEEP=matrix fee app)
OUT=WORK.SORTTempTableSorted
;
BY app;
RUN;
PROC TRANSPOSE DATA=WORK.SORTTempTableSorted
OUT=WORK.TRNSTRANSPOSED_0000(LABEL="WORK.MATRIX trasposto")
PREFIX=Colonna
NAME=Origine
LABEL=Etichetta
;
BY app;
VAR matrix fee;
... View more