I want to create unique id in specific format like TASK00001.
whenever new task is created, system automatically create id TASK00002 and so on.
please help
Solved! Go to Solution.
Hi ,
The most straight forward way would be this formula :
IF(
[_THISROW].[_RowNumber] - 1 < 10,
CONCATENATE("TASK", "00000", ([_THISROW].[_RowNumber] - 1)),
IF(
[_THISROW].[_RowNumber] - 1 < 100,
CONCATENATE("TASK", "0000", ([_THISROW].[_RowNumber] - 1)),
IF(
[_THISROW].[_RowNumber] - 1 < 1000,
CONCATENATE("TASK", "000", ([_THISROW].[_RowNumber] - 1)),
IF(
[_THISROW].[_RowNumber] - 1 < 10000,
CONCATENATE("TASK", "00", ([_THISROW].[_RowNumber] - 1)),
CONCATENATE("TASK", "0", ([_THISROW].[_RowNumber] - 1))
) ) ) )
It's a shameful formula ๐
You need to add a new column (not a virtual one), and you can use this formula inside your Initial value field and use it as a key column.
If you don't know how to add a new column : In your database, create a new column for the ID (in my screen it's TASKID) :
Then go back to your app and regenerate the table using the refresh button:
User | Count |
---|---|
18 | |
15 | |
10 | |
7 | |
4 |