Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Text box to filter data to a Data Table and then to sum an amount column at a label box

(0) ShareShare
ReportReport
Posted on by 247

Hello,

 

i have a canvas app which i have placed

  • a text box to filter
  • a dataTable with the following formula in "item": 

SortByColumns(Filter(List_Name_A, StartsWith(VendorColumn , FilterBox.Text)),"Invoice_Date",Descending)

 

  • i have added a "Label" box and i want to get the Sum of the column "Invoices Amount" but what is fitered each time. Any help with the formula?

thank you

  • kouliscon Profile Picture
    247 on at
    Re: Text box to filter data to a Data Table and then to sum an amount column at a label box

    great explanation CNT thank you

  • CNT Profile Picture
    10,919 Super User 2025 Season 1 on at
    Re: Text box to filter data to a Data Table and then to sum an amount column at a label box

    @kouliscon Forms are used when you want to Add, Edit or Display just one record. If you want to show a list of records, you have to use a Gallery or a DataTable.

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

  • kouliscon Profile Picture
    247 on at
    Re: Text box to filter data to a Data Table and then to sum an amount column at a label box

    Thank you CNT that worked and thank you for the info on delegation.

    i tried to connect a Display Form but i haven't figure it out. Do you know if is possible or only will work with Gallery and/ or Data Table?

  • Verified answer
    CNT Profile Picture
    10,919 Super User 2025 Season 1 on at
    Re: Text box to filter data to a Data Table and then to sum an amount column at a label box

    @kouliscon There is no property to get the Items in a DataTable. So either you use a gallery instead of a DataTable and use the AllItems property of the Gallery to get the filtered records or you have to repeat the formula in the total label like this,

    Sum(Filter(List_Name_A, StartsWith(VendorColumn , FilterBox.Text)),"Invoices Amount")

    Please be aware that using the Sum function directly on a datasource can also cause delegation issues.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard