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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Usage of formula in Ga...
Power Apps
Answered

Usage of formula in Gallery rows in Power App

(0) ShareShare
ReportReport
Posted on by 177

Hi,

In power App, i have used Gallery which displayed data from the table.

Column Name is : Name and Price.

 

NamePrice
A100
B+20
B115
B25

 

I need  sum (B1 and B2)  displayed to B+ as shown above.

 

Thanks

Amit

Categories:
  • Maxwell123 Profile Picture
    93 on at

    Hi!

     

    Can you give me a little more info?


    Is the table local in powerapps or is it coming from a sharepoint list? Im going to work on a solution right now that I think will fix it

  • amsrivas Profile Picture
    177 on at

    Hi,

    In power App, i have used Gallery which displayed data from the table.

    Column Name is : Name and Price.

     

    NamePrice
    A100
    B+20
    B115
    B25

     

    I need  sum (B1 and B2)  displayed to B+ as shown above.

     

    Source is excel file on One Drive

     

    Thanks

    Amit

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @amsrivas ,

    Actually I do not quite understand your demand....

    Could you show me your original data in excel?

    I need to know what the original table looks like and what the result table looks like.

    I assume that in excel, your table looks like this: (table1)

    Name Price
    A1 100
    B1 15
    B2 5

    You want to display table like this in powerapps: (table2)

    Name Price
    A+ 100
    B+ 20

    //sum for As and Bs

    If so, you could transfer table1 to table2 like this:

    RenameColumns(
     ShowColumns(
     AddColumns(
     GroupBy(
     AddColumns(exceltable,"Name1",Left(Name,1)&"+"),
    //add a column with value: A+,B+
     "Name1",
     "prices"
     ),
    //group based on A+,B+
     "sum",
     Sum(prices,Price)
     ),
    //add a column with sum of As,Bs
     "Name1","sum"),
     "Name1","Name",
     "sum","Price"
     )

     

     

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard