Skip to main content
Solved

Text function to remove multiple parents from a level 0 sub-account in GL metadata

  • Jun 18, 2024 9:55 PM UTC
  • 2 replies
  • 422 views

Hi. I’m new to Pigment so hoping someone has solved this problem before.

Has anyone been able to parse out the rightmost X number of characters that appear after any number of colons in a dimension member? e.g. [60001 Personnel Costs : XYZ : ABC: Salaries and Wages] should return [60001 - Salaries and Wages], where XYZ and ABC are illustrative of potential sub-accounts that need to be removed.

Best answer by Thu Mai

Hi Chedi, you can use TEXT functions in Pigment to get the right outcome you want, for example: LEFT, RIGHT, MID, … I think they’re quite smilar to Excel TEXT functions

For your case, the formula would be simple as this: 

Hope my answer helps 😊

View original

2 replies

Thu Mai
Master Trendsetter
Forum|alt.badge.img+10
  • Master Trendsetter
  • Answer
  • Jun 19, 2024 4:24 AM UTC

Hi Chedi, you can use TEXT functions in Pigment to get the right outcome you want, for example: LEFT, RIGHT, MID, … I think they’re quite smilar to Excel TEXT functions

For your case, the formula would be simple as this: 

Hope my answer helps 😊


  • Author
  • Wallflower
  • Jun 20, 2024 3:09 PM UTC

Thanks, Thu Mai. This is working for us: