Then use the SQL code. You can add a case statement with conditional logic.
If if you don't have SAS 9.4 then you'll have to either use proc means to calculate median, merge it in and execute conditional logic, or conditionally set values to missing ( volume<20) and use proc stdize.
... View more