Unique ID creation

Hii,

I want to create many unique ID as per the below pattern

โ€˜MSSCDN-202001โ€™
โ€˜MSSCDN-202002โ€™
โ€˜MSSCDN-202003โ€™
โ€˜MSSCDN-202004โ€™
โ€˜MSSCDN-202005โ€™

What formula should I use to get this unique IDs?

0 1 157
1 REPLY 1

As a rule of thumb, you shall avoid using/creating sequential keys or numbers as 2 or more users creating a record at the same time, can create 2 or more identical keys/numbers and thereโ€™s no way to avoid that. Therefore; basically you can provide it with this:

CONCATENATE(
	"MSSCDN-",
	NUMBER(
		MID(
			LOOKUP(MAX(TableName[_RowNumber]),"TableName","_RowNumber","Key"),
			(FIND("-",LOOKUP(MAX(TableName[_RowNumber]),"TableName","_RowNumber","Key")) + 1),
			LEN(LOOKUP(MAX(TableName[_RowNumber]),"TableName","_RowNumber","Key"))
		)
	) + 1
)

BUT YOU SHOULDNโ€™T!


Top Labels in this Space