Notifications
Announcements
Hi Folks,
I have a gallery links to SP list and the list contains a Total and Cost Center columns. I have a hard time figuring out the correct formula to sum a specific cost center. Below is an example of what it looks like
Thanks
Sum(Filter(ListName, 'Cost Center' = "A"), Total)
Insert a Label and on the Text property:
Sum(Filter(Table1,CostCenter= Gallery1.Selected.CostCenter),Total)
Thus whichever cost center is selected in the Gallery, it would be summed.
------------If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
ok thanks but I don't want to sum everything on the sharepoint. I Just want to sum what is on the gallery since the gallery filters based on the selected date drop down.
thanks but unfortunately I need to display the total from each cost center in the gallery because the gallery is filter from the date selected drop down.
I tried the formula below and is not working
Sum(Filter(Gallery, 'Cost Center '="A"),Total)
What I am really looking is to display each cost center with the total amount on another Gallery, rather than creating separate label for each cost center to show the total for each cost center...
I also tried below and is not working either
Sum(Filter(SPList, Gallery.AllItems,'Cost Center '),Total)
Have you tried the solution I gave:
yes the formula below works but it only shows the total cost center amount from the selected item in Gallery, but rather I would like to display the total for each cost center without having to select the item in the gallery.
Sum(Filter(SPList,CostCenter= Gallery1.Selected.CostCenter),Total)
Insert a Gallery and put this formula on the Items Property:
AddColumns(GroupBy(Datasource,"CostCenterColumn","SumT"),"Totals", Sum(SumT,TotalColumn))
thanks again but it won't recognize the cost center column nor the total column.. It shows a list of Cost Center datacards and Total datacards and not the column itself.. I really don't mind creating a separate label for each cost center to get the total for each cost center if it makes it easier.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 380 Most Valuable Professional
Kalathiya 340
MS.Ragavendar 333 Super User 2025 Season 2