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 / Table with totals of i...
Power Apps
Unanswered

Table with totals of items

(0) ShareShare
ReportReport
Posted on by 394 Super User 2024 Season 1

Dear All,

 

I currently have a table with locations in it for example as below

 

Location:

Surrey

Surrey

Kent

Kent

Devon

 

I want to create another table which counts up locations and puts their total in another column.

 

How can I do this with PowerApps?

 

Kind Regards

 

Daniel

 

Categories:
  • TheRobRush Profile Picture
    11,128 Moderator on at

    do you mean a DataTable control? Or are you referencing a datsource like sharepoint, or a gallery as a Table?

  • hthpowerapper Profile Picture
    364 Super User 2024 Season 1 on at

    Assuming by Table you just mean a Collection of Data. We could leverage the Group By function to organize the data by location and then use the Count Rows Function to count our grouped locations.

    ClearCollect(
     SummaryTable,
     AddColumns(
     GroupBy(
     OriginalLocations,
     "Location",
     "GroupedData"
     ),
     "Location",
     First(GroupedData).Location,
     "Count",
     CountRows(GroupedData)
     )
    )

    Here We take our original locations collection "OriginalLocations" and we groupby the "Location" Column and then we run our CountRows on our grouped data we called "GroupedData". We then add this to a new collection SummaryTable which will hold the locations and values. 

  • WarrenBelz Profile Picture
    156,545 Most Valuable Professional on at

    @DLCaterhamSch ,

    @hthpowerapper is almost correct (please mark that on if it is what you need) - you just do not need to add :Location column (it is already there). You can also use this directly as the Items of the other gallery.

    AddColumns(
     GroupBy(
     OriginalLocations,
     "Location",
     "GroupedData"
     ),
     "Totals,
     CountRows(GroupedData)
    )
    

     

  • DLCaterhamSch Profile Picture
    394 Super User 2024 Season 1 on at

    I have a sharepoint list with choice column with various destinations. Next to this column there is a date and I want to summarise all destinations by counting them up total for a given date.

  • stuermer Profile Picture
    64 on at

    How do you want to display the result per date? Are you trying to create a Date Picker in a PowerApp and you want to show the result in a label or something similar? 

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard