Forum Discussion

heylookitsme's avatar
heylookitsme
Iron Contributor
Mar 27, 2025
Solved

Power Query INDEX Column

I added a column for Index using Power Queries built in Index Column function and I placed it as the last item in steps. When I run the query there are 8,300 rows in my table however, the INDEX colum...
  • SergeiBaklan's avatar
    Mar 27, 2025

    INDEX is applied to the table returned on previos step (by default). If on previous is filtered table, index will be applied to it. It can't be empty cell here, INDEX applies exactly as many indexes as we have rows in the table.

    If you add INDEX before filtering it some indexes dissaper together with filtered rows.

    However, I didn't catch how you receive such result. If you query the table with 8300 rows, transform it by filterenig into the table with 6207 rows and load result into the grid as another table, in that resulting table shall be exactly 6207 rows without any blanks.

Resources