Want to add the row number to a dataset.
Col
A, B, C
becomes
Col
A, B, C, D
with the value in Col D = the row number
I thought I could do something like
View("Select *, Row_Number()", Dataset)
but that doesn't work.
Want to add the row number to a dataset.
Col
A, B, C
becomes
Col
A, B, C, D
with the value in Col D = the row number
I thought I could do something like
View("Select *, Row_Number()", Dataset)
but that doesn't work.
selectStar({path.to.dataset}, idx(), '_rowIdx', 'I')
https://www.automation-pros.com/simaids/doc/expression.selectstar.html
Strictly speaking, view()
can do this too, just slower:
view("Select *, _r", {path.to.dataset})
https://www.automation-pros.com/simaids/doc/expression.view.html
i get error Unknown function: 'idx'
That function is new in V2:
{ As is selectStar
. }
Will take a look at V2
Thanks