Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
I wish to have an index of 1,2,3,4 etc into row of type table. So each table in each row gets its own index
I think its something like this
Table.AddIndexColumn( [SortSubTable], "Rank", 1,1)
But how would that look exactly within advanced editor?
Solved! Go to Solution.
What matters is your previous step and All Data. Your step in AE would become
#"Added Custom" = Table.AddColumn(#"Your previous step", "Custom", each Table.AddIndexColumn([All Data], "Rank", 1,1))
Better to insert a custom column and put following formula there which will take care of your previous step as well
= Table.AddIndexColumn([All Data], "Rank", 1,1)
Better to insert a custom column and put this formula there. This would like following in AE
#"Added Custom" = Table.AddColumn(#"Your previous step", "Custom", each Table.AddIndexColumn([SortSubTable], "Rank", 1,1))
What refers to the column of type Table in your example? In my data I call my tables "CatChanges" and the Table column within it is called "All Data".
What matters is your previous step and All Data. Your step in AE would become
#"Added Custom" = Table.AddColumn(#"Your previous step", "Custom", each Table.AddIndexColumn([All Data], "Rank", 1,1))
Better to insert a custom column and put following formula there which will take care of your previous step as well
= Table.AddIndexColumn([All Data], "Rank", 1,1)
You need to put the column to be ranked on in the first column bizzarely also or it wont sort in the correct order.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
82 | |
62 | |
45 | |
41 | |
40 |