Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi guys,
I have a field called unique_id.
I would like to add one to this column per row like this
153480
153481
153482
153483
153484
and so on...
Is this possible in an expression? Or another way?
Thanks ![]()
Thanks for all your help guys. I have figured out a way to do this.
In my load script I created an extra field
RowNo() as 'row_num'
I then created an expression which adds the unique_id to the row_num field
=unique_id + row_num
I wouldn't have figured this out without your help so thank you very much again ![]()
May be:
RangeSum(unique_id, RowNo())
Create a straight table
Dimension - Unique_id
Expression - concat( bin_code,',')
RangeSum(unique_id, RowNo()-1)
Thanks you for fixing the expression ![]()
Thanks for your help so far guys. None of these has worked so please keep going! ![]()
Would you be able to share a sample?
HI,
Could address in script?
IF( Rowno()= 1, Unique_id, Previous(Unique_id) +1) as Unique_id
Of
IF( Rowno()= 1, Unique_id,
IF( Unique_id =Previous(Unique_id), Previous(Unique_id)+1) as Unique_id
Mark
unique_id + RangeSum(Above(sum(1), 0, rowno()))-1
Thanks for all your help guys. I have figured out a way to do this.
In my load script I created an extra field
RowNo() as 'row_num'
I then created an expression which adds the unique_id to the row_num field
=unique_id + row_num
I wouldn't have figured this out without your help so thank you very much again ![]()