wakerider017
Board Regular
- Joined
- Jun 10, 2015
- Messages
- 77
I am not sure how to do this with a data set I have...
Data:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Group[/TD]
[TD]Week 1[/TD]
[TD]Week 2[/TD]
[TD]Week 3[/TD]
[TD]Week 4[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]A[/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Mark[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[TD]A[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tim[/TD]
[TD]A[/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
List the week and each person that has a 'Yes' in that week.
Would prefer to do this in a pivot (if possible), as the actual data set is quite large (~50,000 records).
Filter to only show group A
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Result:[/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD]Week 1[/TD]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Week 2[/TD]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Week 2[/TD]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Week 2[/TD]
[TD]Tim[/TD]
[/TR]
[TR]
[TD]Week 3[/TD]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Week 4[/TD]
[TD]Bob[/TD]
[/TR]
</tbody>[/TABLE]
Data:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Group[/TD]
[TD]Week 1[/TD]
[TD]Week 2[/TD]
[TD]Week 3[/TD]
[TD]Week 4[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]A[/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Mark[/TD]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]Sue[/TD]
[TD]A[/TD]
[TD]Yes[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tim[/TD]
[TD]A[/TD]
[TD][/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
List the week and each person that has a 'Yes' in that week.
Would prefer to do this in a pivot (if possible), as the actual data set is quite large (~50,000 records).
Filter to only show group A
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Result:[/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD]Week 1[/TD]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Week 2[/TD]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Week 2[/TD]
[TD]Sue[/TD]
[/TR]
[TR]
[TD]Week 2[/TD]
[TD]Tim[/TD]
[/TR]
[TR]
[TD]Week 3[/TD]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Week 4[/TD]
[TD]Bob[/TD]
[/TR]
</tbody>[/TABLE]