cmcreynolds
Active Member
- Joined
- May 21, 2015
- Messages
- 295
Hello -
I am needing to do something and I'm not sure what the verbage is used to describe it.
I want to take this table (the way my data is currently set up):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Reviewer
[/TD]
[TD]Citation
[/TD]
[TD]Ques1
[/TD]
[TD]Ques2
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]A
[/TD]
[TD]4
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]B
[/TD]
[TD]5
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]C
[/TD]
[TD]2
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]A
[/TD]
[TD]4
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]B
[/TD]
[TD]4
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]C
[/TD]
[TD]2
[/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]
And turn it into this table (how I need it to run Cohen's Kappa):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Citation
[/TD]
[TD]R1Ques1
[/TD]
[TD]R2Ques1
[/TD]
[TD]R1Ques2
[/TD]
[TD]R2Ques2
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]4
[/TD]
[TD]4
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]5
[/TD]
[TD]4
[/TD]
[TD]3
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[TD]5
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And I'm not sure how the "new" field names would be even created/populated? I just listed what I thought the result would be.
I put this thread in Power BI because I know PowerQuery has an "unpivot" option, but I'm not sure how it would help?
Thank you for direction.
I am needing to do something and I'm not sure what the verbage is used to describe it.
I want to take this table (the way my data is currently set up):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Reviewer
[/TD]
[TD]Citation
[/TD]
[TD]Ques1
[/TD]
[TD]Ques2
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]A
[/TD]
[TD]4
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]B
[/TD]
[TD]5
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]C
[/TD]
[TD]2
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]A
[/TD]
[TD]4
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]B
[/TD]
[TD]4
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]C
[/TD]
[TD]2
[/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]
And turn it into this table (how I need it to run Cohen's Kappa):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Citation
[/TD]
[TD]R1Ques1
[/TD]
[TD]R2Ques1
[/TD]
[TD]R1Ques2
[/TD]
[TD]R2Ques2
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]4
[/TD]
[TD]4
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]5
[/TD]
[TD]4
[/TD]
[TD]3
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[TD]5
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And I'm not sure how the "new" field names would be even created/populated? I just listed what I thought the result would be.
I put this thread in Power BI because I know PowerQuery has an "unpivot" option, but I'm not sure how it would help?
Thank you for direction.