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, ...
Unanswered

How to increment a variable while Iterating a "table" in ER (Electronic Reporting)

(0) ShareShare
ReportReport
Posted on by 160

Hi All,

I am struggling to find a way (either using a data type that I am not aware of, or doing a workaround) to increment a variable while exporting a "list of transactions" to Excel, using ER.

What I want to do is the following, but I cannot find a good way of calculating the value of the cell "Progressivo"(incremental amount):

pastedimage1572448277837v1.png

In X++ I would simply do:

Progressivo = Progressivo + (Debit-Credit)

but it seems I cannot sue the same kind of sintax in the ER formula:

pastedimage1572448331647v2.png

Hope my example is clear enough.

Many Thanks,

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: How to increment a variable while Iterating a "table" in ER (Electronic Reporting)

    Hi,

    One possibility I can think of is doing this in the excel template - not in the ER.

    If you add an additional Excel calculation that adds the current line value plus the previous line value you should end up with the total at the end.

    I am not an excel expert though and you might have to do some testing whether this works out.

    Best regards,

    Ludwig

  • Daniele.Selvi Profile Picture
    160 on at
    RE: How to increment a variable while Iterating a "table" in ER (Electronic Reporting)

    Hi Ludwig,

    it might be useful doing it in the excel template however the position of the Excel lines are not always consecutive(I simplified the example) but I could have populated line 7, line 15, line 22, etc.... as I might have something in between.

    Are you aware of a way to "declare" a variable that can "store" a value each iteration ?

    Thanks for the prompt reply.

  • Daniele.Selvi Profile Picture
    160 on at
    RE: How to increment a variable while Iterating a "table" in ER (Electronic Reporting)

    I have created a Macro to resolve my issue and actually the file is working fine. However (very sadly) it is not possible to attach a file with a macro(with extension xlsm):

    pastedimage1572459930873v1.png

    do you know any "workaround" to add an excel file with a Macro on it ?

    thanks

  • Community Member Profile Picture
    on at
    RE: How to increment a variable while Iterating a "table" in ER (Electronic Reporting)

    Hi Daniele, were you able to attach a .xlsm file successfully?

  • Daniele.Selvi Profile Picture
    160 on at
    RE: How to increment a variable while Iterating a "table" in ER (Electronic Reporting)

    nope....ER won't allow you to add a file with Macros....its a shame as you could quite many pretty good things :)

  • Community Member Profile Picture
    on at
    RE: How to increment a variable while Iterating a "table" in ER (Electronic Reporting)

    Amen. Cheers Daniele.

  • Guillermo Irusta Profile Picture
    15 on at
    RE: How to increment a variable while Iterating a "table" in ER (Electronic Reporting)

    Hi, i have the same problem in a report that i want to create.

    Did you find a way to solve it? I know this is an old topic

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,047

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 592 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans