The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am trying to unpivot columns in transform/power query, but its disappearing some rows from that column. Can you help me why its removing these rows?
Solved! Go to Solution.
Unpivot will drop nulls. If you want to keep the nulls, the only way I know of is to replace all nulls with some placeholder character/value (I'm partial to: ☃ ), unpivot, then switch back your placeholders to null.
If that isn't the issue, please provide some sample data that recreates your issue.
Thankyou, @MarkLaf, for your response.
Hi Jenil_Gala,
We sincerely appreciate your inquiry submitted through the Microsoft Fabric Community Forum.
Based on my understanding, the issue you are facing arises because blank cells in Excel are interpreted as null values in Power Query. When using the Unpivot Columns feature, rows containing null values in the unpivoted column are automatically removed by default.
Kindly follow the procedure outlined below to retain the rows with null values:
Additionally, please refer to the following links for more information:
Replace values and errors - Power Query | Microsoft Learn
Unpivot columns - Power Query | Microsoft Learn
If you find our response helpful, we kindly request you to mark it as the accepted solution and provide kudos. This will assist other community members who may have similar queries. Should you have any further questions, please feel free to contact the Microsoft Fabric community.
Thank you.
Thankyou, @MarkLaf, for your response.
Hi Jenil_Gala,
We sincerely appreciate your inquiry submitted through the Microsoft Fabric Community Forum.
Based on my understanding, the issue you are facing arises because blank cells in Excel are interpreted as null values in Power Query. When using the Unpivot Columns feature, rows containing null values in the unpivoted column are automatically removed by default.
Kindly follow the procedure outlined below to retain the rows with null values:
Additionally, please refer to the following links for more information:
Replace values and errors - Power Query | Microsoft Learn
Unpivot columns - Power Query | Microsoft Learn
If you find our response helpful, we kindly request you to mark it as the accepted solution and provide kudos. This will assist other community members who may have similar queries. Should you have any further questions, please feel free to contact the Microsoft Fabric community.
Thank you.
Hi,
Thanks for reply. I think it was the blanks in my excel data that was causing issues. You are right.
Unpivot will drop nulls. If you want to keep the nulls, the only way I know of is to replace all nulls with some placeholder character/value (I'm partial to: ☃ ), unpivot, then switch back your placeholders to null.
If that isn't the issue, please provide some sample data that recreates your issue.