Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors