cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors