Forum Discussion

Dom87326's avatar
Dom87326
Helper II
4 years ago
Solved

Unpivot other columns with null values

Hello all, 

 

I have the following table: 

 

I'm trying to make it look like this, by unpivoting other columns except 'Respondent name' and 'Respondend unique ID'.

However I loose respondent 28230144 and city San Antonio. Is it possible to perform unpivot operation while keeping the null values?

Thanks!



  • Try replacing the null value with a blank space in the four questions columns that you are unpivoting. 


    After you have done this, select the Respondent Name and Resp ID column and press the "Unpivot Other columns". 

    This will work to give you the San Antonio result in your Unpivot. 

     

    Please give thumbs up and mark this as the solution. Thanks.

2 Replies

  • dhruvinushah's avatar
    dhruvinushah
    Responsive Resident

    Try replacing the null value with a blank space in the four questions columns that you are unpivoting. 


    After you have done this, select the Respondent Name and Resp ID column and press the "Unpivot Other columns". 

    This will work to give you the San Antonio result in your Unpivot. 

     

    Please give thumbs up and mark this as the solution. Thanks.

    • anil600232's avatar
      anil600232
      New Member

      Hi,
      I have a similar scenario. But I cant replace null with blank space because there are hundreds of columns and rows. Any other workaround?

      Thank you!