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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Counter on values

Hi all,

 

I'm rather new to Power BI and I would like some help with creating a counter. The first time a value occurs in a column, I would like to have value "1", the second time it occurs value "2", and so on.

 

2023-03-30 12_05_59-Book1 - Excel.jpg

 

I know how to do this in Excel but not in Query Editor. Hopefully someone can help me out.

 

Greetings.

1 ACCEPTED SOLUTION
ChielFaber
Responsive Resident
Responsive Resident

I think this blogpost by Reza Rad might help you get to your solutions:

 

https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query

 

It uses an index with a group by function. The explanation is easily written and you can just follow the steps replacing the example columnames by the column names in your data.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@ChielFaber  Thank you very much

ChielFaber
Responsive Resident
Responsive Resident

I think this blogpost by Reza Rad might help you get to your solutions:

 

https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query

 

It uses an index with a group by function. The explanation is easily written and you can just follow the steps replacing the example columnames by the column names in your data.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.