Let's say I have column username and a username is "JonSmith-81". What would be the formula to return just "JonSmith"?
@zdlee
Using the Find function would work here...Find("-",line item) which will give you a number. Then, in another line item, you can use the Left() function, Left(line item, results of the find - 1). You have to subtract the one because the Find is telling you where the - is.
Rob
@zdlee: try this formula given your example:
LEFT(username, FIND("-", username) - 1)
@rob_marshall looks like you beat me to the answer!
Correct me if I'm wrong, but text parsing is a pretty expensive operation and should be avoided or at least only performed in a system module (calc once and reference)?
@jedwards
Yes, beat you by that much. And yes, you are correct, text parsing is fairly expensive, but sometimes it has to be done. So, when it is required, it is best to split it over multiple line items instead of putting all of the parsings in one line item. And lastly, yes, it is best to be done in SYS module.
I have A6 as the parent list and two sibling lists: A6.5 and A7. The A7 list includes an attribute that maps to A6.5. In the UX, the user will select A6.5 using a content selector, and the grid (dimensioned by A7) should display only the A7 items associated with that selected A6.5. Since the selector is a page context and…
A quick reminder of the Bulk Copy functionality. Bulk Copy allows you copy large volumes of data from one slice of a model to another in a single, optimised operation, instead of using formulas or imports. Use case: copy a version (RF1) into a prior year version (PY RF1) using a versions list to allow for year-on-year…
We are looking for Anaplan end-users to provide feedback on their experiences with the Excel add-in. Interested individuals will respond to this 5-minute survey to help us understand personal needs and behavior when using the add-in. The feedback provided by survey takers is essential to the roadmap of Anaplan's products.…