Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello. I am looking to create a serial/index column in my table that is easy to reference when processing orders outside of Power BI.
I have tried adding an index column to my table, but this does not work as the data being entered to the table changes (deleted/modified) from time to time. This left me with the index numbers shifting to different rows. Which made it useless when referencing outside of Power BI.
I saw someone suggest hardcoding serial/index into the data source, in this case is excel. But this wouldn't work either as rows are automatically added to the data source (excel file). I would have to have a formula that would create an index so it could dynamically populate when rows are automatically added to the spreadsheet.
I prefer to find a solution in Power BI if possible. And the solution needs to be easily referencable.
Solved! Go to Solution.
@shaebert , The best power solution is to add an index column in the power query. If that did not work then you should bring it from the source.
What you are looking is a primary key(incremental id) that can be best done at source.
@shaebert , The best power solution is to add an index column in the power query. If that did not work then you should bring it from the source.
What you are looking is a primary key(incremental id) that can be best done at source.
How can I dynamically do that in excel?
I did some research and found a way to create a dynamic / incremental index/serial column following the formula described here: https://www.thoughtasylum.com/2013/06/29/Auto-Incrementing-in-Excel/
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
71 | |
56 | |
39 | |
35 |
User | Count |
---|---|
66 | |
66 | |
59 | |
53 | |
45 |