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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
yarelbelanger17
New Member

missing values when unpivoting column

I have a data set that has month over month values so I want the months to be columns instead of rows. I have values for all rows, but when I unpivot- I get nulls with some where there should be a number. I only pulled in the data I needed and made sure the format type was correct. Has anyone else had this issue? 

 

Capture.PNG

 
 
 
4 REPLIES 4
v-yiruan-msft
Community Support
Community Support

Hi @yarelbelanger17 ,

Whether your problem has been resolved?

 

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

Can you go to visualization and create a pivot in matrix and and check the values. I doubt, mutiple rows has been created during unpivot. Ans some of them have 0 values.

v-yiruan-msft
Community Support
Community Support

Hi @yarelbelanger17,

Could you please provide the related table structure and some sample data in this table? And please also provide the applied step script for Unpivot(see below screenshot). Thank you.

unpivot.JPG

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
VasTg
Memorable Member
Memorable Member

@yarelbelanger17 

 

Provide some sample data.. I could not simulate the error. I have seen it in the past and vaguely remember it was a datatype issue. Maybe convert them to text and unpivot..

 

 

Connect on LinkedIn

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.