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 / 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
    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

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard