I have 9 data sources joined; some of them are at Account/State level and some are only at Account level. I need to be able to calculate the percentage of sales by Account/State in the base data set so that I can apply that percentage to other Account-only level variables to approximate an Account/State value for numerators and denominators. The attached Excel file shows how the formula would work, but I need to translate this to PROC SQL. Anyone have any ideas? Any help is greatly appreciated.
... View more