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 value in gallery
Power Apps
Answered

sum value in gallery

(1) ShareShare
ReportReport
Posted on by 418

Hello, what is the correct formula to make SUM in Gallery.. i have tried some formula below but got error..

 

Gallery name = Gallery2_1 (just return value for that row/item)

TextInput name to SUM = TextInput5_1 (error)

 

Sum(TextInput5_1)
Sum(Gallery2_1.AllItems, percentage )

twister_2-1624341366078.png

 

twister_1-1624341216084.png

 

Thanks

Categories:
I have the same question (0)
  • Moreshwar Profile Picture
    135 on at

    Hi,

     

    Try this: Sum(Gallery2_1.AllItems, Value(TextInput5_1.Text)). Value function will convert string to number.

  • twister Profile Picture
    418 on at

    have tried but got error..

     

    twister_0-1624342603744.png

     

  • Moreshwar Profile Picture
    135 on at

    Please make sure TextInput5_1 is there in Gallery. 

  • twister Profile Picture
    418 on at

    Yes... TextInput5_1 in the Gallery..

     

    twister_0-1624345232595.png

     

  • twister Profile Picture
    418 on at

    I dont why cannot do sum in Gallery itself..but if outside gallery its works..

     

    Inside Gallery:

    twister_0-1624412570509.png

     

    Outside Gallery:

    twister_1-1624412613758.png

     

  • twister Profile Picture
    418 on at

    anyone can advise on this problem?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @twister The AllItems property is not available from within the gallery. The better way would be to store the contents of the Gallery in a collection and use the values in the collection for the calculation.

  • twister Profile Picture
    418 on at

    any advise on doing this?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @twister What is the Items property of the gallery?

  • twister Profile Picture
    418 on at

    @CNTas below..

     

    twister_0-1624862999192.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

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