I'm trying to automatically create budget codes after a new expense has been entered via input grid on a UX page. Overall, I'm having trouble generating a numerical sequence after the other parts of my concatenated code. I've so far been using RANK(1, DESCENDING, SEQUENTIAL) but having it skip by 15 every line.
Also, after these expenses are sent through, how can I add on to the last number instead of referencing the same sequence again and again?
I am sorry I don't think I understood your question but I will give it a shot. Since you are creating codes, is it possible to parse out the numeric part of the code and then use MAX to get the latest in another line item (separate module since you don't need the dimensions)? That way you have the latest numeric and can manipulate it as required. Refer back the manipulated line item to create your code.
@ankit_cheeni I could see that working, yes. I'm confused on how to add 1 to a previous code if the two attributes are selected again at a later time.
For example: If OpEx(OE) & Hardware(HW) are selected as attributes, the code = OEHW1. If in the future they add another expense of OpEx & Hardware, how can I make it that the code = OEHW2? Or to uniquely identify each expense?