De-pivot excel file [SOLVED]
I am trying to de-pivot a excel file like below, the "NA" are null values, I have Field3 and field4 set as integers
I have:
attribute name >> edit list >> attribute name = field3 & atrributes = .*
index attribute = myNewFieldName
checked create nominal index
checked keep missings
I keep getting the error:
Thanks
I have:
attribute name >> edit list >> attribute name = field3 & atrributes = .*
index attribute = myNewFieldName
checked create nominal index
checked keep missings
I keep getting the error:
Any help is greatly appreciated
Process failed
"attributes have different value types: no conversion performed"
Thanks
id field1 field2 field3 field4 |
1 stuff aaa 4 3 |
2东西bbb 7 6 |
3 stuff ccc NA 1 |
4 stuff ddd 3 3 |
5 stuff eee 9 NA |
6 stuff fff 6 NA |
Tagged:
0
Answers
Best regards,
妈rius
I need,
id field1 field2 Cnewfeld Col5
1 stuff aaa field3 4
1 stuff aaa field4 3
2 stuff bbb field3 7
2 stuff bbb field4 6
3 stuff ccc field3 NA
3 stuff ccc field4 1
4 stuff ddd field3 3
4 stuff ddd field4 3
5 stuff eee field3 9
5 stuff eee field4 NA
6 stuff fff field3 6
6 stuff fff field4 NA