Adding serial numbers for different products

I have a form set up and i want a sequential numbering formula to make sure the following happens.
17/12 /2021 - Product A - A00001
17/12 /2021 - Product B - B00001
18/12 /2021 - Product A - A00002
19/12 /2021 - Product A - A00003
20/12 /2021 - Product B - B00002

Solved Solved
0 5 243
1 ACCEPTED SOLUTION

COUNT(
  FILTER(
    "YOURTABLE",
    [PRODUCTNAMECOLUMN]=[_THISROW].[PRODUCTNAMECOLUMN]
  )
)+1

Put this instead of the MAX()

View solution in original post

5 REPLIES 5

Here is a good topic about it

this will be only used by one user. (MAX(MyTable[Serial]) + 1), how do i change this to accommodate what i want?

CONCATENATE(
  right([Product Name], 1), 
  right(
    concatenate(
      "0000", 
      MAX(MyTable[Serial]) + 1
    ), 
    5
  )
)
  • That first part (with the right(product name) bitโ€ฆ) is only there to get the โ€œAโ€ โ€œBโ€ or whatever value from the product name.
    • You might find better ways to get that

the issue im getting with this is
17/12 /2021 - Product A - A00001
17/12 /2021 - Product B - B00002
18/12 /2021 - Product A - A00003
19/12 /2021 - Product A - A00004
20/12 /2021 - Product B - B00005

COUNT(
  FILTER(
    "YOURTABLE",
    [PRODUCTNAMECOLUMN]=[_THISROW].[PRODUCTNAMECOLUMN]
  )
)+1

Put this instead of the MAX()

Top Labels in this Space