davidcoder
New Member
- Joined
- Oct 8, 2013
- Messages
- 1
Hi, I'm trying to group value for category column, I have a source data like below :
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Category[/TD]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Item[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]Cat A[/TD]
[TD]2[/TD]
[TD]AA[/TD]
[TD]Item 1[/TD]
[TD]$2[/TD]
[/TR]
[TR]
[TD]Cat A[/TD]
[TD]2[/TD]
[TD]AA[/TD]
[TD]Item 2[/TD]
[TD]$3[/TD]
[/TR]
[TR]
[TD]Cat B[/TD]
[TD]3[/TD]
[TD]BB[/TD]
[TD]Item 3[/TD]
[TD]$4[/TD]
[/TR]
[TR]
[TD]Cat B[/TD]
[TD]3[/TD]
[TD]BB[/TD]
[TD]Item 4[/TD]
[TD]$5[/TD]
[/TR]
</tbody>[/TABLE]
Below is how I want to present my data in pivottable:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]+ Cat A[/TD]
[TD]2[/TD]
[TD]AA[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
[TD][/TD]
[TD][/TD]
[TD]$2[/TD]
[/TR]
[TR]
[TD]
[TD][/TD]
[TD][/TD]
[TD]$3[/TD]
[/TR]
[TR]
[TD]+ Cat B[/TD]
[TD]3[/TD]
[TD]BB[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
[TD][/TD]
[TD][/TD]
[TD]$4[/TD]
[/TR]
[TR]
[TD]
[TD][/TD]
[TD][/TD]
[TD]$5[/TD]
[/TR]
</tbody>[/TABLE]
Can this be done in pivottable ? Thanks for your help.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Category[/TD]
[TD]ID[/TD]
[TD]Name[/TD]
[TD]Item[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]Cat A[/TD]
[TD]2[/TD]
[TD]AA[/TD]
[TD]Item 1[/TD]
[TD]$2[/TD]
[/TR]
[TR]
[TD]Cat A[/TD]
[TD]2[/TD]
[TD]AA[/TD]
[TD]Item 2[/TD]
[TD]$3[/TD]
[/TR]
[TR]
[TD]Cat B[/TD]
[TD]3[/TD]
[TD]BB[/TD]
[TD]Item 3[/TD]
[TD]$4[/TD]
[/TR]
[TR]
[TD]Cat B[/TD]
[TD]3[/TD]
[TD]BB[/TD]
[TD]Item 4[/TD]
[TD]$5[/TD]
[/TR]
</tbody>[/TABLE]
Below is how I want to present my data in pivottable:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]+ Cat A[/TD]
[TD]2[/TD]
[TD]AA[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Item 1
[/TD][TD][/TD]
[TD][/TD]
[TD]$2[/TD]
[/TR]
[TR]
[TD]
Item 2
[/TD][TD][/TD]
[TD][/TD]
[TD]$3[/TD]
[/TR]
[TR]
[TD]+ Cat B[/TD]
[TD]3[/TD]
[TD]BB[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Item 3
[/TD][TD][/TD]
[TD][/TD]
[TD]$4[/TD]
[/TR]
[TR]
[TD]
Item 4
[/TD][TD][/TD]
[TD][/TD]
[TD]$5[/TD]
[/TR]
</tbody>[/TABLE]
Can this be done in pivottable ? Thanks for your help.
Last edited: