cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dom87326
Helper II
Helper II

Unpivot other columns with null values

Hello all, 

 

I have the following table: 

Dom87326_2-1651521115262.png

 

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

Dom87326_3-1651521149442.png

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

Thanks!



1 ACCEPTED SOLUTION
dhruvinushah
Super User
Super User

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

dhruvinushah_0-1651522713658.png


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.









View solution in original post

1 REPLY 1
dhruvinushah
Super User
Super User

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

dhruvinushah_0-1651522713658.png


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.









Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors
Top Kudoed Authors