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 / PowerApps- Datatable w...
Power Apps
Answered

PowerApps- Datatable with SharePoint list adding columns by subtracting two number fields

(0) ShareShare
ReportReport
Posted on by 7,044 Most Valuable Professional

Hi PowerApps Experts, 

 

          I have a SharePoint list where few of my fields are defined in SharePoint as "Number Field Type" .  I am trying to perform a simple subtraction operation by using those fields and add it in a DataTable as a "AddColumn". 

 

Below are my fields in SharePoint list 

Field NameField Type
Start(m)Number 
End(m)Number

 

The below is displayed on DataTable columns

 

ragavanrajan_0-1600212878117.png

 

And in my datatable Formula :

 

ragavanrajan_1-1600212972489.png

I am getting Invalid argument type. 

 

How do I achieve this simple arithmetic operation? Please help 

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,344 Most Valuable Professional on at

    @ragavanrajan ,

    Where are you putting this formula?

    It should work in a Gallery if both fields are numeric.

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @WarrenBelz  This formula is currently in DataTable - items property. 

     

    Is this possible in DataTable ? Please advise 

     

     

  • WarrenBelz Profile Picture
    155,344 Most Valuable Professional on at

    Hi @ragavanrajan ,

    Just did some testing and got a data table to accept the syntax, but the field was not added - so it appears it is not possible.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @WarrenBelz , thanks for confirming that. much appreciated. I am really disappointed to do simple arithmetic operation in datatable it seems like not possible. 

     

    Happy to get your advice on what is the alternative way for this. I am really open here for out of the box thinking. 

     

    Awaiting for your inputs. 

  • Verified answer
    WarrenBelz Profile Picture
    155,344 Most Valuable Professional on at

    Hi @ragavanrajan ,

    You can make a gallery look like a data table with a bit of formatting and the code would certainly work in one of those.

    Is there any particular reason you want a data table?

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    thanks again @WarrenBelz . I will try the gallery now. The only reason I wanted to use Data table is to perform lookup to another sharepoint list with reference to my current data table. If that is possible in Gallery then I am happy to use 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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 883

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 477

Last 30 days Overall leaderboard