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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
tabuzahra
Helper II
Helper II

Row index numbers changes

Hello,

I'm not that experienced in Power Bi. Though, I have created an index for each row for the table (x) which starts from 1 and this table is read from an Excel sheet.


I also have excluded (filtered) some of those indexes as some rows have duplicates so I wanted to eliminate specific rows depend on the index number.


After I have applied it, i noticed that whenever the Excel sheet is modified and I refresh the table from Power Bi, those indexes numbers that were filtered has been changed.


Is there any solution that I can have fixed index number that will never change? or is there any solution to solve this issue?

1 ACCEPTED SOLUTION
Nathaniel_C
Community Champion
Community Champion

Hi @tabuzahra ,

When you create an index in Power Query, it increments on every row. The only thing that I could see would be to hard code 1,2,3 into a column in Excel that is part of your table.  That way the values should read 1,3 if you delete row 2 and you retain your original numbering of the remaining rows.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
Nathaniel_C
Community Champion
Community Champion

Hi @tabuzahra ,

When you create an index in Power Query, it increments on every row. The only thing that I could see would be to hard code 1,2,3 into a column in Excel that is part of your table.  That way the values should read 1,3 if you delete row 2 and you retain your original numbering of the remaining rows.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.