cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gpraveenonline Frequent Visitor
Frequent Visitor

How to add a Serial Number or Row Number Column in Power BI?

You can edit the table by "Edit Query" Option. Find the Add Index Column in the "Add Column" Tab. You can see now the new column is added at the last. Customize the column to rename it as "SNO" or "ROW NUM" or anything preferred.

 

Note: You can add from 0 or from 1.

 

 

You have a Row Number or Serial Number Column Ready.

Praveen Kumar G
Inatech
1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft v-haibl-msft
Microsoft

Re: How to add a Serial Number or Row Number Column in Power BI?

@gpraveenonline

 

You can also add index column which starts from 1 directly as below.

 How to add a Serial Number or Row Number Column in Power BI_1.jpg

 

Best Regards,

Herbert

View solution in original post

5 REPLIES 5
Microsoft v-haibl-msft
Microsoft

Re: How to add a Serial Number or Row Number Column in Power BI?

@gpraveenonline

 

You can also add index column which starts from 1 directly as below.

 How to add a Serial Number or Row Number Column in Power BI_1.jpg

 

Best Regards,

Herbert

View solution in original post

efglynn Regular Visitor
Regular Visitor

Re: How to add a Serial Number or Row Number Column in Power BI?

I think there should be an easier solution -- like a check box that says add the line number to the visual.

prashant_ora Regular Visitor
Regular Visitor

Re: How to add a Serial Number or Row Number Column in Power BI?

That is for power bi modeling,not for live query. I am using live query and using database for tabular model.now on that model i have to create that serial no.

donnarenia Frequent Visitor
Frequent Visitor

Re: How to add a Serial Number or Row Number Column in Power BI?

I came across this post and it is what i need.  However when I create the index column  ..  when I bring it into a table in BI, the number become a series of other numbers and not my 1, 2, 3, index that was created.  I have seen several places where they show you how to create the index column, but How do i use it in my BI Table????

CmdrKeene Regular Visitor
Regular Visitor

Re: How to add a Serial Number or Row Number Column in Power BI?

Perfect!  Exactly what I needed and it only takes a single click. Love it!


CmdrKeene

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)