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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

HELP: Loss of records when using UNPIVOT

Dear all,

 

I have a small set of records (total 530) representing a survey. Each record represents an answer, the rest of the columns represent the answers to specific question within the sequence of answer.

In order to visualize the results, I have unpivoted the "question answers", ending up with three columns (AnswerID, Question, Weight of Answer).

 

My issue is: I start with 530 AnswerIDs and after unpivoting I only have 512 (lost 18 on the way).

 

Do you have any idea on what I could be doing wrong? 

 

Thanks,

LMA

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , are there any null/blank values ?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
richbenmintz
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

Can you provide the data?



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


amitchandak
Super User
Super User

@Anonymous , are there any null/blank values ?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak - indeed, the blanks were being left out in the pivoting. I worked around it by entering a random value in the blanks, pivoting and then replacing the value again by "null". Thank you!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors