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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Electronic reporting - Filter main accounts in export

(1) ShareShare
ReportReport
Posted on by 25
Hi all. In Electronic Reporting, I have a file export which contains ledger transactions. I want to filter the export based on for example a range of main account, e.g. 30000..39999, or for example if the main account starts with either 4, 5, 6 or 7. I've tried different things using a calculated field and the filter function, but I don't get it to work.
 
Can anyone help me out? Thanks in advance.
  • Adis Profile Picture
    6,997 Super User 2026 Season 2 on at
    Hey,

    What filter function do you mean?
     
    I would go either to the format or model mapping designer and edit the formula.
     
     
     
     
    I guess you will need on of the logical functions:
     
     
     
    Kind regards, Adis
  • tnaess Profile Picture
    25 on at
    Hi Adis. Thank you for your answer. As mentioned, I've tried to filter using a calculated field. I have for example filtered my revenue accounts which starts with the digit 3 by using this formula: 
     
    STARTSWITH('TR.MainAccount'.MainAccountId, "3")
     
    What I'm looking for is something that equals this sql query:
     
    SELECT *
    FROM LedgerTrans
    WHERE MainAccountId BETWEEN 30000 AND 39999
    AND MainAccountId <> 39500;

     
  • Adis Profile Picture
    6,997 Super User 2026 Season 2 on at
    Hey,
     
    It didnt have such a case, so I cant test and check what works, so its hard to tell the exact way how it works, but I would try the following:
     
    1.: You said you could already filter your revenue accounts with STARTSWITH('TR.MainAccount'.MainAccountId, "3"), cant you exclude Main account "39500" with:
    If StartsWith(3) AND(Not((StartsWith(39500))) then StartsWith(3) or something similar?
     
    2.: The SQL query doesnt work as you have strings, therefore, you need to convert to Number. Therefore, I would try using a List(StartsWith(3)) To create a list, convert with INTVALUE() and then Filter or Where should be possible. 
     
    Maybe a developer can help looking at the available functions.
     
    Sorry, if I cant give answers, but I try to give ideas.
     
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
Martin Dráb Profile Picture

Martin Dráb 445 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 309 Super User 2026 Season 2

#3
CU29091230-0 Profile Picture

CU29091230-0 192

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans