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 / Help Creating PIE CHAR...
Power Apps
Answered

Help Creating PIE CHART of Cost Categories

(0) ShareShare
ReportReport
Posted on by 6

Hello! Would appreciate anyone's help trying to recreate the pie chart below in PowerApps. 

I can't figure out how to do a single pie chart for one record, in this case record #53070. 

When I am in this record in the App I only want to see cost buckets for this record. 

Data source (Sharepoint List) is posted below... thanks in advance!

Untitled picture.png

Categories:
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @PMLISA,

     

    Please try to create a collection with the fields that you want to show in the Pie Chart and then use this collection on the Pie Chart control.

     

    About Pie chart:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/use-line-pie-bar-chart

    About collection:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/create-update-collection

     

    Regards,

    Mona

  • Verified answer
    timl Profile Picture
    37,424 Super User 2026 Season 2 on at

    Hi @PMLISA

     

    To display the data in your desired format, you would need to transpose your data values into rows. The structure would look like this.

     

    Cost Amount
    ----------------------------------
    Purchasing 3420.18
    Expense 1201.68 

    We can use the table function to build this structure. The formula we would use for the items property of the chart would look like this:

     

    Table({Cost:"Purchasing", Amount:LookUp(Projects,ProjectID=53070).SOPCost},
     {Cost:"Expense", Amount:LookUp(Projects, ProjectID=53070).SOECost}
    )

    You can replace the hardcoded ProjectID value with a reference to a control value. In the properties of the chart, you would set the Labels and Series properties as shown beneath.

     

    chart1.JPG

     

     

     

  • PMLISA Profile Picture
    6 on at

    Thank you this worked great! If I wanted the graph to change based on the ProjectID I was viewing, what would I replace the "53070" with? 

  • timl Profile Picture
    37,424 Super User 2026 Season 2 on at

    Glad that works. Supposing that you reach your pie chart screen via a gallery control that displays projects, you can replace 53070 with a reference to the gallery control. The syntax would look something like:

     

    Gallery1.Selected.ProjectID
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    After fiddling around with this, I stumbled across a much simpler implementation of your problem.

    In the Items property, you'll find 

     

    Table(
    {Cost: "Purchase",Amount:BrowseGallery1.Selected.SPOCost},
    {Cost: "Expense",Amount:BrowseGallery1.Selected.SOECost}
    )

     

    will also achieve the result you're after.

     

     

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard