Skip to main content
Solved

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

  • June 18, 2024
  • 2 replies
  • 153 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 😊

2 replies

Thu Mai
Master Trendsetter
Forum|alt.badge.img+10
  • Master Trendsetter
  • Answer
  • June 19, 2024

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
  • Apprentice Author
  • June 20, 2024

Thanks, Thu Mai. This is working for us: