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 / Caculation based on ad...
Power Apps
Answered

Caculation based on added columns

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

So I have a datatable which I have added columns to, which basically works out the score from the entered data. I want to show this as a % but i cant seem to be able to do a Sum/Caculation from the values showing in the added columns. Any ideas?

 

This is the formula currently in the datatable:

 

Filter(AddColumns(Table1, "MonthStats", Text(Month(Date_x0020_)), "FormattedDate", Text(Date_x0020_, "[$-en-GB]dd/mm/yyyy"), "Score", If('Did the response resolve their enquiry?'= "Yes", 10, 0), "PotentialScore", 10, "Percentage", Sum(Score / PotentialScore)), 'Agent ' = Dropdown2.Selected.Value And Label4.Text = Text(MonthStats))

Categories:
I have the same question (0)
  • Verified answer
    SoPatt Profile Picture
    Microsoft Employee on at

    Just guessing here, but at the time when Percentage is being evaluated the Score and PotentialScore might be null. Try first creating the Score and PotentalScore columns in one step (nesting "AddColumns") then add the Percentage Column in the next step, i.e.

     

    If my guess is correct, this won't work:
    AddColumns(Table1,"Numerator",50,"Denominator",100,"Quotient",Numerator/Denominator)

    But this will:

    AddColumns(AddColumns(Table1,"Numerator",50,"Denominator",100),"Quotient",Numerator/Denominator)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Amazing! Thank you so much that has been driving me mad!!! 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard