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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Pivot columns and remove null values

I'm new to power bi, so I'm not sure where to go from here.

 

I have data that I need to move from 3 rows to 3 columns. It starts like this: 

jyoung_auto61_0-1702935500566.png

I pivot the Question column by the Answer column, which is ultimately what I want. I want 3 columns, NPS, Support, and Product. However, when I pivot, I'm left with 3 rows when I want one row with 605A14.xxx.75fe and one answer in each column for NPS, Support and Product.

 

How do I get ride of the null values and combine the numbers from here? 

jyoung_auto61_1-1702935663457.png

 

1 ACCEPTED SOLUTION
spinfuzer
Super User
Super User

There is something different about the three rows and that is probably why it is splitting it into three rows.  Make sure all the other columns are identical if you want it to appear in one row.  Maybe the time stamp is different by a fraction of a second or something.  Try removing the Date Time before the pivot step to see if it lines up properly.  If it does then maybe round your Date Time to the nearest second.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Ok yes, never would have thought that could be an issued. I changed the date/time column to just the date, then did the pivot and it worked. Thank you for the simple solution.  

spinfuzer
Super User
Super User

There is something different about the three rows and that is probably why it is splitting it into three rows.  Make sure all the other columns are identical if you want it to appear in one row.  Maybe the time stamp is different by a fraction of a second or something.  Try removing the Date Time before the pivot step to see if it lines up properly.  If it does then maybe round your Date Time to the nearest second.

How would this apply to completion dates being different, and how can it be factored in so the data is not lost.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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