title: SAS: Mean, median, max and percentiles by two variables
body: <p>I have a dataset structured with 5 columns.
  Month, User, Num1, Num2, Num3.</p>
  
  <p>I'm trying to calculate, for each Num1 Num2 and Num3, the mean, median, max, 25th and 75th percentile for each permutation of Month and User.</p>
  
  <p>I have tried proc univariate but I can't do it without creating a macro and manual steps for each Month and User permutation.</p>
  
  <p>My ideal output would then look like this, and separate outputs for Num1 Num2 Num3: <a href="http://i.imgur.com/YC67LV1.png" rel="nofollow">http://i.imgur.com/YC67LV1.png</a></p>
  
  <p>Thanks!</p>