For different line numbering, you can try the following:
=RunningValue(CountDistinct("YourTableName"),Count,"YourTableName")
If the report has only one level of grouping, you can group your values ββin an SQL query, and then add a new column, ROW_NUMBER() OVER(...) , already numbering your rows in the SQL query.
Konza source share