web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

MT940 Bank statement format setup line86 formula for pulling additional information

(0) ShareShare
ReportReport
Posted on by 40

Hi everyone,

i am importing a MT940 file and require to concatenate the description at line86 example:

:86:456?201234?21Example Description?2212345?23Other description

subtags are: 20,21,22,23 in sequence

so in system will be like displaying:

1234 | Example Description |12345 |Other description

and may i know is there a link to learn this formula designer? Thank you so much.

I have the same question (0)
  • Suggested answer
    Arcadi  Profile Picture
    794 on at
    RE: MT940 Bank statement format setup line86 formula for pulling additional information

    Hi Benjamin, 

    I didn't test this formula but it would look something like:

    IF
    (
        CONTAINS(@.String,"?20"),
        FIRST(SPLIT(INDEX(SPLIT(@.String,"?20"),2).Value,"?")).Value,
        ""
    )
    
    & " | " &
    
    IF
    (
        CONTAINS(@.String,"?21"),
        FIRST(SPLIT(INDEX(SPLIT(@.String,"?21"),2).Value,"?")).Value,
        ""
    ) ...

    Basically the first IF looks if "?20" exists, if it does it splits the string by "?20" and takes the second part, this part is split by "?" and takes the first part.

    Then is concatenation and doing the same for 21, 22....

    Maybe in the text there is a "?" that's not a separator, normally it's escaped with a character, not sure about M940 though. if it was the case that a "??" means a real "?" and not a separator you could do a previous step Replace(@.String, "??", "<TEMP>","false") and after split you convert back to a single "?"...

    Here the documentation for formula functions:

    learn.microsoft.com/.../er-formula-language

  • Benjamin long Profile Picture
    40 on at
    RE: MT940 Bank statement format setup line86 formula for pulling additional information

    Hi Arcadi Burria,

    Thank you so much for the help, The formula works and i am able to get the result I want.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 686 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 585 Most Valuable Professional

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 565

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans