Unpivoting removes rows with null values

Hi, I had been thrown off by this for few hours, when I realized what was happening
So below you would notice that the Feedback# had 2746 distinct values - some of these feedback numbers had all null values for different feedback questions.

Once I Unpivoted(all columns other than feedback#) , the Feedback # showed 1863 values. Now I did check, the difference of 883 is basically the those Feedback# that had all null values for different feedback questions.

I had not expected this behaviour of power query. I just assumed that just as previously it was displaying a feedback#, that had all null values, it would continue to do the same even as I unpivoted the other columns.

Please can you share some more information on this , or any resource that I can refer to under stand this behaviour of power query

Thanks,

This is expected behavior, unpivoting is a great way to remove rows with null values.

If you want/need to keep the blank rows, you’ll need to replace the null values with 0 in at least one column before unpivoting.

NOTE: any column where you have not replaced the null with 0 will not show an entry for that value.

@Heather Got you, That helps :slight_smile:

Thank you.