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
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 ?

View solution in original post

3 REPLIES 3
richbenmintz
Solution Sage
Solution Sage

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 ?

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
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.