Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

cant add totals from a gallery to a text label outside the gallery

(0) ShareShare
ReportReport
Posted on by 241

I have a gallery that each row calculates a total amount.  underneath the gallery i have a label that sums the total of all the total amounts in the gallery using allitems but it is not displaying on my end result label.

 

 

scottmcnitt_0-1681254161999.png

Trying to have the results in the Net Amount: "$"& Text(Sum(galEditRequestItems.AllItems, lblCPREditItemAmount), "[$-en-US]#,##0.00")

 

  • Verified answer
    scottmcnitt Profile Picture
    scottmcnitt 241 on at
    Re: cant add totals from a gallery to a text label outside the gallery

    I figured out my issue.  I made a new text label inside the non nested gallery and it just worked as originally entered.  It does not work outside of the gallery.

  • scottmcnitt Profile Picture
    scottmcnitt 241 on at
    Re: cant add totals from a gallery to a text label outside the gallery

    I tried it and still only shows $

    scottmcnitt_0-1681309547176.png

     

  • scottmcnitt Profile Picture
    scottmcnitt 241 on at
    Re: cant add totals from a gallery to a text label outside the gallery

    I tried all 3 of those and no luck

  • Re: cant add totals from a gallery to a text label outside the gallery

    Hi @scottmcnitt,

    I think you should refer to the lblCPREditItemAmount.Text, modify your formula as below:

    "$"& Text(Sum(galEditRequestItems.AllItems, lblCPREditItemAmount.Text), "[$-en-US]#,##0.00")

    vqiaqimsft_0-1681267143725.png

    You could find that I refer to Title39.Text from my Gallery29.

  • MarcelLehmann Profile Picture
    MarcelLehmann 376 on at
    Re: cant add totals from a gallery to a text label outside the gallery

    Try (I don't know which kind of text label this is):

     

    Value(lblCPREditItemAmount) 

    Or

    Value(lblCPREditItemAmount.text)

    Or

    Value(lblCPREditItemAmount.value)

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard