Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Answered

Sum of all the record value in model driven table

(0) ShareShare
ReportReport
Posted on by 35

Hi,

I have a table view like this in my model driven power app

Depratment Number of Employee Number of Project
Dept 1 150 32
Dept 2 100 25

Now I want to add number of employee of each department and number of project of each department. I want to show it as below

Depratment Number of Employee Number of Project
Dept 1 150 32
Dept 2 100 25
Grand Total 250 57

How can I show this in the table. If anyone can help me on this that would be helpfull for me to complete my task

Thanks
Praajna


  • Verified answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Sum of all the record value in model driven table

    Hi Praajna,

    In Dynamics 365, we cannot get total value directly in the table view as we can in excel.

    One way:

    You can create one report based on current table, then you can get total values:

    pastedimage1677724277029v6.png

    --Add these two column with 'Sum' type when you configure the report:

    pastedimage1677725238878v7.png

    --Run report:

    pastedimage1677725291536v8.png

    Another Way:

    If you don't want to create report and show total value in table view, you can create one record on form firstly, the new row can be shown in the table view.

    For automatic calculation of totals, you can try using rollup column to achieve this if you wish, please refer to the following steps.

    (1) Create 1:N relationship between this table and itself.

    pastedimage1677722640476v1.png

    (2) Create two columns that behavior is rollup and edit:

    pastedimage1677722879418v2.pngpastedimage1677723055842v3.png

    pastedimage1677723444499v4.pngpastedimage1677723466035v5.png

    (3)Add these fields to form and publish.

    (4)Test:

    --Create one new record named with Grand Total:

    pastedimage1677725698134v9.png

    --Update existing records, use new created record as parent depratment:

    pastedimage1677725737960v10.png

    --

    pastedimage1677725853046v11.png

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans