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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors