Auto Code Generation
Hi all-
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?
The help is much appreciated, thank you!
Answers
-
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.2 -
I recommend reading through some of these related posts, which should be able to guide on a solution:
- https://community.anaplan.com/t5/Anaplan-Platform/Auto-Number/td-p/50071
- https://community.anaplan.com/t5/Anaplan-Platform/sequential-numbering-in-line-item/td-p/44633
- https://community.anaplan.com/t5/Anaplan-Platform/Adding-new-people-to-a-numbered-list-with-code-auto-generated/td-p/87141
2 -
@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?
0