Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Why variables are used on statistics pages and not fields?

(1) ShareShare
ReportReport
Posted on by 60

Hello everyone,

I have this question confusing me since forever, When do I use fields and when to use variables to have dynamics values calculated when opening a page?
what's wrong with the use of fields from a table instead of variables ?

Thanks in advance

  • Verified answer
    THE Italian Profile Picture
    on at
    RE: Why variables are used on statistics pages and not fields?

    Could you please give an example of what you mean for "dynamics values"?

    If you mean flowfields, these are automatically calculated when the field is bounded to the page and it opens.

    You could also do some exercises related to Autocalcfields property and SETAUTOCALCFIELDS function

    docs.microsoft.com/.../setautocalcfields-function--record-

    to better understand when and how these are calculated.

    Be aware of the performance payload in always calculating fields, when you have a lot of records in the underlying tables.

    Basically, flowfields are declared within a table and are part of the table / tableextension that you are using.

    Variables, calculates values on the fly and might fit best when

    a. these are used spot (e.g. just in one page or one report)

    b. values comes from etherogenous sources (e.g. multiple different tables)

    Up to you, as developer, to find out the best solution that fits your specific needs.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,309 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,162 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans