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 / Text box to filter dat...
Power Apps
Unanswered

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

Categories:
I have the same question (0)
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @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.

  • kouliscon Profile Picture
    247 on at

    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?

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

    @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

    great explanation CNT thank you

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