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
littleparrot
New Member

Power query first row data disappeared for no reason

I have come across a very strange situation where the first row of data disappeared for no reason  in the next step (no matter what opertion it is) in Power Query.  Please see below snips. I have tried different ways such as table.buffer(), sort, etc., but no success. In order to make the transformation work properly, I had to do a workaround to remove top two rows. 

 

Data with all rows

littleparrot_2-1701330244056.png

 

Data with top row missing (Index 1 in previous image). 

littleparrot_1-1701330116397.png

 

Anyone has any idea why it happened? Thanks. 

 

 

 

4 REPLIES 4
littleparrot
New Member

I have 3 rows of data with the order of "Date", "Planner", and "Work Description" which repeat every week. The I transformed the data into rows of data with Date, Planned and Work Description each row. The first row (date) somehow disappeared so I had to drop another two rows so the first row would start from date for the next week. As can be seen, the date row with index 4 in previous step changed to index 3 without anything being done. It is very odd. 

Hope this makes sense. 

j_ocean
Helper V
Helper V

If you didn't intend to drop rows 1 and 2 then you must've accidentally clicked something, because that's what your code is telling it to do.

The strange thing is I did not click anything. I used the same code for mutiple work sheets and they all woked well except this one. In order to get the correct data after transformation, I had to do a workaround by droping two rows so the first row will start from Date again as the transformation codes only work correctly on the order of Date, Planner and Work Description. 

wdx223_Daniel
Super User
Super User

Your code skipped the first two rows, then the result table started from the 3rd row.

isn't it right?

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.

Top Solution Authors
Top Kudoed Authors