ellyzadg
Board Regular
- Joined
- May 9, 2016
- Messages
- 75
Hi,
I am trying to summarize my data based on rank and position with its corresponding wage.
I'm trying to do it on pivot but cannot produce my desired result. Thank you in advance!
Below is my data
[TABLE="width: 458"]
<colgroup><col span="2"><col><col></colgroup><tbody>[TR]
[TD="align: left"]DATA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]RANK[/TD]
[TD]POSITION[/TD]
[TD]EMPLOYEE[/TD]
[TD]WAGE[/TD]
[/TR]
[TR]
[TD="align: left"]1 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 1[/TD]
[TD="align: right"]3012[/TD]
[/TR]
[TR]
[TD="align: left"]2 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 2[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]3 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 3[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]4 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 4[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]5 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 5[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]6 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 6[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]7 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 7[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]8 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 8[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]9 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 9[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]10 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 10[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]11 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 11[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]12 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 12[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 13[/TD]
[TD="align: right"]570[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 14[/TD]
[TD="align: right"]570[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 15[/TD]
[TD="align: right"]570[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 16[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 17[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 18[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 19[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 20[/TD]
[TD="align: right"]502[/TD]
[/TR]
</tbody>[/TABLE]
While my desired result is:
[TABLE="width: 295"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]RANK[/TD]
[TD]Position[/TD]
[TD] Rate[/TD]
[/TR]
[TR]
[TD="align: left"]Unskilled[/TD]
[TD="align: left"]Laborer[/TD]
[TD="align: right"]3012[/TD]
[/TR]
[TR]
[TD="align: left"]Unskilled[/TD]
[TD="align: left"]Laborer[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]Unskilled[/TD]
[TD="align: left"]Laborer[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]Skilled[/TD]
[TD="align: left"]Aide[/TD]
[TD="align: right"]570[/TD]
[/TR]
[TR]
[TD="align: left"]Skilled[/TD]
[TD="align: left"]Aide[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]Skilled[/TD]
[TD="align: left"]Aide[/TD]
[TD="align: right"]502[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to summarize my data based on rank and position with its corresponding wage.
I'm trying to do it on pivot but cannot produce my desired result. Thank you in advance!
Below is my data
[TABLE="width: 458"]
<colgroup><col span="2"><col><col></colgroup><tbody>[TR]
[TD="align: left"]DATA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]RANK[/TD]
[TD]POSITION[/TD]
[TD]EMPLOYEE[/TD]
[TD]WAGE[/TD]
[/TR]
[TR]
[TD="align: left"]1 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 1[/TD]
[TD="align: right"]3012[/TD]
[/TR]
[TR]
[TD="align: left"]2 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 2[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]3 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 3[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]4 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 4[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]5 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 5[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]6 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 6[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]7 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 7[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]8 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 8[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]9 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 9[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]10 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 10[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]11 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 11[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]12 UNSKILLED[/TD]
[TD="align: left"]LABORER[/TD]
[TD="align: left"]Person 12[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 13[/TD]
[TD="align: right"]570[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 14[/TD]
[TD="align: right"]570[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 15[/TD]
[TD="align: right"]570[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 16[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 17[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 18[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 19[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]2 SEMI SKILLED[/TD]
[TD="align: left"]AIDE,SURVEY[/TD]
[TD="align: left"]Person 20[/TD]
[TD="align: right"]502[/TD]
[/TR]
</tbody>[/TABLE]
While my desired result is:
[TABLE="width: 295"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]RANK[/TD]
[TD]Position[/TD]
[TD] Rate[/TD]
[/TR]
[TR]
[TD="align: left"]Unskilled[/TD]
[TD="align: left"]Laborer[/TD]
[TD="align: right"]3012[/TD]
[/TR]
[TR]
[TD="align: left"]Unskilled[/TD]
[TD="align: left"]Laborer[/TD]
[TD="align: right"]1004[/TD]
[/TR]
[TR]
[TD="align: left"]Unskilled[/TD]
[TD="align: left"]Laborer[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]Skilled[/TD]
[TD="align: left"]Aide[/TD]
[TD="align: right"]570[/TD]
[/TR]
[TR]
[TD="align: left"]Skilled[/TD]
[TD="align: left"]Aide[/TD]
[TD="align: right"]502[/TD]
[/TR]
[TR]
[TD="align: left"]Skilled[/TD]
[TD="align: left"]Aide[/TD]
[TD="align: right"]502[/TD]
[/TR]
</tbody>[/TABLE]