Increment row value by 1

I have a column named Row(s) - Enumlist and in the form, I need itโ€™s last valid value + 1 preselected.
for eg., if last value in Row(s) is Row 1 then I preselected value should be Row 2
2X_a_aa8e96b4f98a8175001fe406a0ba06af01333db8.png

I wrote below expression in Initial Value.

LIST(ANY(SELECT(Row[Row(s)], ([Row_ID] = ANY(ORDERBY(FILTER(โ€œRowโ€,ISNOTBLANK([Row(s)])), [Completion Timestamp],TRUE))), TRUE)))

Itโ€™s giving me result โ€œRow 1โ€. how can I increment it by 1? I need Row 2 as result.

Any suggestions would be great. Thanks.

Solved Solved
0 3 1,141
1 ACCEPTED SOLUTION

Iโ€™ve found the solution. The below expression worked for me. I hope there must be some simple solution. Itโ€™s complex.

CONCATENATE("Row ", LIST(NUMBER(INDEX(SPLIT(LIST(ANY(SELECT(Row[Row(s)], ([Row_ID] = ANY(ORDERBY(FILTER(โ€œRowโ€,ISNOTBLANK([Row(s)])), [Completion Timestamp],TRUE))), TRUE))), " "),2)) + 1))

Thanks @WillowMobileSystems for your reply. @Steve @Suvrutt_Gurjar @AlexM Let me know if there is any simple alternative available. Thanks in Advance

View solution in original post

3 REPLIES 3

The error you posted is complaining that the number of open parentheses do not match the number of closed parentheses. You are missing one somewhere. Did you fix that already?

@WillowMobileSystems : Yes, I fixed it and updated the question.

LIST(ANY(SELECT(Row[Row(s)], ([Row_ID] = ANY(ORDERBY(FILTER(โ€œRowโ€,ISNOTBLANK([Row(s)])), [Completion Timestamp],TRUE))), TRUE)))

Now I am getting row value โ€œRow 1โ€ but I need โ€œRow 2โ€ as a result. Any suggestion?

Iโ€™ve found the solution. The below expression worked for me. I hope there must be some simple solution. Itโ€™s complex.

CONCATENATE("Row ", LIST(NUMBER(INDEX(SPLIT(LIST(ANY(SELECT(Row[Row(s)], ([Row_ID] = ANY(ORDERBY(FILTER(โ€œRowโ€,ISNOTBLANK([Row(s)])), [Completion Timestamp],TRUE))), TRUE))), " "),2)) + 1))

Thanks @WillowMobileSystems for your reply. @Steve @Suvrutt_Gurjar @AlexM Let me know if there is any simple alternative available. Thanks in Advance

Top Labels in this Space