原表:
| Area | Year | Type | Products | 
| Place_1 | 1991 | total | 120 | 
| Place_1 | 1991 | a | 30 | 
| Place_1 | 1991 | b | 90 | 
| Place_1 | 1992 | total | 310 | 
| Place_1 | 1992 | a | 230 | 
| Place_1 | 1992 | b | 80 | 
| Place_2 | 1991 | total | 80 | 
| Place_2 | 1991 | a | 20 | 
| Place_2 | 1991 | b | 60 | 
| Place_2 | 1992 | total | 110 | 
| Place_2 | 1992 | a | 50 | 
| Place_2 | 1992 | b | 60 | 
目标是新增一列,算各type占total的比例,如下:
| Area | Year | Type | Products | Portion | 
| Place_1 | 1991 | total | 120 | 1 | 
| Place_1 | 1991 | a | 30 | 0.25 | 
| Place_1 | 1991 | b | 90 | 0.75 | 
| Place_1 | 1992 | total | 310 | 1 | 
| Place_1 | 1992 | a | 230 | … | 
| Place_1 | 1992 | b | 80 | … | 
| Place_2 | 1991 | total | 80 |  | 
| Place_2 | 1991 | a | 20 |  | 
| Place_2 | 1991 | b | 60 |  | 
| Place_2 | 1992 | total | 110 |  | 
| Place_2 | 1992 | a | 50 |  | 
| Place_2 | 1992 | b | 60 |  | 
不知用SAS该如何实现?如何找到每个place在每一年的total值?
跪谢大牛~