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 / Chart from SharePoint
Power Apps
Answered

Chart from SharePoint

(0) ShareShare
ReportReport
Posted on by 13

Hi All,

 

I think I'm trying to do something quite simple and it may be a beginner question but can't get the right formula... I have a SharePoint list where I store my expenses: Date and Price, and I want to generate a chart that will show the cumulative expenses through time.

 

I've tried something like this : AddColumns(expenses;"Val";Sum("Price")) but the only thing I get is each expense for the day associated...

 

Thanks in advance for your help !

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

    You first need to group the expenses (by Date, I'm assuming) using the GroupBy function, then you can use the AddColumns to get the sum of all expenses for that day, something along the lines of the expression below.

    AddColumns(
     GroupBy(expenses; "Date", "ByDate");
     "Val";
     Sum(ByDate; Price))

    Take a look at the documentation for GroupBy, it will have many examples of what you are trying to do.

  • adecaes Profile Picture
    13 on at

    thanks of rtaking the time to reply

     

    I know this is a basic question, but I already tried the groupby formula you add and I only get the distinct price on my chart... could I be missing something else ?

  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @adecaes,

     

    What is your current situation?

    Have you checked the GroupBy function reference?

    GroupBy in PowerApps

     

    Please show the data within a gallery (with the formula suggested by Admin CarlosFigueira), and then check to see if you could get the proper organized prices with the corresponding date.

    Or you may share a sample data that you would like to show, we will then check to see if a proper solution could be offered.

     

    Regards,

    Michael

  • Verified answer
    adecaes Profile Picture
    13 on at

    Hi,

     

    Thanks for asking, no the group by did not help me doing what I wanted.... but I did found a workaround using a Filter function and a Sum on the result 🙂

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

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard