LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 21 Apr 2009 09:46:01 -0400
Reply-To:     Stephane COLAS <scolas@DATAMETRIC.FR>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Stephane COLAS <scolas@DATAMETRIC.FR>
Subject:      Proc report : ratio in an across grouping
Content-Type: text/plain; charset=ISO-8859-1

Hi

With : data test; do country = "A","B","C"; do region =1,2,3,4,5; do year=1,2; do family="F1","F2"; turnover = ranuni(0); output; end;end; end;end; run;

I check the results with that, you can see the turnover of each year inside each family.

proc report data=test; column country family,year,(turnover); DEFINE country / group; DEFINE year / across; DEFINE family / across; DEFINE turnover / sum; run;

And now I'd like to add the % growth between year2 a and year1 inside each family and I'm lost...

Stéphane.


Back to: Top of message | Previous page | Main SAS-L page