Pivoting of rows
Posted: Fri Dec 19, 2014 10:58 am
Hello,
A quick question on pivoting:
I have rows as below from the source:
I am trying to achieve below output:
I have implemented looping in transformer but I was able to achieve the following and yes I have checked the other posts but couldn't really get the solution.
Any advice is appreciated !!
Thanks !!
A quick question on pivoting:
I have rows as below from the source:
Code: Select all
SchoolYear Site Q1A Q1B Q1C
1112 4731 5 5 5
1112 0641 5 5 5
1112 3881 2 4 4
Code: Select all
SchoolYear Site Questions Responses
1112 4731 Q1A 5
1112 4731 Q1B 5
1112 4731 Q1C 5
1112 0641 Q1A 5
1112 0641 Q1B 5
1112 0641 Q1C 5
1112 3881 Q1A 2
1112 3881 Q1B 4
1112 3881 Q1C 4
Code: Select all
SchoolYear Site Questions
1112 4731 Q1A
1112 4731 Q1B
1112 4731 Q1C
1112 0641 Q1A
1112 0641 Q1B
1112 0641 Q1C
1112 3881 Q1A
1112 3881 Q1B
1112 3881 Q1C
1112 4731 5
1112 4731 5
1112 4731 5
1112 0641 5
1112 0641 5
1112 0641 5
1112 3881 2
1112 3881 4
1112 3881 4
Thanks !!