i am trying to add a column 'Number' in my report, so far all i can do is use row_number()
select row_number over (order by date_a) as N, id, date_a
from my_table
order by date_a
the problem is when i start using the faceted search (which is essential), the numbers of course are not generated again, so i get results like these
| n | date_a |
|---|---|
| 33 | 1/1/2020 |
| 150 | 3/2/2020 |
| 491 | 2/4/2020 |
| 647 | 8/6/2020 |
so is there a way to generate row numbers automatically after each filter or a java-script to generate numbers from client-side