Hi, this is my first time to create a pie chart in Power Apps with SharePoint List data.
Currently, I have a SharePoint List named "Learning Tracker" and have a number of column as per below
and when employees completed the courses in Digital Transformation/ One Drive/ Teams, SharePoint List will mark "Completed" and All course will mark "Yes". As per example in excel format below:
I want to have 5 pie charts show that
1. How many "Completed" in Digital Transformation,
2. How many "Completed" in One Drive and
3. How many "Completed" in TEAMS and also
4. how many "Yes" in All course column
5. How many "Yes" in All course and categorise by Region
How can I do so?
Solved! Go to Solution.
hi @Hooi lets go through this and do one for you
This is what we want from the data
(Note i only include the totals for teams, you will have to add the rest). You may also want to create a collection to hold all values whereas i will do the with function in the Items of the Pie chart to illustrate the solution ok.
the PI chart Items =
With(
{
tot: CountRows(colCourses),
teamsTot: CountRows(
Filter(
colCourses,
teams = "Completed"
)
)
},
Table(
{
Name: "Incomplete(" & tot - teamsTot & ")",
Total: tot - teamsTot
},
{
Name: "Complete(" & teamsTot & ")",
Total: teamsTot
}
)
)
Hope this helps
hi @Hooi lets go through this and do one for you
This is what we want from the data
(Note i only include the totals for teams, you will have to add the rest). You may also want to create a collection to hold all values whereas i will do the with function in the Items of the Pie chart to illustrate the solution ok.
the PI chart Items =
With(
{
tot: CountRows(colCourses),
teamsTot: CountRows(
Filter(
colCourses,
teams = "Completed"
)
)
},
Table(
{
Name: "Incomplete(" & tot - teamsTot & ")",
Total: tot - teamsTot
},
{
Name: "Complete(" & teamsTot & ")",
Total: teamsTot
}
)
)
Hope this helps
Hi @rubin_boer , thanks for replying. This really helps me a lot.
I have used the formula you shared and would like to create a chart as per below but i failed to do so. To explain how many students under which teachers have/have not completed the task.
2nd picture is my data set.
May I know if other there is any formula that can calculated the number of teacher and also calculated the number of course completion?
Thanks for your helps in advance
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
199 | |
72 | |
50 | |
41 | |
30 |
User | Count |
---|---|
253 | |
113 | |
95 | |
91 | |
76 |