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 / Summarize Column in Da...
Power Apps
Answered

Summarize Column in Data Table

(0) ShareShare
ReportReport
Posted on by 40

 

I have a Data Table that displays data from a Sharepoint List. I am trying to do a data validity check by comparing the total sum numbers (in one specific criteria) between what is showing in PowerApps and what I have in Sharepoint

 

To approach this, I created 2 text boxes next to each other - one that is pulling the total sum number from SP, and the other one pulling it from the the data table. 

 

Sharepoint Summation Textbox Formula: 

Text(Sum(Filter(RevenuePlannerSP, Year = "2022" && Period = "June" && ROFOvsActual = "Forecast" && RigGroup = "Offshore Oil"), BaselineRevenue90) , "$#,##0.00")

mayalghamdi_1-1691416679763.png

 

PowerApps Data Table: 

I put the needed criteria in the Items property of the data table, then inserted the text box above (Data Table Below:) and put in the summation formula.

 

Items property for data table is

Filter(RevenuePlannerSP,RigGroup="Offshore Oil"&&Year="2022"&&Period="June"&&ROFOvsActual="Forecast")

Textbox formula to summarize the BaselineRevenue90 column in the data table is (errored)

Text(Value(Sum(TestTable_1.AllItems,Value(BaselineRevenue90_TestTable_1.Text)) & "000"), "[$-en-GB]#,##0")

 

mayalghamdi_3-1691417178481.png

 

It keeps returning "The function 'Sum' has some invalid arguments." error but does not specifically underline what could be wrong. 

Also, when I try to type in the formula from the beginning, it does not show an '.AllItems' property for the data table - is it only applicable to galleries and data sources? what would be the suitable alternative here? the only data-related option is '.NoDataText' which I guess implies that the table is empty.

mayalghamdi_4-1691417423586.png

 

Can you please advise on how best to approach this? All I need to do is to summarize the BaselineReveue90 column in the Data Table. Thank you!

 

May

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @mayalghamdi,

    In my opinion, I will suggest you use the Gallery instead because there is no similar AllItems parameter for DataTable.

     

    Just try this solution for a Gallery.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard