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 / Use variable in sum
Power Apps
Answered

Use variable in sum

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I have a question!

Is it possible to use variable in SUM?

I would like to use in last part.

Sum( cdsdata, variable )

 

thank you for your help!

 

Categories:
  • Verified answer
    timl Profile Picture
    37,409 Super User 2026 Season 2 on at

    Hi @Anonymous 

    There is no way that I know of unfortunately to pass a variable to the last part of SUM. This function expects hardcoded values.

    You could post this in the ideas forum, where there are similar posts about storing references to datasources/fields in variables.
    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas  

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard