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 / how to do sum of ratin...
Power Apps
Unanswered

how to do sum of rating column for only active ids instead of all

(0) ShareShare
ReportReport
Posted on by 40

Hi,

 

I am trying to do sum for rating column but only for is active=true ids so can some one tell me how to do it

I used sum( table name , rating) but it will show all rating sum , need only active ids sum

 

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Sweety

     

    Syntax: 

     

     

    Sum(Filter(Datasource, Condition), ColumnName)

     

     

    To avoid delegation warning

     

    With(
     {sData: 'Issue tracker'},
     Sum(
     Filter(
     sData,
     IsAccepted = true
     ),
     'Days old'
     )
    )

     

     

    Sample:

    StalinPonnusamy_0-1628082109962.png

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Sweety 

    You'll need to filter your table by the condition for active or not active.

    Ex.

    With({_items: Filter(tableName, active=1)},
     Sum(_items, rating)
    )

    Note, in the above "active=1" is provided as an example only.  Please substitute in the condition that you have for determining an active record.

     

    I hope this is helpful for you.

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Sweety 

    Were you able to work through your issue or do you still need help?

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard