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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sum of column from rel...
Power Apps
Answered

Sum of column from related table Canvas Apps

(1) ShareShare
ReportReport
Posted on by 16

Is it possible to calculate a sum of a field from a related table ?

Let say that I have a contact (John Doe) who have multiple asset (Asset 1 = 350000 and Asset 2 = 50000).

On my Detail Screen of John Doe I want to know how many asset John Doe have and How Much Asset John Doe Have.

 

I know how to display the number of record related, but i dont know hot to display the sum ?

 

sweetpete23_0-1668732290021.png

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @sweetpete23 ,

     

    I made a sample for you:

    Create two tables in Dataverse, the contents are as follows, the relationship between tables 'SJT5' and 'SJT6' is 1:n.

    vxiaochenmsft_0-1668756967784.png

     

    vxiaochenmsft_1-1668756967787.png

     

     

    Create a gallery, Items is table ‘SJT5S’.

    vxiaochenmsft_2-1668756967789.png

     

     

    Add a label, and set text to the following formula:

    "Sum of asset:" & Sum(Gallery2_1.Selected.SJT6S,Amount)

    vxiaochenmsft_3-1668756967792.png

     

    Best Regards,

    Wearsky

  • PierrePoulin Profile Picture
    16 on at

    Thanks @v-xiaochen-msft 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard