How to create a column in a view with a sequential row number
I have searched the forum and did not find anything that directly answers this.
i have a table with two columns gross and net values. I created two views each sorted by the Gross value and the net values. I would like to add a new column to each view and have the value start at 1 in row one through x number of rows incrementing by 1 for each row.
example of the gross view. The net view would also have 4 rows but different order.
Place Gross
1 10
2 13
3 17
4 22
9 replies
-
Hi,
Take a look at this post and see if it's what you're looking for.
-
I read all the replies in that post and comments about using a select table could be an issue. I was hoping to see if anyone else had an option to try.
-
The necessity to use a "select" depends on the structure of your database.
To add a row counter, in a context where a "select" is unavoidable, I use:
let myt := Text; cnt(select Table where Text < myt) + 1
-
Hi, just thought I'd let you know that you can also display an index column using the View Widget.
Content aside
- Status Answered
- 1 mth agoLast active
- 9Replies
- 81Views
-
4
Following