HI everyone, this is my first question I've ever asked on any form so please induldge me.
My case: I've made a button on a gallery and when I click on it I would like that a piechart that shows the related cases status (from d365).
Ex: Account Aldi has 6 cases, 4 open, 1 resolved, 1 cancelled. I have no idea how to do this, never worked with powerapps before. Please help
What you need help with specifically?
Try this first steps and see if they work:
When you add Pie Chart it adds a Composite Control like this:
You must select only the PieChart after it's added. So from above example there is Legend, Title, and PieChart - select only the Pie Chart control - next you will find it has an Items property. This is how you can change the Sample Pie Chart to something else such as Items from your data source.
Check if the above helps as starting point.
Hi @Sabhat ,
Do you want to display another field's data in the pie chart based on the selection of the gallery?
I'm afraid it's not supported in powerapps currently.
You could only set one label and one series in one pie chart. So you can not choose another field to display.
As an alternative way, you could add several labels to display the data that you want, put them above the pie chart and decide which one is visible based on the selection of the gallery.
I've made a similar test for your reference:
In my test, I have 10 parts in my pie chart, so I insert 10 labels.
put labels to its related parts of the pie chart
set label's Text like this:
On your side, you should set the lable beside Aldi:
set the lable beside Devimo:
Then, set the label's Visible like this:
On your side, you should try:
Then, the label will display based on the selection of the gallery and the label display the related status value.
Thank you for your answer, my data is coming form Dynamics 365. I wanted to know by selecting the account (the button in the gallery) how many cases are related to it. My thinking was if I could get the child records (cases) for each account and show the status of each cases. There are 3 status for each case : Active, Resolved or Cancelled. I'm not sure if this is possible and I don't know how related entities work in canvas app.
Check out the News & Announcements to learn more.
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.