Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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.
I know how to do this in Excel but not in Query Editor. Hopefully someone can help me out.
Greetings.
Solved! Go to Solution.
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.
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.