hi Iโm running an app that makes a list of dogs, for the dog ID I need it to be โINCREASING NUMBER/ACTUAL YEARโ like 0001/2021, and i need that for every new year it restarts to 0 again
Solved! Go to Solution.
This oneโs a challenge! Try this (itโs a long one; youโll need to scroll to see it all):
CONCATENATE(
RIGHT(
CONCATENATE(
"0000",
(
NUMBER(
ANY(
TOP(
SORT(
SPLIT(
SUBSTITUTE(
CONCATENATE(
SELECT(
table[column],
ENDSWITH([column], ("/" & YEAR(TODAY())))
)
),
("/" & YEAR(TODAY())),
""
),
" , "
),
TRUE
),
1
)
+ LIST("-1")
- LIST("")
)
)
+ 1
)
),
4
),
("/" & YEAR(TODAY()))
)
HI,
Better to use UNIQUEID() in initial value column
Refer this URL for more information
iโm using uniqueid but i need a increasing id with a year, and i need that for every new year it restarts to 0 again
Itโs just regular id or key column too?
I have the similar idea for key, but have to change it because of if two users create new row(form) at the same time you going to get the same id for both
Kindly refer this URL:
Also reference:
This oneโs a challenge! Try this (itโs a long one; youโll need to scroll to see it all):
CONCATENATE(
RIGHT(
CONCATENATE(
"0000",
(
NUMBER(
ANY(
TOP(
SORT(
SPLIT(
SUBSTITUTE(
CONCATENATE(
SELECT(
table[column],
ENDSWITH([column], ("/" & YEAR(TODAY())))
)
),
("/" & YEAR(TODAY())),
""
),
" , "
),
TRUE
),
1
)
+ LIST("-1")
- LIST("")
)
)
+ 1
)
),
4
),
("/" & YEAR(TODAY()))
)
You are the best thanks
hi steve iโm getting a problem, it is stuck on 0002 now i donโt know why
itโs only adding up the first record and not the last
User | Count |
---|---|
43 | |
30 | |
24 | |
23 | |
13 |